]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/minidom/configure.in
error in check for xml2-config
[helm.git] / helm / minidom / configure.in
index 7dfa2b6e7ce41577159a45be14855d3c04cd61ff..c8817c216d79e5db580277ec7ebe9b94cb3d3f1e 100644 (file)
@@ -37,15 +37,17 @@ AC_CHECK_LIB(glib, g_malloc,
        `glib-config --libs`
 )
 
-AC_CHECK_PROG(XML_CONFIG, xml2-config, xml2-config)
-AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config, no)
+AC_CHECK_PROG(XML_CONFIG, xml2-config, xml2-config, no)
+if test $XML_CONFIG = "no"; then
+       AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config, no)
+fi
 AC_SUBST(XML_CONFIG)
 
 if test $XML_CONFIG = "no"; then
        AC_MSG_ERROR(could not find configuration script for libxml)
 fi
 
-if test $XML_CONFIG = xml2-config -a libxml2 = "auto"; then
+if test $XML_CONFIG = "xml2-config" -a $libxml2 = "auto"; then
        libxml2="yes"
 fi