daemon: Use pkg-config to locate Augeas CFLAGS / libraries.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 3 Dec 2011 14:34:52 +0000 (14:34 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Dec 2011 14:59:15 +0000 (14:59 +0000)
commit519df436482417b01194afa0e09224fee4b5dac2
tree9e201a0d613e0b78fea3e9fe00b27d9b25c72858
parenteb77965e00365e8c5652264ad569653c82b0de23
daemon: Use pkg-config to locate Augeas CFLAGS / libraries.

Augeas 0.10 depends on libxml2, so this is now required in the
appliance (in fact, it was already present).

However this exposed two bugs:

(1) In libguestfs we use a home-brewed recipe for Augeas flags,
resulting in this error:
/usr/include/augeas.h:24:25: fatal error: libxml/tree.h: No such file or directory

(2) Augeas's own augeas.pc didn't include the libxml2 flags, so
it was broken.  This requires a patch to Augeas 0.10, see:
https://www.redhat.com/archives/augeas-devel/2011-December/msg00008.html

Change to using pkg-config to detect Augeas.  It is still an optional
library.
(cherry picked from commit 615924abaa968398d6529529fa2f31ae23de825b)
appliance/packagelist.in
configure.ac
daemon/Makefile.am