aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-01-14 10:59:49 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-01-14 10:59:49 +0000
commit3c74ee08ebb2d5332335f47e6ea6652a7e5e84a7 (patch)
treec83bc6e68a8680e892281b68aaa57fcd4904fb22
parentd866b45fdd8c41c7ff22f3aca35ce4b41f8e16a2 (diff)
downloadmonitoring-plugins-3c74ee08ebb2d5332335f47e6ea6652a7e5e84a7.tar.gz
Fixed ssl configure problems on Solaris (Bug 1096091)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1081 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--configure.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 030b1de3..d6ea4d3b 100644
--- a/configure.in
+++ b/configure.in
@@ -419,15 +419,17 @@ AC_HELP_STRING([--with-openssl=DIR], [sets path to openssl installation])
AC_HELP_STRING([--without-openssl], [disable openssl]),
OPENSSL=$withval)
+_SAVEDCPPFLAGS="$CPPFLAGS"
+_SAVEDLDFLAGS="$LDFLAGS"
if test X"$OPENSSL" = "Xno"; then
AC_MSG_WARN([openssl disabled, you will not be able to use ssl options in some plugins])
FOUNDSSL="dontbother"
else
dnl Check for OpenSSL header files
unset FOUNDINCLUDE
- _SAVEDCPPFLAGS="$CPPFLAGS"
if test "$OPENSSL" != "/usr"; then
CPPFLAGS="$CPPFLAGS -I$OPENSSL/include"
+ LDFLAGS="$LDFLAGS -R$OPENSSL/lib"
fi
AC_CHECK_HEADERS(openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h,
SSLINCLUDE="-I$OPENSSL/include"
@@ -470,13 +472,15 @@ if test "$FOUNDSSL" = "yes"; then
AC_SUBST(SSLLIBS)
AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found])
with_openssl="yes"
-elif test "$FOUNDSSL" = "no"; then
- AC_MSG_WARN([OpenSSL libs could not be found])
- with_openssl="no"
else
+ if test "$FOUNDSSL" = "no"; then
+ AC_MSG_WARN([OpenSSL libs could not be found])
+ dnl else deliberately disabled
+ fi
with_openssl="no"
+ CPPFLAGS="$_SAVEDCPPFLAGS"
+ LDFLAGS="$_SAVEDLDFLAGS"
fi
-CPPFLAGS="$_SAVEDCPPFLAGS"
dnl
dnl Checks for header files.