From: Ryan Bloom Date: Mon, 12 Feb 2001 16:50:21 +0000 (+0000) Subject: Allow mod_tls to compile on Unix boxes where openssl has already been X-Git-Tag: 2.0.11~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4badcff776ad3def9b5d2f9ebea476f8cfa853c1;p=apache Allow mod_tls to compile on Unix boxes where openssl has already been installed. Submitted by: Gomez Henri Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88115 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 8e68946ab6..6e6b9c2c64 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0b1 + *) Allow mod_tls to compile under Unix boxes where openssl has been + installed to the system include files. + [Gomez Henri ] + *) Cleanup the mod_tls configure process. This should remove any need to hand-edit any files. We require OpenSSL 0.9.6 or later, but configure doesn't check that yet. [Ryan Bloom] diff --git a/modules/tls/config.m4 b/modules/tls/config.m4 index df3ecbf41e..0966fbacde 100644 --- a/modules/tls/config.m4 +++ b/modules/tls/config.m4 @@ -18,7 +18,14 @@ APACHE_MODULE(tls, TLS/SSL support, $tls_objs, , no, [ LIBS="$LIBS -L$withval -lssl -lcrypto" ssl_lib="OpenSSL" else - AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h) + searchfile="$withval/openssl/ssl.h" + if test -f $searchfile ; then + INCLUDES="$INCLUDES -I$withval/openssl" + LIBS="$LIBS -L$withval -lssl -lcrypto" + ssl_lib="OpenSSL" + else + AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h) + fi fi fi AC_MSG_RESULT(found $ssl_lib)