summaryrefslogtreecommitdiff
path: root/ext/hash/config.m4
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-06-26 22:33:16 +0000
committerScott MacVicar <scottmac@php.net>2008-06-26 22:33:16 +0000
commitcc7e8970de8b8c2b314bf2fa31d0bff410259fd8 (patch)
treefbb80720a18f30307b9406edb0157d10885b6e4e /ext/hash/config.m4
parentd7f5edd98860ee6d65fd4f863c54a9172db13214 (diff)
downloadphp-git-cc7e8970de8b8c2b314bf2fa31d0bff410259fd8.tar.gz
Make the old mhash API a wrapper around hash, this removes a dependency.
Diffstat (limited to 'ext/hash/config.m4')
-rw-r--r--ext/hash/config.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/hash/config.m4 b/ext/hash/config.m4
index 392398729e..b426b16e04 100644
--- a/ext/hash/config.m4
+++ b/ext/hash/config.m4
@@ -4,6 +4,14 @@ dnl config.m4 for extension hash
PHP_ARG_ENABLE(hash, whether to enable hash support,
[ --disable-hash Disable hash support], yes)
+if test "$PHP_MHASH" != "no"; then
+ if test "$PHP_HASH" == "no"; then
+ PHP_HASH="yes"
+ fi
+
+ AC_DEFINE(PHP_MHASH_BC, 1, [ ])
+fi
+
if test "$PHP_HASH" != "no"; then
AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension])