summaryrefslogtreecommitdiff
path: root/ext/phar/config.m4
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-11-04 01:27:52 +0000
committerMarcus Boerger <helly@php.net>2008-11-04 01:27:52 +0000
commite2ab5164ce634e40cb7135c2787a7c000193ced8 (patch)
treeddd20c11318112a27b5dd5b286792a69770c8f55 /ext/phar/config.m4
parent55e7b35e6b3eac5b50f3d8f8f550f4546376a94a (diff)
downloadphp-git-e2ab5164ce634e40cb7135c2787a7c000193ced8.tar.gz
- MFH Fix dependency from Phar to hash
Diffstat (limited to 'ext/phar/config.m4')
-rw-r--r--ext/phar/config.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/phar/config.m4 b/ext/phar/config.m4
index 5e32c5b6f2..2ac7f3dd81 100644
--- a/ext/phar/config.m4
+++ b/ext/phar/config.m4
@@ -8,7 +8,9 @@ if test "$PHP_PHAR" != "no"; then
PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared)
AC_MSG_CHECKING([for phar openssl support])
if test "$PHP_HASH_SHARED" != "yes"; then
- AC_DEFINE(PHAR_HASH_OK,1,[ ])
+ if test "$PHP_HASH" != "no"; then
+ AC_DEFINE(PHAR_HASH_OK,1,[ ])
+ fi
else
AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared])
fi
@@ -22,6 +24,7 @@ if test "$PHP_PHAR" != "no"; then
AC_MSG_RESULT([no])
fi
fi
+ PHP_ADD_EXTENSION_DEP(phar, hash, true)
PHP_ADD_EXTENSION_DEP(phar, spl, true)
PHP_ADD_MAKEFILE_FRAGMENT
fi