xref: /PHP-7.1/ext/pdo_odbc/config.w32 (revision 03f3b847)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("pdo-odbc", "ODBC support for PDO", "no");
5
6if (PHP_PDO_ODBC != "no") {
7	if (CHECK_LIB("odbc32.lib", "pdo_odbc") && CHECK_LIB("odbccp32.lib", "pdo_odbc")
8	&& CHECK_HEADER_ADD_INCLUDE('sql.h', 'CFLAGS_PDO_ODBC')
9	&& CHECK_HEADER_ADD_INCLUDE('sqlext.h', 'CFLAGS_PDO_ODBC')) {
10
11		EXTENSION("pdo_odbc", "pdo_odbc.c odbc_driver.c odbc_stmt.c");
12		ADD_EXTENSION_DEP('pdo_odbc', 'pdo');
13
14	} else {
15		WARNING("pdo_odbc support can't be enabled, headers or libraries are missing (SDK)")
16		PHP_PDO_ODBC = "no"
17	}
18}
19