Bug fix: exit if libxml2 is not available.
[xmldoc.git] / configure.in
index 7d8a49f..58773b6 100644 (file)
@@ -1,19 +1,23 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(xp.c)
-AM_INIT_AUTOMAKE(XMLDoc, 0.3)
+AM_INIT_AUTOMAKE(XMLDoc, 0.5)
 
 dnl Checks for programs.
 AC_PROG_CC
 
 AC_PATH_PROG(XML_CONFIG,xml2-config,no)
 
+if test $XML_CONFIG = "no" 
+then
+   echo "XML2 library not found (see http://xmlsoft.org/)."
+   exit 1;
+fi
+
 dnl Checks for libraries.
 
 XML_CFLAGS=`$XML_CONFIG --cflags`
 CFLAGS="$CFLAGS $XML_CFLAGS"
 
-dnl Replace `main' with a function in -latex:
-AC_CHECK_LIB(atex, main)
 dnl Replace `main' with a function in -lexslt:
 AC_CHECK_LIB(exslt, main)
 dnl Replace `main' with a function in -lxml2: