diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 603d1ef..0679fc4 100644 --- a/configure.in +++ b/configure.in @@ -29,6 +29,17 @@ dnl Checks for programs. dnl Checks for libraries. +XML_LIBS=error +AC_CHECK_LIB(xml2, xmlDocDumpMemory, [ + XML_LIBS=`xml2-config --libs` + XML_INCLUDES=`xml-config --cflags` + ]) +if test "x$XML_LIBS" = xerror; then + AC_MSG_ERROR(*** Unable to locate LibXML2 ***) +fi +AC_SUBST(XML_LIBS) +AC_SUBST(XML_INCLUDES) + dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. @@ -36,4 +47,4 @@ AC_C_CONST dnl Checks for library functions. -AC_OUTPUT(src/Makefile Makefile librcc.spec) +AC_OUTPUT(src/Makefile example/Makefile librcc.spec) |