Conditional compilation with libevent-openssl

Require Libevent-openssl 2.0.8 because we use
evconnlistener_set_error_cb().
This commit is contained in:
Tatsuhiro Tsujikawa
2012-06-07 01:36:49 +09:00
parent b189e291a9
commit 18f557f743
2 changed files with 12 additions and 2 deletions

View File

@@ -96,12 +96,15 @@ if test "x${have_openssl}" = "xno"; then
fi
# libevent_openssl
PKG_CHECK_MODULES([LIBEVENT_OPENSSL], [libevent_openssl >= 2.0.6],
# 2.0.8 is required because we use evconnlistener_set_error_cb()
PKG_CHECK_MODULES([LIBEVENT_OPENSSL], [libevent_openssl >= 2.0.8],
[have_libevent_openssl=yes], [have_libevent_openssl=no])
if test "x${have_libevent_openssl}" = "xno"; then
AC_MSG_NOTICE($LIBEVENT_OPENSSL_PKG_ERRORS)
AC_MSG_NOTICE([Shrpx example program will not be built.])
fi
AM_CONDITIONAL([HAVE_LIBEVENT_OPENSSL],
[ test "x${have_libevent_openssl}" = "xyes" ])
# libxml2 (for examples/spdycat)
AM_PATH_XML2(2.7.7, [have_libxml2=yes], [have_libxml2=no])
@@ -186,5 +189,6 @@ AC_MSG_NOTICE([summary of build options:
CUnit: ${have_cunit}
OpenSSL: ${have_openssl}
Libxml2: ${have_libxml2}
Libevent(SSL): ${have_libevent_openssl}
Examples: ${enable_examples}
])