[at-spi2-atk] Build fixes.



commit 76eef82a0842f4db4d70aad466e8af5ca4ec3956
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Fri May 20 12:35:15 2011 +0100

    Build fixes.
    
    - cache-adaptor.c makes use of AtkStateSet* .
    - atk-bridge uses X.
    - -Werror-implicit-function-declaration doesn't contain an equal sign in
       my copy of gcc, and is gcc specific.

 atk-adaptor/Makefile.include         |   15 ++++++++-------
 atk-adaptor/adaptors/cache-adaptor.c |    1 +
 configure.ac                         |    4 ++++
 dbind/Makefile.am                    |    3 ---
 droute/Makefile.am                   |    3 +--
 5 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/atk-adaptor/Makefile.include b/atk-adaptor/Makefile.include
index b2ef66f..cd1675e 100644
--- a/atk-adaptor/Makefile.include
+++ b/atk-adaptor/Makefile.include
@@ -1,12 +1,13 @@
 gtkmodule_LTLIBRARIES = libatk-bridge.la
 
-libatk_bridge_la_CFLAGS = $(DBUS_CFLAGS) \
-		          $(ATK_CFLAGS)       \
-		          $(ATSPI_CFLAGS)       \
-		          -I$(top_srcdir)     \
-		          -I$(top_srcdir)/atk-adaptor/adaptors \
-	$(P2P_CFLAGS) \
-	-Werror=implicit-function-declaration
+libatk_bridge_la_CFLAGS = \
+	$(DBUS_CFLAGS)    \
+	$(ATK_CFLAGS)     \
+	$(ATSPI_CFLAGS)   \
+	-I$(top_srcdir)   \
+	-I$(top_srcdir)/atk-adaptor/adaptors \
+	$(P2P_CFLAGS)     \
+	$(X_CFLAGS)
 
 libatk_bridge_la_LDFLAGS = -no-undefined  \
 		           -module        \
diff --git a/atk-adaptor/adaptors/cache-adaptor.c b/atk-adaptor/adaptors/cache-adaptor.c
index edbcb7b..3b6b28c 100644
--- a/atk-adaptor/adaptors/cache-adaptor.c
+++ b/atk-adaptor/adaptors/cache-adaptor.c
@@ -29,6 +29,7 @@
 #include <droute/droute.h>
 
 #include "common/spi-dbus.h"
+#include "common/spi-stateset.h"
 #include "accessible-cache.h"
 #include "bridge.h"
 #include "object.h"
diff --git a/configure.ac b/configure.ac
index 211bc57..23d868e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,6 +99,10 @@ DBIND_CHECK_ALIGNOF(dbind_pointer)
 DBIND_CHECK_ALIGNOF(dbind_struct)
 CPPFLAGS=$orig_CPPFLAGS 
 
+if test "x$GCC" = xyes; then
+	CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
+fi
+
 if test "x$enable_p2p" = "xno"; then
 	P2P_CFLAGS=-DDISABLE_P2P
 fi
diff --git a/dbind/Makefile.am b/dbind/Makefile.am
index 607226d..e71b4e5 100644
--- a/dbind/Makefile.am
+++ b/dbind/Makefile.am
@@ -1,11 +1,8 @@
 noinst_LTLIBRARIES = libdbind.la
 
-WARN_CFLAGS=-Werror=implicit-function-declaration
-
 AM_CPPFLAGS = \
 	-DG_LOG_DOMAIN=\"dbind\" \
 	-I$(top_srcdir) \
-	$(WARN_CFLAGS) \
 	$(DBUS_CFLAGS) \
 	$(GLIB_CFLAGS)
 
diff --git a/droute/Makefile.am b/droute/Makefile.am
index 854dee4..676dc8f 100644
--- a/droute/Makefile.am
+++ b/droute/Makefile.am
@@ -3,8 +3,7 @@ noinst_LTLIBRARIES = libdroute.la
 libdroute_la_CFLAGS = $(DBUS_CFLAGS) \
                       $(GLIB_CFLAGS) \
                       -I$(top_builddir)\
-                      -I$(top_srcdir) \
-	-Werror=implicit-function-declaration
+                      -I$(top_srcdir)
 
 libdroute_la_SOURCES =\
 		droute.c\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]