config.m4 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. dnl $Id$
  2. dnl config.m4 for extension phar
  3. PHP_ARG_ENABLE(phar, for phar archive support,
  4. [ --disable-phar Disable phar support], yes)
  5. if test "$PHP_PHAR" != "no"; then
  6. 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)
  7. AC_MSG_CHECKING([for phar openssl support])
  8. if test "$PHP_HASH_SHARED" != "yes"; then
  9. if test "$PHP_HASH" != "no"; then
  10. AC_DEFINE(PHAR_HASH_OK,1,[ ])
  11. fi
  12. else
  13. AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared])
  14. fi
  15. if test "$PHP_OPENSSL_SHARED" = "yes"; then
  16. AC_MSG_RESULT([no (shared openssl)])
  17. else
  18. if test "$PHP_OPENSSL" = "yes"; then
  19. AC_MSG_RESULT([yes])
  20. AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ])
  21. else
  22. AC_MSG_RESULT([no])
  23. fi
  24. fi
  25. PHP_ADD_EXTENSION_DEP(phar, hash, true)
  26. PHP_ADD_EXTENSION_DEP(phar, spl, true)
  27. PHP_ADD_MAKEFILE_FRAGMENT
  28. PHP_INSTALL_HEADERS([ext/phar], [php_phar.h])
  29. PHP_OUTPUT(ext/phar/phar.1 ext/phar/phar.phar.1)
  30. fi