cvs: php-src(PHP_5_2) /ext/pdo_pgsql config.m4
| From: | Jani Taskinen | Date: | Mon, 09 Jul 2007 12:54:11 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/pdo_pgsql config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-45134@lists.php.net to get a copy of this message | ||
jani Mon Jul 9 12:54:11 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/pdo_pgsql config.m4
Log:
MFH:- Fixed bug #35981 (pdo-pgsql should not use pkg-config when not present)
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/config.m4?r1=1.13.4.3&r2=1.13.4.4&diff_format=u
Index: php-src/ext/pdo_pgsql/config.m4
diff -u php-src/ext/pdo_pgsql/config.m4:1.13.4.3 php-src/ext/pdo_pgsql/config.m4:1.13.4.4
--- php-src/ext/pdo_pgsql/config.m4:1.13.4.3 Mon Jul 9 12:38:02 2007
+++ php-src/ext/pdo_pgsql/config.m4 Mon Jul 9 12:54:11 2007
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.13.4.3 2007/07/09 12:38:02 jani Exp $
+dnl $Id: config.m4,v 1.13.4.4 2007/07/09 12:54:11 jani Exp $
dnl
if test "$PHP_PDO" != "no"; then
@@ -71,8 +71,10 @@
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])