xref: /PHP-5.4/ext/mysqlnd/config.w32 (revision 652490d4)
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.c " +
10			"mysqlnd_alloc.c " +
11			"mysqlnd_auth.c " +
12			"mysqlnd_block_alloc.c " +
13			"mysqlnd_bt.c " +
14			"mysqlnd_charset.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_net.c " +
21			"mysqlnd_plugin.c " +
22			"mysqlnd_ps.c " +
23			"mysqlnd_ps_codec.c " +
24			"mysqlnd_result.c " +
25			"mysqlnd_result_meta.c " +
26			"mysqlnd_statistics.c " +
27			"mysqlnd_wireprotocol.c " +
28			"php_mysqlnd.c ";
29		EXTENSION("mysqlnd", mysqlnd_source, false);
30		if (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "mysqlnd", PHP_MYSQLND))) ||
31			(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "mysqlnd", PHP_MYSQLND)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
32		{
33			AC_DEFINE("MYSQLND_COMPRESSION_ENABLED", 1, "Compression support");
34			AC_DEFINE("MYSQLND_SSL_SUPPORTED", 1, "SSL support");
35		}
36		PHP_INSTALL_HEADERS("", "ext/mysqlnd");
37	}
38}
39