1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Files
archived-php-src/ext/openssl/config0.m4
T
Peter Kokot 1ceadaed52 Autotools: Normalize and quote all PHP_NEW_EXTENSION arguments (#15144)
This adds Autoconf quote characters to all PHP_NEW_EXTENSION arguments
and syncs the CS across the php-src Autotools build system.
2024-07-29 00:14:59 +02:00

40 lines
1.4 KiB
Plaintext

PHP_ARG_WITH([openssl],
[for OpenSSL support],
[AS_HELP_STRING([--with-openssl],
[Include OpenSSL support (requires OpenSSL >= 1.1.1)])])
PHP_ARG_WITH([system-ciphers],
[whether to use system default cipher list instead of hardcoded value],
[AS_HELP_STRING([--with-system-ciphers],
[OPENSSL: Use system default cipher list instead of hardcoded value])],
[no],
[no])
PHP_ARG_WITH([openssl-legacy-provider],
[whether to load legacy algorithm provider],
[AS_HELP_STRING([--with-openssl-legacy-provider],
[OPENSSL: Load legacy algorithm provider in addition to default provider])],
[no],
[no])
if test "$PHP_OPENSSL" != "no"; then
PHP_NEW_EXTENSION([openssl], [openssl.c xp_ssl.c], [$ext_shared])
PHP_SUBST([OPENSSL_SHARED_LIBADD])
PHP_SETUP_OPENSSL([OPENSSL_SHARED_LIBADD],
[AC_DEFINE([HAVE_OPENSSL_EXT], [1],
[Define to 1 if the openssl extension is available.])])
PHP_CHECK_LIBRARY([crypto], [RAND_egd],
[AC_DEFINE([HAVE_RAND_EGD], [1],
[Define to 1 if OpenSSL crypto library has the 'RAND_egd' function.])],,
[$OPENSSL_LIBS])
if test "$PHP_SYSTEM_CIPHERS" != "no"; then
AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
fi
if test "$PHP_OPENSSL_LEGACY_PROVIDER" != "no"; then
AC_DEFINE(LOAD_OPENSSL_LEGACY_PROVIDER,1,[ Load legacy algorithm provider in addition to default provider ])
fi
fi