From d8002c3bb2f4475ffa7adb760e56cdb43bede4ae Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 18 May 2005 20:29:18 +0000 Subject: [PATCH] Issue warning/error if Libxslt is not found --- configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 47954e9..2892d90 100644 --- a/configure.in +++ b/configure.in @@ -21,9 +21,9 @@ dnl dnl ----- libXSLT AC_SUBST(XSLT_LIBS) AC_SUBST(XSLT_CFLAGS) -xsltdir=yes +xsltdir=default AC_ARG_WITH(xslt,[[ --with-xslt[=PREFIX] use libxslt in PREFIX]],xsltdir=$withval) -if test "$xsltdir" = "yes"; then +if test "$xsltdir" = "yes" -o "$xsltdir" = "default"; then for d in /usr /usr/local; do if test -x $d/bin/xslt-config; then xsltdir=$d @@ -40,6 +40,10 @@ if test "$xsltdir" != "no"; then AC_DEFINE(HAVE_XSLT) else AC_MSG_RESULT(Not found) + if test "$xsltdir" = "default"; then + AC_MSG_WARN([Libxslt development libraries not found.]) + else + AC_MSG_ERROR([libxslt development libraries not found.]) fi fi fi -- 1.7.10.4