@echo "#!/bin/sh" >minidom-config
@echo >>minidom-config
@echo VERSION=\"$(VERSION)\" >>minidom-config
+ @echo XML_CONFIG=\"$(XML_CONFIG)\" >>minidom-config
@echo libdir=\"$(libdir)\" >>minidom-config
@echo pkglibdir=\"$(pkglibdir)\" >>minidom-config
@echo includedir=\"$(includedir)\" >>minidom-config
AC_CHECK_PROG(XML_CONFIG, xml2-config, xml2-config)
AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config, no)
+AC_SUBST(XML_CONFIG)
if test $XML_CONFIG = "no"; then
AC_MSG_ERROR(could not find configuration script for libxml)
done
if test "$echo_cflags" = "yes"; then
- echo `xml-config --cflags` -I$pkgincludedir
+ echo `$XML_CONFIG --cflags` -I$pkgincludedir
fi
if test "$echo_libs" = "yes"; then
- echo `xml-config --libs` -L$libdir -lminidom
+ echo `$XML_CONFIG --libs` -L$libdir -lminidom
fi