From: Rainer Jung Date: Sat, 3 Jan 2009 16:12:55 +0000 (+0000) Subject: Allow feature test for apr_ssl.h to succeed: X-Git-Tag: 2.3.2~236 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a64dd8d8984acb48b7440d4db5ccbf0e490dec53;p=thirdparty%2Fapache%2Fhttpd.git Allow feature test for apr_ssl.h to succeed: Add necessary search paths temporarily to CPPFLAGS. Addition to r730717. When switching to another header, no need to again rename the ap_HAVE_APR_CRYPTO variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731009 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/session/config.m4 b/modules/session/config.m4 index 90e2d1fda98..4721831a22e 100644 --- a/modules/session/config.m4 +++ b/modules/session/config.m4 @@ -18,8 +18,11 @@ dnl APACHE_MODULE(session, session module, , , most) APACHE_MODULE(session_cookie, session cookie module, , , $session_mods_enable) APACHE_MODULE(session_crypto, session crypto module, , , no, [ - AC_CHECK_HEADERS(apr_ssl.h, [ap_HAVE_APR_SSL_H="yes"], [ap_HAVE_APR_SSL_H="no"]) - if test $ap_HAVE_APR_SSL_H = "no"; then + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I$APR_INCLUDEDIR -I$APU_INCLUDEDIR" + AC_CHECK_HEADERS(apr_crypto.h, [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.]) enable_session_crypto="no" fi