diff options
author | Matthias Bolte <matthias.bolte@googlemail.com> | 2011-07-28 14:55:21 +0200 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-07-29 07:35:54 -0600 |
commit | b590866bdb0aea20eda5b96883b8744fedbba88d (patch) | |
tree | 31dedb4babe8ff798d9a97f1658304d5a6cfd9bb /gnulib | |
parent | freebsd: Avoid /bin/true in commandtest (diff) | |
download | libvirt-b590866bdb0aea20eda5b96883b8744fedbba88d.tar.gz libvirt-b590866bdb0aea20eda5b96883b8744fedbba88d.tar.bz2 libvirt-b590866bdb0aea20eda5b96883b8744fedbba88d.zip |
freebsd: Fix build problem due to picking up the wrong libvirt.h
Gettext annoyingly modifies CPPFLAGS in-place, putting
-I/usr/local/include into the search patch if libintl headers
must be used from that location. But since we must support
automake 1.9.6 which lacks AM_CPPFLAGS, and since CPPFLAGS is used
prior to INCLUDES, this means that the build picks up the _old_
installed libvirt.h in priority to the in-tree version, leading
to all sorts of weird build failures on FreeBSD.
Fix this by teaching configure to undo gettext's actions, but
to keep any changes required by gettext at the end of INCLUDES
after all in-tree locations are used first. Also requires
adding a wrapper Makefile.am and making gnulib-tool create
just gnulib.mk files during the bootstrap process.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'gnulib')
-rw-r--r-- | gnulib/lib/Makefile.am | 8 | ||||
-rw-r--r-- | gnulib/tests/Makefile.am | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gnulib/lib/Makefile.am b/gnulib/lib/Makefile.am new file mode 100644 index 000000000..3445c6da6 --- /dev/null +++ b/gnulib/lib/Makefile.am @@ -0,0 +1,8 @@ +## Makefile for gnulib/lib -*-Makefile-*- + +## Copyright (C) 2011 Red Hat, Inc. +## See COPYING.LIB for the License of this software + +include gnulib.mk + +INCLUDES = $(GETTEXT_CPPFLAGS) diff --git a/gnulib/tests/Makefile.am b/gnulib/tests/Makefile.am new file mode 100644 index 000000000..3445c6da6 --- /dev/null +++ b/gnulib/tests/Makefile.am @@ -0,0 +1,8 @@ +## Makefile for gnulib/lib -*-Makefile-*- + +## Copyright (C) 2011 Red Hat, Inc. +## See COPYING.LIB for the License of this software + +include gnulib.mk + +INCLUDES = $(GETTEXT_CPPFLAGS) |