xref: /PHP-7.3/ext/pdo_mysql/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("pdo-mysql", "MySQL support for PDO", "no");
4
5if (PHP_PDO_MYSQL != "no") {
6	if (PHP_PDO_MYSQL == "yes" || PHP_PDO_MYSQL == "mysqlnd") {
7		AC_DEFINE('PDO_USE_MYSQLND', 1, 'Using MySQL native driver');
8		STDOUT.WriteLine("INFO: mysqlnd build");
9		EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c");
10		ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
11	} else {
12		if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
13				CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL", PHP_PHP_BUILD + "\\include\\mysql;" + PHP_PDO_MYSQL)) {
14			EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
15		} else {
16			WARNING("pdo_mysql not enabled; libraries and headers not found");
17		}
18	}
19}
20