1dnl 2dnl $Id$ 3dnl 4 5PHP_ARG_WITH(openssl, for OpenSSL support, 6[ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)]) 7 8PHP_ARG_WITH(kerberos, for Kerberos support, 9[ --with-kerberos[=DIR] OPENSSL: Include Kerberos support], no, no) 10 11if test "$PHP_OPENSSL" != "no"; then 12 PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared) 13 PHP_SUBST(OPENSSL_SHARED_LIBADD) 14 15 if test "$PHP_KERBEROS" != "no"; then 16 PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD) 17 fi 18 19 AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) 20 AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) 21 22 PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, 23 [ 24 AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) 25 ], [ 26 AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.]) 27 ]) 28fi 29