From e74c4e4cdc8a960d2ce0af2aab53d40c77a2870f Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Fri, 18 Feb 2011 21:27:12 +0000 Subject: Actually check for APU_HAVE_CRYPTO at configure time. This fixes a compile error with apr 2 if crypto is disabled. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1072155 13f79535-47bb-0310-9956-ffa450edef68 --- modules/session/config.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/session/config.m4 b/modules/session/config.m4 index 0647299d4e..bf92a02b7a 100644 --- a/modules/session/config.m4 +++ b/modules/session/config.m4 @@ -34,7 +34,11 @@ APACHE_MODULE(session_cookie, session cookie module, $session_cookie_objects, , APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , no, [ saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES" - AC_CHECK_HEADERS(apr_crypto.h, [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"]) + AC_TRY_COMPILE([#include ],[ +#if APU_HAVE_CRYPTO == 0 +#error no crypto support +#endif +], [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"]) CPPFLAGS="$saved_CPPFLAGS" if test $ap_HAVE_APR_CRYPTO = "no"; then AC_MSG_WARN([Your APR does not include SSL/EVP support.]) -- cgit v1.2.3