AC_DEFINE(HAVE_PDO_PGSQL,1,[Whether to build PostgreSQL for PDO support or not])
- AC_MSG_CHECKING([for openssl dependencies])
- grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
- if test $? -eq 0 ; then
- AC_MSG_RESULT([yes])
- dnl First try to find pkg-config
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
- fi
- else
- AC_MSG_RESULT([no])
- fi
-
old_LIBS=$LIBS
old_LDFLAGS=$LDFLAGS
LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
AC_MSG_RESULT($pdo_cv_inc_path)
])
- PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS)
+ PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared,,-I$pdo_cv_inc_path)
ifdef([PHP_ADD_EXTENSION_DEP],
[
PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)