- error if "configure --with-libxml2" but the library isn't available
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
;;
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
;;