diff options
author | Remi Collet <remi@php.net> | 2017-03-02 13:36:40 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2017-03-02 13:36:40 +0100 |
commit | 402eeb85988be91d90a92eff94635b6e9ef6160e (patch) | |
tree | daa4427a300d8560f35dd262e8986acead3d3ccf /ext/zip/config.m4 | |
parent | 859a6505d3bdb017f68ea1beedb118e3758ccb6f (diff) | |
download | php-git-402eeb85988be91d90a92eff94635b6e9ef6160e.tar.gz |
Zip: add support for encrypted archive
Diffstat (limited to 'ext/zip/config.m4')
-rw-r--r-- | ext/zip/config.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/zip/config.m4 b/ext/zip/config.m4 index bb653c2068..83798ee792 100644 --- a/ext/zip/config.m4 +++ b/ext/zip/config.m4 @@ -99,6 +99,15 @@ if test "$PHP_ZIP" != "no"; then -L$LIBZIP_LIBDIR ]) + PHP_CHECK_LIBRARY(zip, zip_file_set_encryption, + [ + PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD) + AC_DEFINE(HAVE_ENCRYPTION, 1, [Libzip >= 1.2.0 with encryption support]) + ], [ + ], [ + -L$LIBZIP_LIBDIR + ]) + AC_DEFINE(HAVE_ZIP,1,[ ]) PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c, $ext_shared,, $LIBZIP_CFLAGS) PHP_SUBST(ZIP_SHARED_LIBADD) |