diff options
author | foobar <sniper@php.net> | 2003-02-14 01:27:15 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-02-14 01:27:15 +0000 |
commit | f9f4644a84e208c1ef93759084d73d2d795b7188 (patch) | |
tree | 9b90d50b9f9b98b8359616db8f7da946763c2f68 /ext | |
parent | 884419044bcf145be0627f20f012c1e5155ab37d (diff) | |
download | php-git-f9f4644a84e208c1ef93759084d73d2d795b7188.tar.gz |
- Don't add libcrypt if the crypt() function is provided already.
(by libc, like in HP-UX)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/config.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 683dc6e1ce..47ea5843ac 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -58,6 +58,13 @@ dnl Check for crypt() capabilities dnl AC_DEFUN(AC_CRYPT_CAP,[ + if test "$ac_cv_func_crypt" = "no"; then + AC_CHECK_LIB(crypt, crypt, [ + LIBS="-lcrypt $LIBS -lcrypt" + AC_DEFINE(HAVE_CRYPT, 1, [ ]) + ]) + fi + AC_CACHE_CHECK(for standard DES crypt, ac_cv_crypt_des,[ AC_TRY_RUN([ #if HAVE_CRYPT_H @@ -185,10 +192,6 @@ main() { AC_DEFINE_UNQUOTED(PHP_BLOWFISH_CRYPT, $ac_result, [Whether the system supports BlowFish salt]) ]) -dnl AC_CHECK_LIB(pam, pam_start, [ -dnl EXTRA_LIBS="$EXTRA_LIBS -lpam" -dnl AC_DEFINE(HAVE_LIBPAM,1,[ ]) ], []) - AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot) AC_CRYPT_CAP |