2
2
dnl $Id$
3
3
dnl config.m4 for mysqlnd driver
4
4
5
+
5
6
PHP_ARG_ENABLE(mysqlnd_threading, whether to enable threaded fetch in mysqlnd,
6
7
[ --enable-mysqlnd-threading
7
8
EXPERIMENTAL: Enable mysqlnd threaded fetch.
8
9
Note: This forces ZTS on!] , no, no)
9
10
11
+ PHP_ARG_ENABLE(disable_mysqlnd_compression_support, whether to disable compressed protocol support in mysqlnd,
12
+ [ --disable-mysqlnd-compression-support
13
+ Enable support for the MySQL compressed protocol in mysqlnd] , yes)
14
+
15
+ if test -z "$PHP_ZLIB_DIR"; then
16
+ PHP_ARG_WITH(zlib-dir, for the location of libz,
17
+ [ --with-zlib-dir[ =DIR] mysqlnd: Set the path to libz install prefix] , no, no)
18
+ fi
19
+
10
20
dnl If some extension uses mysqlnd it will get compiled in PHP core
11
21
if test "$PHP_MYSQLND_ENABLED" = "yes"; then
12
22
mysqlnd_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
@@ -23,6 +33,17 @@ if test "$PHP_MYSQLND_ENABLED" = "yes"; then
23
33
PHP_BUILD_THREAD_SAFE
24
34
AC_DEFINE ( [ MYSQLND_THREADED] , 1 , [ Use mysqlnd internal threading] )
25
35
fi
36
+
37
+ if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
38
+ AC_DEFINE ( [ MYSQLND_COMPRESSION_ENABLED] , 1 , [ Enable compressed protocol support] )
39
+ if test "$PHP_ZLIB_DIR" != "no"; then
40
+ PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR, MYSQLND_SHARED_LIBADD)
41
+ MYSQLND_LIBS="$MYSQLND_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
42
+ else
43
+ PHP_ADD_LIBRARY(z,, MYSQLND_SHARED_LIBADD)
44
+ MYSQLND_LIBS="$MYSQLND_LIBS -lz"
45
+ fi
46
+ fi
26
47
fi
27
48
28
49
if test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
0 commit comments