xref: /PHP-7.2/ext/mysqlnd/config.w32 (revision 902d39a3)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("mysqlnd", "Mysql Native Client Driver", "yes");
5if (PHP_MYSQLND != "no") {
6
7	if (CHECK_LIB("ws2_32.lib", "mysqlnd")) {
8		mysqlnd_source =
9			"mysqlnd_alloc.c " +
10			"mysqlnd_auth.c " +
11			"mysqlnd_block_alloc.c " +
12			"mysqlnd_connection.c " +
13			"mysqlnd_charset.c " +
14			"mysqlnd_commands.c " +
15			"mysqlnd_debug.c " +
16			"mysqlnd_driver.c " +
17			"mysqlnd_ext_plugin.c " +
18			"mysqlnd_loaddata.c " +
19			"mysqlnd_reverse_api.c " +
20			"mysqlnd_plugin.c " +
21			"mysqlnd_protocol_frame_codec.c " +
22			"mysqlnd_ps.c " +
23			"mysqlnd_ps_codec.c " +
24			"mysqlnd_read_buffer.c " +
25			"mysqlnd_result.c " +
26			"mysqlnd_result_meta.c " +
27			"mysqlnd_statistics.c " +
28			"mysqlnd_vio.c " +
29			"mysqlnd_wireprotocol.c " +
30			"php_mysqlnd.c ";
31		EXTENSION("mysqlnd", mysqlnd_source, false, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
32		if ((((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "mysqlnd", PHP_MYSQLND))) ||
33			(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "mysqlnd", PHP_MYSQLND)) ||
34			(PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED))) &&
35			CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects)
36			)
37		{
38			AC_DEFINE("MYSQLND_COMPRESSION_ENABLED", 1, "Compression support");
39			AC_DEFINE("MYSQLND_SSL_SUPPORTED", 1, "SSL support");
40		}
41		PHP_INSTALL_HEADERS("", "ext/mysqlnd");
42	}
43}
44