summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-12-07 00:31:36 +0000
committerfoobar <sniper@php.net>2000-12-07 00:31:36 +0000
commit71fa3102fcd56f2bfd8a335636715ac4eecfcf6b (patch)
treeac9f9e0a44a1a40a55d799fad85bfbbcb7c77752
parentded8918b9e7512347679b4f0421a12fc119e12bd (diff)
downloadphp-git-71fa3102fcd56f2bfd8a335636715ac4eecfcf6b.tar.gz
merge from HEAD.
-rw-r--r--configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f555c46670..ba261a2a6a 100644
--- a/configure.in
+++ b/configure.in
@@ -523,6 +523,21 @@ AC_DEFUN(PHP_SETUP_OPENSSL,[
AC_MSG_ERROR(Cannot find OpenSSL's <evp.h>)
fi
+ old_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="-I$OPENSSL_INC"
+ AC_MSG_CHECKING(for OpenSSL version)
+ AC_EGREP_CPP(yes,[
+ #include <openssl/opensslv.h>
+ #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
+ yes
+ #endif
+ ],[
+ AC_MSG_RESULT(>= 0.9.6)
+ ],[
+ AC_MSG_ERROR(OpenSSL version 0.9.6 or greater required.)
+ ])
+ CPPFLAGS=$old_CPPFLAGS
+
AC_ADD_LIBPATH($OPENSSL_DIR/lib)
AC_ADD_LIBRARY(ssl)
AC_ADD_LIBRARY(crypto)