- XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
- XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
- EXSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
- AC_MSG_RESULT($EXSLT_VER)
- m4_default([$1],[AC_DEFINE(HAVE_EXSLT)])
+ if test "$yaz_xslt_pkgconfig" != "yes"; then
+ AC_MSG_RESULT([Disabled. Libxslt is not pkg-config configured])
+ else
+ XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
+ XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
+ EXSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
+ AC_MSG_RESULT($EXSLT_VER)
+ m4_default([$1],[AC_DEFINE(HAVE_EXSLT)])
+ fi