Commit 5677808c authored by Martin Kraemer's avatar Martin Kraemer
Browse files

Search for OpenSSL in the "standard locations" .../include and .../lib

which are ubiquitous after openSSL's "make install". The old logic relied
on a common directory for both include files and libraries (very non-standard).

Submitted by:	Clere Jean-Frederic <JFrederic.Clere@fujitsu-siemens.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88944 13f79535-47bb-0310-9956-ffa450edef68
parent 7561b95a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -23,11 +23,18 @@ APACHE_MODULE(tls, TLS/SSL support, $tls_objs, , no, [
                  INCLUDES="$INCLUDES -I$withval/openssl"
                  LIBS="$LIBS -L$withval -lssl -lcrypto"
                  ssl_lib="OpenSSL"
              else
                  searchfile="$withval/include/openssl/ssl.h"
                  if test -f $searchfile ; then
                      INCLUDES="$INCLUDES -I$withval/include"
                      LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
                      ssl_lib="OpenSSL"
                  else
                      AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h)
                  fi
              fi
          fi
      fi
      AC_MSG_RESULT(found $ssl_lib)
  ],[
      AC_MSG_ERROR(--with-ssl not given)