Fix boost not found on debian-testing MP-628
[m4-moved-to-github.git] / yaz_libxml2.m4
index bbc86fe..26e474f 100644 (file)
@@ -13,7 +13,6 @@ if test "$xml2dir" = "yes" -o "$xml2dir" = "default"; then
        fi
     fi
     if test -z "$pkgmodule"; then
-       AC_MSG_RESULT([using xml2-config])
        for d in /usr /usr/local; do
            if test -x $d/bin/xml2-config; then
                xml2dir=$d
@@ -45,6 +44,7 @@ if test "$xml2dir" != "no"; then
            AC_MSG_ERROR([libxml2 development libraries not found.])
        fi
     fi
+    XML2_LIBS=`echo $XML2_LIBS|sed 's@-./usr/lib @@g'`
 fi
 ])
 
@@ -98,6 +98,7 @@ if test "$xsltdir" != "no"; then
            AC_MSG_ERROR([libXSLT development libraries not found.])
        fi
     fi
+    XML2_LIBS=`echo $XML2_LIBS|sed 's@-./usr/lib @@g'`
 fi
 ])