mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Note that this function is similar to `SETUP_OPENSSL`, but since the zlib headers are not necessarily required, we append `_LIB`. We are also more liberal regarding zlib(_a).lib, because extensions requiring zlib are looking only for zlib.lib if ext/zlib has been built as shared extension. This is overly restrictive at best, and actually makes no sense, since (a) we're not shipping shared zlib builds for years, and (b) users could have a zlib.lib which is a static build (they could even just rename zlib_a.lib to zlib.lib).
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("mysqlnd", "Mysql Native Client Driver", "yes");
|
|
if (PHP_MYSQLND != "no") {
|
|
|
|
if (CHECK_LIB("ws2_32.lib", "mysqlnd")) {
|
|
mysqlnd_source =
|
|
"mysqlnd_alloc.c " +
|
|
"mysqlnd_auth.c " +
|
|
"mysqlnd_block_alloc.c " +
|
|
"mysqlnd_connection.c " +
|
|
"mysqlnd_charset.c " +
|
|
"mysqlnd_commands.c " +
|
|
"mysqlnd_debug.c " +
|
|
"mysqlnd_driver.c " +
|
|
"mysqlnd_ext_plugin.c " +
|
|
"mysqlnd_loaddata.c " +
|
|
"mysqlnd_reverse_api.c " +
|
|
"mysqlnd_plugin.c " +
|
|
"mysqlnd_protocol_frame_codec.c " +
|
|
"mysqlnd_ps.c " +
|
|
"mysqlnd_ps_codec.c " +
|
|
"mysqlnd_read_buffer.c " +
|
|
"mysqlnd_result.c " +
|
|
"mysqlnd_result_meta.c " +
|
|
"mysqlnd_statistics.c " +
|
|
"mysqlnd_vio.c " +
|
|
"mysqlnd_wireprotocol.c " +
|
|
"php_mysqlnd.c ";
|
|
EXTENSION("mysqlnd", mysqlnd_source, false, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
if (SETUP_ZLIB_LIB("mysqlnd", PHP_MYSQLND) &&
|
|
CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects)
|
|
) {
|
|
AC_DEFINE("MYSQLND_COMPRESSION_ENABLED", 1, "Define to 1 if mysqlnd has compressed protocol support.");
|
|
AC_DEFINE("MYSQLND_SSL_SUPPORTED", 1, "Define to 1 if mysqlnd core SSL is enabled.");
|
|
if (CHECK_LIB("crypt32.lib", "mysqlnd")) {
|
|
AC_DEFINE("MYSQLND_HAVE_SSL", 1, "Define to 1 if mysqlnd extended SSL is enabled through a system library.");
|
|
ADD_EXTENSION_DEP('mysqlnd', 'hash');
|
|
}
|
|
}
|
|
PHP_INSTALL_HEADERS("", "ext/mysqlnd");
|
|
}
|
|
}
|