summaryrefslogtreecommitdiff
path: root/ext/standard/config.m4
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-04-22 20:54:35 +0000
committerFelipe Pena <felipe@php.net>2010-04-22 20:54:35 +0000
commit5234958f8a835587abea7abf7492eadcc5f75773 (patch)
tree162639bc3b58220b6c14a619be6f2216e4a20431 /ext/standard/config.m4
parent3dbf6acd7b93e565e391b84110954bb74512fb75 (diff)
downloadphp-git-5234958f8a835587abea7abf7492eadcc5f75773.tar.gz
- Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors)
Diffstat (limited to 'ext/standard/config.m4')
-rw-r--r--ext/standard/config.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4
index 92982a94fc..4e3db0ffe4 100644
--- a/ext/standard/config.m4
+++ b/ext/standard/config.m4
@@ -306,6 +306,15 @@ else
fi
AC_DEFINE_UNQUOTED(PHP_EXT_DES_CRYPT, $ac_result, [Whether the system supports extended DES salt])
+ if test "$ac_cv_crypt_md5" = "yes"; then
+ ac_result=1
+ ac_crypt_md5=1
+ else
+ ac_result=0
+ ac_crypt_md5=0
+ fi
+ AC_DEFINE_UNQUOTED(PHP_MD5_CRYPT, $ac_result, [Whether the system supports MD5 salt])
+
if test "$ac_cv_crypt_sha512" = "yes"; then
ac_result=1
ac_crypt_sha512=1
@@ -313,7 +322,7 @@ else
ac_result=0
ac_crypt_sha512=0
fi
- AC_DEFINE_UNQUOTED(PHP_EXT_SHA512_CRYPT, $ac_result, [Whether the system supports SHA512 salt])
+ AC_DEFINE_UNQUOTED(PHP_SHA512_CRYPT, $ac_result, [Whether the system supports SHA512 salt])
if test "$ac_cv_crypt_sha256" = "yes"; then
ac_result=1
@@ -322,7 +331,7 @@ else
ac_result=0
ac_crypt_sha256=0
fi
- AC_DEFINE_UNQUOTED(PHP_EXT_SHA256_CRYPT, $ac_result, [Whether the system supports SHA256 salt])
+ AC_DEFINE_UNQUOTED(PHP_SHA256_CRYPT, $ac_result, [Whether the system supports SHA256 salt])
AC_DEFINE_UNQUOTED(PHP_USE_PHP_CRYPT_R, 0, [Whether PHP has to use its own crypt_r for blowfish, des and ext des])
fi