Commit 6b12f17f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Wrap AM_PATH_XML2 by m4_ifdef to handle the case when AM_PATH_XML2 is not found

parent eb0c82d9
...@@ -352,7 +352,10 @@ fi ...@@ -352,7 +352,10 @@ fi
# libxml2 (for src/nghttp) # libxml2 (for src/nghttp)
have_libxml2=no have_libxml2=no
if test "x${request_libxml2}" != "xno"; then if test "x${request_libxml2}" != "xno"; then
AM_PATH_XML2(2.7.7, [have_libxml2=yes], [have_libxml2=no]) m4_ifdef([AM_PATH_XML2],
[AM_PATH_XML2(2.7.7, [have_libxml2=yes], [have_libxml2=no])],
[AC_MSG_WARN([configure was created without libxml2 detection macro; libxml2 detection is disabled])])
if test "x${have_libxml2}" = "xyes"; then if test "x${have_libxml2}" = "xyes"; then
AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have `libxml2` library.]) AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have `libxml2` library.])
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment