summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-02-14 01:27:15 +0000
committerfoobar <sniper@php.net>2003-02-14 01:27:15 +0000
commitf9f4644a84e208c1ef93759084d73d2d795b7188 (patch)
tree9b90d50b9f9b98b8359616db8f7da946763c2f68 /configure.in
parent884419044bcf145be0627f20f012c1e5155ab37d (diff)
downloadphp-git-f9f4644a84e208c1ef93759084d73d2d795b7188.tar.gz
- Don't add libcrypt if the crypt() function is provided already.
(by libc, like in HP-UX)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 373a500946..78e0507166 100644
--- a/configure.in
+++ b/configure.in
@@ -734,13 +734,6 @@ if test "$PHP_OPENSSL" != "no"; then
PHP_SETUP_OPENSSL
fi
-
-AC_CHECK_LIB(crypt, crypt, [
- PHP_ADD_LIBRARY(crypt)
- PHP_ADD_LIBRARY(crypt, 1)
- AC_DEFINE(HAVE_CRYPT,1,[ ])
-])
-
divert(5)
dnl ## In diversion 5 we check which extensions should be compiled.
@@ -821,6 +814,13 @@ esac
PHP_REGEX
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
+
+dnl this has to be here to prevent the openssl crypt() from
+dnl overriding the system provided crypt().
+if test "$ac_cv_lib_crypt_crypt" = "yes"; then
+ EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
+fi
+
unset LIBS LDFLAGS
dnl Configuring Zend and TSRM.