mirror of
https://github.com/php/php-src.git
synced 2025-01-14 15:54:36 +08:00
16 lines
642 B
JavaScript
16 lines
642 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_WITH("pgsql", "PostgreSQL support", "no");
|
|
|
|
if (PHP_PGSQL != "no") {
|
|
if (CHECK_LIB("libpq.lib", "pgsql", PHP_PGSQL) &&
|
|
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PGSQL)) {
|
|
EXTENSION("pgsql", "pgsql.c");
|
|
AC_DEFINE('HAVE_PGSQL', 1, 'Have PostgreSQL library');
|
|
ADD_FLAG("CFLAGS_PGSQL", "/D HAVE_PG_CONFIG_H /D PGSQL_EXPORTS /D HAVE_PQSETNONBLOCKING /D HAVE_PQCMDTUPLES /D HAVE_PQCLIENTENCODING /D HAVE_PQESCAPE /D HAVE_PQPARAMETERSTATUS /D HAVE_PGTRANSACTIONSTATUS");
|
|
} else {
|
|
WARNING("pgsql not enabled; libraries and headers not found");
|
|
}
|
|
}
|