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>
Fri, 2 Dec 2011 08:37:17 +0000 (08:37 +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
(cherry picked from commit 1a35ca59088e572c11633e85524bb282cb436186)

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 7757067..6e38da1 100644 (file)
@@ -175,7 +175,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