Check for pkg-config in YAZ_LIBXML2 macro
[m4-moved-to-github.git] / yaz_libxml2.m4
index b8feab2..01dfdee 100644 (file)
@@ -1,4 +1,5 @@
 AC_DEFUN([YAZ_LIBXML2],[
+AC_PATH_PROG(pkgconfigpath, pkg-config, NONE)
 xml2dir=default
 XML2_VER=""
 AC_ARG_WITH(xml2,[[  --with-xml2[=PREFIX]    use libxml2 in PREFIX]],xml2dir=$withval)
@@ -122,9 +123,9 @@ if test "$exsltdir" != "no"; then
                AC_MSG_RESULT(Not found)
        
                if test "$pkgconfigpath" = "NONE"; then
-                       extra="libEXLT not enabled. pkg-config not found."
+                       extra="libEXSLT not enabled. pkg-config not found."
                else
-                       extra="libEXLT development libraries not found."
+                       extra="libEXSLT development libraries not found."
                fi
 
                if test "$exsltdir" = "default"; then