From: warlord Date: Tue, 18 Nov 2003 04:22:41 +0000 (+0000) Subject: Need to set -lssl -lcrypto and do so outside the --with-openssl code X-Git-Tag: 2.4~2124 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=19d05725bbd91c424ba2d2316560a311b8746194 Need to set -lssl -lcrypto and do so outside the --with-openssl code git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@739 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configure.ac b/configure.ac index 4c194d0..322d967 100644 --- a/configure.ac +++ b/configure.ac @@ -85,16 +85,17 @@ if test "x$PKG_CONFIG" = x || test "x$PKG_CONFIG" = "xno" ; then AC_ARG_WITH(openssl, AC_HELP_STRING([--with-openssl=PATH], [where openssl is installed]), [if test x_$with_openssl != x_/usr; then - SSLLIBS="-L${with_openssl}/lib -lssl -lcrypto" + SSLLIBS="-L${with_openssl}/lib" SSLFLAGS="-I${with_openssl}/include" fi]) + SSLLIBS="$SSLLIBS -lssl -lcrypto" else SSLLIBS="`$PKG_CONFIG --libs openssl`" SSLFLAGS="`$PKG_CONFIG --cflags openssl`" fi AC_MSG_CHECKING(for OpenSSL libraries) AC_MSG_RESULT($SSLLIBS) -LDFLAGS="$SSLLIBS $LDFLAGS" +LIBS="$LIBS $SSLLIBS" AC_MSG_CHECKING(for OpenSSL cflags) AC_MSG_RESULT($SSLFLAGS) CPPFLAGS="$SSLFLAGS $CPPFLAGS"