libguestfs: Added gnulib includes from builddir, as suggested by the Gnulib documentation
authorHilko Bengen <bengen@hilluzination.de>
Thu, 1 Dec 2011 21:06:30 +0000 (22:06 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 1 Dec 2011 23:40:58 +0000 (23:40 +0000)
    Since some modules (`getopt', for example) may copy files
    into the build directory, `top_builddir/lib' is needed as well as
    `top_srcdir/lib'. -- GNU Gnulib manual, section 2.2 Initial import

capitests/Makefile.am
daemon/Makefile.am
src/Makefile.am

index cb9188e..d32b7fc 100644 (file)
@@ -129,6 +129,7 @@ test_debug_to_file_SOURCES = test-debug-to-file.c
 test_debug_to_file_CFLAGS = \
        -I$(top_srcdir)/src -I$(top_builddir)/src \
        -I$(top_srcdir)/gnulib/lib \
+       -I$(top_builddir)/gnulib/lib \
        $(WARN_CFLAGS) $(WERROR_CFLAGS)
 test_debug_to_file_LDADD = \
        $(top_builddir)/src/libguestfs.la \
index c4a30bc..71d6a63 100644 (file)
@@ -176,7 +176,7 @@ guestfsd_LDADD = \
        $(LIBINTL) \
        $(SERVENT_LIB)
 
-guestfsd_CPPFLAGS = -I$(top_srcdir)/gnulib/lib
+guestfsd_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib
 guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 
 .PHONY: force
index 761fcb6..82a4004 100644 (file)
@@ -165,7 +165,7 @@ libguestfs_la_CFLAGS = \
   $(LIBVIRT_CFLAGS) $(LIBXML2_CFLAGS) \
   $(WARN_CFLAGS) $(WERROR_CFLAGS)
 
-libguestfs_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib
+libguestfs_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib
 
 if HAVE_RPCGEN
 guestfs_protocol.c: guestfs_protocol.x