xref: /PHP-8.4/ext/pdo_pgsql/config.w32 (revision f66feaec)
1// vim:ft=javascript
2
3ARG_WITH("pdo-pgsql", "PostgreSQL support for PDO", "no");
4
5if (PHP_PDO_PGSQL != "no") {
6	if (CHECK_LIB("libpq.lib", "pdo_pgsql", PHP_PDO_PGSQL) &&
7			CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
8		EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c pgsql_sql_parser.c");
9
10		AC_DEFINE('HAVE_PDO_PGSQL', 1, "Define to 1 if the PHP extension 'pdo_pgsql' is available.");
11
12		ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
13		ADD_MAKEFILE_FRAGMENT();
14	} else {
15		WARNING("pdo_pgsql not enabled; libraries and headers not found");
16	}
17}
18