Build fixes.
authorPatrick Welche <prlw1@cam.ac.uk>
Fri, 20 May 2011 11:35:15 +0000 (12:35 +0100)
committerPatrick Welche <prlw1@cam.ac.uk>
Fri, 20 May 2011 11:35:15 +0000 (12:35 +0100)
- 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
atk-adaptor/adaptors/cache-adaptor.c
configure.ac
dbind/Makefile.am
droute/Makefile.am

index b2ef66f..cd1675e 100644 (file)
@@ -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        \
index edbcb7b..3b6b28c 100644 (file)
@@ -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"
index 211bc57..23d868e 100644 (file)
@@ -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
index 607226d..e71b4e5 100644 (file)
@@ -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)
 
index 854dee4..676dc8f 100644 (file)
@@ -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\