summaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b4dee00..9b61312 100644
--- a/configure.ac
+++ b/configure.ac
@@ -240,8 +240,6 @@ AC_SUBST(LIBS)
AC_SUBST(ADDITIONAL_OBJECTS)
# Check for xml tools
-AC_PATH_PROG(XMLLINT, xmllint, no)
-AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
AC_PATH_PROG(XSLTPROC, xsltproc, no)
AM_CONDITIONAL(HAVE_XSLTPROC, test "x$XSLTPROC" != "xno")
@@ -252,6 +250,21 @@ if test x"$A2X" = x"no"; then
AC_MSG_ERROR([Test for asciidoc failed. See the file 'INSTALL' for help.])
fi
+# checking xmllint
+AC_PATH_PROG(XMLLINT, xmllint, no)
+if test "x$XMLLINT" != "xno"; then
+ AS_ECHO_N("testing xmllint... ")
+ echo "TEST" > conftest.txt
+ if $A2X -f docbook conftest.txt 2>/dev/null; then
+ AS_ECHO("ok")
+ else
+ AS_ECHO("failed")
+ XMLLINT="no"
+ fi
+ rm -f conftest.txt conftest.xml
+fi
+AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
+
AC_CONFIG_FILES([
Makefile
src/Makefile