summaryrefslogtreecommitdiff
path: root/ext/phar/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/config.m4')
-rw-r--r--ext/phar/config.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/phar/config.m4 b/ext/phar/config.m4
index 8fba62ff9a..5e32c5b6f2 100644
--- a/ext/phar/config.m4
+++ b/ext/phar/config.m4
@@ -7,6 +7,11 @@ PHP_ARG_ENABLE(phar, for phar archive support,
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,[ ])
+ else
+ AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared])
+ fi
if test "$PHP_OPENSSL_SHARED" = "yes"; then
AC_MSG_RESULT([no (shared openssl)])
else