- AC_MSG_CHECKING(for libXML2)
- if test "$pkgmodule"; then
- XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
- XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
- XML2_VER=`$pkgconfigpath --modversion $pkgmodule`
- AC_MSG_RESULT($XML2_VER)
- AC_DEFINE(HAVE_XML2)
- elif test -x $xml2dir/bin/xml2-config; then
- XML2_LIBS=`$xml2dir/bin/xml2-config --libs`
- XML2_CFLAGS=`$xml2dir/bin/xml2-config --cflags`
- XML2_VER=`$xml2dir/bin/xml2-config --version`
- AC_MSG_RESULT($XML2_VER)
- AC_DEFINE(HAVE_XML2)
+ AC_MSG_CHECKING(for libXML2)
+ if test "$pkgmodule"; then
+ XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
+ XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
+ XML2_VER=`$pkgconfigpath --modversion $pkgmodule`
+ AC_MSG_RESULT($XML2_VER)
+ m4_default([$1],[AC_DEFINE(HAVE_XML2)])
+ elif test -x $xml2dir/bin/xml2-config; then
+ XML2_LIBS=`$xml2dir/bin/xml2-config --libs`
+ XML2_CFLAGS=`$xml2dir/bin/xml2-config --cflags`
+ XML2_VER=`$xml2dir/bin/xml2-config --version`
+ AC_MSG_RESULT($XML2_VER)
+ m4_default([$1],[AC_DEFINE(HAVE_XML2)])
+ else
+ AC_MSG_RESULT(Not found)
+ if test "$xml2dir" = "default"; then
+ AC_MSG_WARN([libxml2 development libraries not found.])
+ AC_MSG_WARN([There will be no support for SRU.])