1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

- Fixed bug #35981 (pdo-pgsql should not use pkg-config when not present)

This commit is contained in:
Jani Taskinen
2007-07-09 12:53:52 +00:00
parent d117b9014f
commit eb45a0f7d7
+4 -2
View File
@@ -71,8 +71,10 @@ if test "$PHP_PDO_PGSQL" != "no"; then
AC_MSG_CHECKING([for openssl dependencies])
if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then
AC_MSG_RESULT([yes])
if pkg-config openssl ; then
PDO_PGSQL_CFLAGS="`pkg-config openssl --cflags`"
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])