xref: /PHP-8.4/ext/pdo_mysql/config.w32 (revision d6a75e19)
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, 'Define to 1 if the pdo_mysql extension uses mysqlnd.');
8		STDOUT.WriteLine("INFO: mysqlnd build");
9		EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c mysql_sql_parser.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
10		ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
11		ADD_EXTENSION_DEP('pdo_mysql', 'mysqlnd');
12		ADD_MAKEFILE_FRAGMENT();
13	} else {
14		if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
15				CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL",
16					PHP_PDO_MYSQL + "\\include;" +
17					PHP_PHP_BUILD + "\\include\\mysql;" +
18					PHP_PDO_MYSQL)) {
19			EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c mysql_sql_parser.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
20			ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
21			ADD_MAKEFILE_FRAGMENT();
22		} else {
23			WARNING("pdo_mysql not enabled; libraries and headers not found");
24		}
25	}
26}
27