From 8b6a3520f3f8ccb52606babff7f66bbc00fc43c1 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Tue, 18 Nov 2003 04:22:41 +0000 Subject: [PATCH] Need to set -lssl -lcrypto and do so outside the --with-openssl code --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" -- 2.1.4