From d4ecc19eb2ef64774f55e7d49dc64e25309d6896 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 25 Mar 2013 09:31:34 +0100 Subject: [PATCH] Check for Libxslt support in YAZ and rely on definitions from yaz-config, rather than doing own xslt/xml2 checks. --- configure.ac | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index 6291048..09008fb 100644 --- a/configure.ac +++ b/configure.ac @@ -70,19 +70,10 @@ if test -z "${BOOST_REGEX_LIB}"; then AC_MSG_ERROR([Boost regex development libraries required]) fi -xml_avail=false -xslt_avail=false -YAZ_LIBXML2([xml_avail=true]) -if $xml_avail; then - YAZ_LIBXSLT([xslt_avail=true]) -else - AC_MSG_ERROR([Libxml2 development files not found]) -fi -if $xslt_avail; then - : -else - AC_MSG_ERROR([Libxslt development files not found]) -fi +case $YAZPPINC in + *YAZ_HAVE_XSLT=1*) ;; + *) AC_MSG_ERROR([YAZ not compiled with Libxslt support]) ;; +esac AC_CHECK_HEADERS([sys/select.h sys/socket.h]) -- 1.7.10.4