From: Evan Hunt Date: Thu, 13 Aug 2015 05:00:17 +0000 (-0700) Subject: [v9_9] better reporting of xml/json unavailability X-Git-Tag: v9.9.8rc1~55 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9183f4d5fed664239466baaddcf8032f78e0b48e;p=thirdparty%2Fbind9.git [v9_9] better reporting of xml/json unavailability - error if "configure --with-libxml2" but the library isn't available --- diff --git a/configure b/configure index c3fa3ddb532..1c6c6cd50bd 100755 --- a/configure +++ b/configure @@ -15513,8 +15513,14 @@ case "$use_libxml2" in libxml2_cflags=`xml2-config --cflags` ;; *) - libxml2_libs= - libxml2_cflags= + if test "$use_libxml2" = "yes" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "required libxml2 version not available" "$LINENO" 5 + else + libxml2_libs= + libxml2_cflags= + fi ;; esac ;; diff --git a/configure.in b/configure.in index 48cbc5d1c52..6909b69460f 100644 --- a/configure.in +++ b/configure.in @@ -1495,8 +1495,13 @@ case "$use_libxml2" in libxml2_cflags=`xml2-config --cflags` ;; *) - libxml2_libs= - libxml2_cflags= + if test "$use_libxml2" = "yes" ; then + AC_MSG_RESULT(no) + AC_MSG_ERROR(required libxml2 version not available) + else + libxml2_libs= + libxml2_cflags= + fi ;; esac ;;