config0.m4 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. dnl config.m4 for extension openssl
  2. PHP_ARG_WITH(openssl, for OpenSSL support,
  3. [ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 1.0.1)])
  4. PHP_ARG_WITH(kerberos, for Kerberos support,
  5. [ --with-kerberos[=DIR] OPENSSL: Include Kerberos support], no, no)
  6. PHP_ARG_WITH(system-ciphers, whether to use system default cipher list instead of hardcoded value,
  7. [ --with-system-ciphers OPENSSL: Use system default cipher list instead of hardcoded value], no, no)
  8. if test "$PHP_OPENSSL" != "no"; then
  9. PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared)
  10. PHP_SUBST(OPENSSL_SHARED_LIBADD)
  11. if test "$PHP_KERBEROS" != "no"; then
  12. PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD)
  13. fi
  14. AC_CHECK_FUNCS([RAND_egd])
  15. PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
  16. [
  17. AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
  18. ], [
  19. AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
  20. ])
  21. if test "$PHP_SYSTEM_CIPHERS" != "no"; then
  22. AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
  23. fi
  24. fi