diff options
author | Andrey Hristov <andrey@php.net> | 2009-11-20 08:12:14 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2009-11-20 08:12:14 +0000 |
commit | 7674c942c7f0a128b3b8a50e248b0b2fe02e41d8 (patch) | |
tree | 6bfec21cda060f431baf43a447dc3f3bb4b3c13f /ext/mysqlnd/config9.m4 | |
parent | 4e958fb22d6c2a5c2ba528967e7f6504de9a6a5d (diff) | |
download | php-git-7674c942c7f0a128b3b8a50e248b0b2fe02e41d8.tar.gz |
Compressed protocol support + extensibility for mysqlnd
Diffstat (limited to 'ext/mysqlnd/config9.m4')
-rw-r--r-- | ext/mysqlnd/config9.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/mysqlnd/config9.m4 b/ext/mysqlnd/config9.m4 index 59fd6c74cc..b3b802cd38 100644 --- a/ext/mysqlnd/config9.m4 +++ b/ext/mysqlnd/config9.m4 @@ -2,11 +2,21 @@ dnl dnl $Id$ dnl config.m4 for mysqlnd driver + PHP_ARG_ENABLE(mysqlnd_threading, whether to enable threaded fetch in mysqlnd, [ --enable-mysqlnd-threading EXPERIMENTAL: Enable mysqlnd threaded fetch. Note: This forces ZTS on!], no, no) +PHP_ARG_ENABLE(disable_mysqlnd_compression_support, whether to disable compressed protocol support in mysqlnd, +[ --disable-mysqlnd-compression-support + Enable support for the MySQL compressed protocol in mysqlnd], yes) + +if test -z "$PHP_ZLIB_DIR"; then + PHP_ARG_WITH(zlib-dir, for the location of libz, + [ --with-zlib-dir[=DIR] mysqlnd: Set the path to libz install prefix], no, no) +fi + dnl If some extension uses mysqlnd it will get compiled in PHP core if test "$PHP_MYSQLND_ENABLED" = "yes"; then mysqlnd_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \ @@ -23,6 +33,17 @@ if test "$PHP_MYSQLND_ENABLED" = "yes"; then PHP_BUILD_THREAD_SAFE AC_DEFINE([MYSQLND_THREADED], 1, [Use mysqlnd internal threading]) fi + + if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then + AC_DEFINE([MYSQLND_COMPRESSION_ENABLED], 1, [Enable compressed protocol support]) + if test "$PHP_ZLIB_DIR" != "no"; then + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR, MYSQLND_SHARED_LIBADD) + MYSQLND_LIBS="$MYSQLND_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz" + else + PHP_ADD_LIBRARY(z,, MYSQLND_SHARED_LIBADD) + MYSQLND_LIBS="$MYSQLND_LIBS -lz" + fi + fi fi if test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then |