From: Jeff Trawick Date: Sat, 29 Mar 2014 17:06:00 +0000 (+0000) Subject: Merge r1583005 and 1583027 from trunk: X-Git-Tag: 2.4.10~397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=507333ba3a941633375196389e310eea54a2163f;p=apache Merge r1583005 and 1583027 from trunk: Report OpenSSL directories in configuration summary Describe issue with multiple OpenSSL installs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1583028 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 07f3e80292..9a4c1181ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -863,6 +863,8 @@ MESSAGE(STATUS " Install prefix .................. : ${CMAKE_INSTALL_PREFIX}") MESSAGE(STATUS " C compiler ...................... : ${CMAKE_C_COMPILER}") MESSAGE(STATUS " APR include directory ........... : ${APR_INCLUDE_DIR}") MESSAGE(STATUS " APR libraries ................... : ${APR_LIBRARIES}") +MESSAGE(STATUS " OpenSSL include directory ....... : ${OPENSSL_INCLUDE_DIR}") +MESSAGE(STATUS " OpenSSL libraries ............... : ${OPENSSL_LIBRARIES}") MESSAGE(STATUS " PCRE include directory .......... : ${PCRE_INCLUDE_DIR}") MESSAGE(STATUS " PCRE libraries .................. : ${PCRE_LIBRARIES}") MESSAGE(STATUS " libxml2 iconv prereq include dir. : ${LIBXML2_ICONV_INCLUDE_DIR}") diff --git a/README.cmake b/README.cmake index 3f1e72ada4..1b0589b3af 100644 --- a/README.cmake +++ b/README.cmake @@ -59,6 +59,25 @@ enabled: * openssl (mod_ssl and https support for ab) * zlib (mod_deflate) +OpenSSL +------- + +If you have a binary install of OpenSSL in a well-known directory (e.g., +%HOME%\OpenSSL-Win64) and you wish to build httpd against a different +install of OpenSSL, the cmake build may unexpectedly select OpenSSL +libraries in the well-known directory even if the expected include files +are used. Check the cmake output from your httpd build to confirm that +the expected OpenSSL libraries and include files are used. + +The cmake FindOpenSSL module searches for OpenSSL libraries in a "VC" +subdirectory of the OpenSSL install with filenames that indicate the build +type (e.g., "/lib/VC/ssleay32MD.lib"); defining CMAKE_PREFIX_PATH +or OPENSSL_ROOT_DIR or even OPENSSL_LIBRARIES does not circumvent finding +these libraries. + +To work around this issue, rename the well-known OpenSSL directory while +building httpd. Let us know if you find a better solution. + How to build ------------