summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-11-13 14:17:47 +0000
committerfoobar <sniper@php.net>2003-11-13 14:17:47 +0000
commit4eab4158cdfe35dc8fe482b13051fcb6fe7cf406 (patch)
tree9f3183d604c20cd5fb4aa503c6cd5fa7c77a125a /acinclude.m4
parent45f12cc61fedf2398255c169d4e37f514d689236 (diff)
downloadphp-git-4eab4158cdfe35dc8fe482b13051fcb6fe7cf406.tar.gz
- Fixed build of shared extensions which require openssl and when you only
have static openssl libraries.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 340f79f191..d8a9ce9a3c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1658,7 +1658,9 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
],[
-L$OPENSSL_LIBDIR
])
-
+
+ old_LIBS=$LIBS
+ LIBS="$LIBS -lcrypto"
PHP_CHECK_LIBRARY(ssl, SSL_CTX_set_ssl_version, [
PHP_ADD_LIBRARY(ssl,,$1)
found_openssl=yes
@@ -1667,6 +1669,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
],[
-L$OPENSSL_LIBDIR
])
+ LIBS=$old_LIBS
fi
dnl For apache 1.3.x static build