]> granicus.if.org Git - php/commitdiff
fix bug: #11693. Some systems have crypt() in libc.
authorfoobar <sniper@php.net>
Tue, 26 Jun 2001 14:36:45 +0000 (14:36 +0000)
committerfoobar <sniper@php.net>
Tue, 26 Jun 2001 14:36:45 +0000 (14:36 +0000)
configure.in

index 1e3909e0fd666da8525146402cd3969fe8564651..c6dc97d41bc5625b2bcafa38c36185ec4512dd2d 100644 (file)
@@ -365,6 +365,7 @@ asctime_r \
 chroot \
 ctime_r \
 cuserid \
+crypt \
 flock \
 gai_strerror \
 gcvt \
@@ -617,10 +618,9 @@ if test "$PHP_PHP_STREAMS" = "yes"; then
 fi
 
 AC_CHECK_LIB(crypt, crypt, [
- PHP_ADD_LIBRARY(crypt)
- AC_DEFINE(HAVE_LIBCRYPT,1,[ ]) 
- AC_DEFINE(HAVE_CRYPT,1,[ ]) 
-], [])
+  PHP_ADD_LIBRARY(crypt)
+  AC_DEFINE(HAVE_CRYPT,1,[ ]) 
+])
 
 divert(5)