xref: /PHP-5.6/ext/mssql/config.w32 (revision 4b4cde07)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("mssql", "mssql support", "no");
5
6if (PHP_MSSQL != "no") {
7	if (CHECK_LIB("ntwdblib.lib", "mssql", "\\MSSQL7\\DevTools\\Lib;\\MSSQL7\\DevTools\\Lib;" + PHP_MSSQL) &&
8			CHECK_HEADER_ADD_INCLUDE("sqlfront.h", "CFLAGS_MSSQL", "\\MSSQL7\\DevTools\\Include;\\MSSQL7\\DevTools\\Include" + PHP_MSSQL)) {
9		EXTENSION("mssql", "php_mssql.c");
10		AC_DEFINE('HAVE_MSSQL', 1, 'Have MSSQL support');
11		ADD_FLAG("CFLAGS_MSSQL", "/D DBNTWIN32=1 /D MSSQL70=1");
12	} else {
13		WARNING("mssql not enabled; libraries and headers not found");
14	}
15}
16
17ARG_WITH("dblib", "mssql support with freetds", "no");
18
19if (PHP_DBLIB != "no") {
20	if (CHECK_LIB("dblib.lib", "dblib", PHP_PHP_BUILD + "\\freetds") &&
21			CHECK_HEADER_ADD_INCLUDE("sybfront.h", "CFLAGS_DBLIB", PHP_PHP_BUILD + "\\freetds;" + PHP_DBLIB)) {
22		EXTENSION("dblib", "php_mssql.c", null, null, null, "ext\\dblib");
23		AC_DEFINE('HAVE_MSSQL', 1, 'Have MSSQL support');
24		ADD_FLAG("CFLAGS_DBLIB", "/D HAVE_FREETDS=1 /D DBNTWIN32=1 /D MSSQL70=1 /D MSSQL_EXPORTS /D COMPILE_DL_MSSQL");
25	} else {
26		WARNING("dblib not enabled; libraries and headers not found");
27	}
28}
29