xref: /PHP-5.6/ext/openssl/config0.m4 (revision 1b2d58a3)
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
11PHP_ARG_WITH(system-ciphers, whether to use system default cipher list instead of hardcoded value,
12[  --with-system-ciphers   OPENSSL: Use system default cipher list instead of hardcoded value], no, no)
13
14if test "$PHP_OPENSSL" != "no"; then
15  PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared)
16  PHP_SUBST(OPENSSL_SHARED_LIBADD)
17
18  if test "$PHP_KERBEROS" != "no"; then
19    PHP_SETUP_KERBEROS(OPENSSL_SHARED_LIBADD)
20  fi
21
22  AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
23  AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
24  AC_CHECK_FUNCS([RAND_egd])
25
26  PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
27  [
28    AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
29  ], [
30    AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
31  ])
32  if test "$PHP_SYSTEM_CIPHERS" != "no"; then
33    AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
34  fi
35fi
36