Commit bfba9964 authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

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
parent 281e0cf3
Loading
Loading
Loading
Loading
+5 −1
Changes for modules/session/config.m4: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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 <apr_crypto.h>],[
#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.])