xref: /PHP-8.3/ext/pgsql/config.w32 (revision ce668c0e)
1// vim:ft=javascript
2
3ARG_WITH("pgsql", "PostgreSQL support", "no");
4
5if (PHP_PGSQL != "no") {
6	if (CHECK_LIB("libpq.lib", "pgsql", PHP_PGSQL) &&
7		CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;" + PHP_PGSQL)) {
8		EXTENSION("pgsql", "pgsql.c", PHP_PGSQL_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
9		AC_DEFINE('HAVE_PGSQL', 1, 'Have PostgreSQL library');
10		ADD_FLAG("CFLAGS_PGSQL", "/D PGSQL_EXPORTS /D HAVE_PQFREEMEM /D HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT" + (X64 ? " /D HAVE_PG_LO64" : "") + " ");
11	} else {
12		WARNING("pgsql not enabled; libraries and headers not found");
13	}
14}
15