# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1202512650 28800
# Node ID 03126c9af41607dcaa8b197736dd5059c108261a
# Parent 2337330e5a9bc8e71afd04627166155a33dc53f2
[RFC][CU] Make libcmpiutil include libxml libraries/includes
As needed for the CIMXML EO parser
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 2337330e5a9b -r 03126c9af416 acinclude.m4
--- a/acinclude.m4 Fri Feb 08 15:15:25 2008 -0800
+++ b/acinclude.m4 Fri Feb 08 15:17:30 2008 -0800
@@ -92,3 +92,9 @@ AC_DEFUN([CHECK_BROKEN_CMPIFT],
]
)])
+AC_DEFUN([CHECK_LIBXML2],
+ [
+ PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
+ CPPFLAGS="$CPPFLAGS $LIBXML_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBXML_LDFLAGS"
+ ])
diff -r 2337330e5a9b -r 03126c9af416 configure.ac
--- a/configure.ac Fri Feb 08 15:15:25 2008 -0800
+++ b/configure.ac Fri Feb 08 15:17:30 2008 -0800
@@ -50,6 +50,8 @@ AC_ARG_ENABLE([eoparser],
AM_CONDITIONAL([build_eoparser],[test x$eoparser = xyes])
+CHECK_LIBXML2
+
if test x${eoparser} = xyes; then
CFLAGS+=" -DHAVE_EOPARSER"
fi