xref: /PHP-7.4/ext/phar/config.m4 (revision 033cafac)
1PHP_ARG_ENABLE([phar],
2  [for phar archive support],
3  [AS_HELP_STRING([--disable-phar],
4    [Disable phar support])],
5  [yes])
6
7if test "$PHP_PHAR" != "no"; then
8  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,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
9  AC_MSG_CHECKING([for phar openssl support])
10  if test "$PHP_OPENSSL_SHARED" = "yes"; then
11    AC_MSG_RESULT([no (shared openssl)])
12  else
13    if test "$PHP_OPENSSL" = "yes"; then
14      AC_MSG_RESULT([yes])
15      AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ])
16    else
17      AC_MSG_RESULT([no])
18    fi
19  fi
20  PHP_ADD_EXTENSION_DEP(phar, hash, true)
21  PHP_ADD_EXTENSION_DEP(phar, spl, true)
22  PHP_ADD_MAKEFILE_FRAGMENT
23
24  PHP_INSTALL_HEADERS([ext/phar], [php_phar.h])
25
26  PHP_OUTPUT(ext/phar/phar.1 ext/phar/phar.phar.1)
27fi
28