1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/mysqlnd/config9.m4
Peter Kokot 3cbf5aa63e Normalize mysqlnd extension sources (#14654)
The m4_normalize() can simplify the list argument. It removes leading
and trailing spaces and tabs, sequences of backslash-then-newline, and
replaces multiple spaces, tabs, and newlines with a single space.
2024-06-25 19:33:51 +02:00

71 lines
2.2 KiB
Plaintext

PHP_ARG_ENABLE([mysqlnd],
[whether to enable mysqlnd],
[AS_HELP_STRING([--enable-mysqlnd],
[Enable mysqlnd explicitly, will be done implicitly when required by other
extensions])],
[no],
[yes])
PHP_ARG_WITH([mysqlnd-ssl],
[whether to explicitly enable SSL support in mysqlnd],
[AS_HELP_STRING([--with-mysqlnd-ssl],
[Explicitly enable SSL support in ext/mysqlnd when not building with
ext/openssl. If ext/openssl is enabled at the configure step, SSL is enabled
implicitly.])],
[no],
[no])
PHP_ARG_ENABLE([mysqlnd-compression-support],
[whether to enable compressed protocol support in mysqlnd],
[AS_HELP_STRING([--disable-mysqlnd-compression-support],
[Disable support for the MySQL compressed protocol in mysqlnd])],
[yes],
[no])
dnl If some extension uses mysqlnd it will get compiled in PHP core
if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
AS_VAR_IF([PHP_MYSQLND_COMPRESSION_SUPPORT], [no],,
[PHP_SETUP_ZLIB([MYSQLND_SHARED_LIBADD],
[AC_DEFINE([MYSQLND_COMPRESSION_ENABLED], [1],
[Define to 1 if mysqlnd has compressed protocol support.])])])
AC_DEFINE([MYSQLND_SSL_SUPPORTED], 1, [Enable core mysqlnd SSL code])
dnl Empty variable means 'no' (for phpize builds).
test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
if test "$PHP_OPENSSL" != "no" || test "$PHP_MYSQLND_SSL" != "no"; then
PHP_SETUP_OPENSSL(MYSQLND_SHARED_LIBADD, [AC_DEFINE(MYSQLND_HAVE_SSL,1,[Enable mysqlnd code that uses OpenSSL directly])])
fi
PHP_NEW_EXTENSION([mysqlnd], [m4_normalize([
mysqlnd_alloc.c
mysqlnd_auth.c
mysqlnd_block_alloc.c
mysqlnd_charset.c
mysqlnd_commands.c
mysqlnd_connection.c
mysqlnd_debug.c
mysqlnd_driver.c
mysqlnd_ext_plugin.c
mysqlnd_loaddata.c
mysqlnd_plugin.c
mysqlnd_protocol_frame_codec.c
mysqlnd_ps_codec.c
mysqlnd_ps.c
mysqlnd_read_buffer.c
mysqlnd_result_meta.c
mysqlnd_result.c
mysqlnd_reverse_api.c
mysqlnd_statistics.c
mysqlnd_vio.c
mysqlnd_wireprotocol.c
php_mysqlnd.c
])],
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
PHP_INSTALL_HEADERS([ext/mysqlnd/])
PHP_SUBST([MYSQLND_SHARED_LIBADD])
fi