diff options
author | foobar <sniper@php.net> | 2006-01-05 21:53:19 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2006-01-05 21:53:19 +0000 |
commit | 8c56ee5cb6533b58814d89d024e711234960b0b9 (patch) | |
tree | d64e743d05e665e9d7a7443db4680f95f1d53242 | |
parent | c4790e3a9e546c939caa535cfc1fe4110b9d549d (diff) | |
download | php-git-8c56ee5cb6533b58814d89d024e711234960b0b9.tar.gz |
MFH: - Fixed bug #35911 (HAVE_PG_CONFIG_H set incorrectly)
-rw-r--r-- | ext/pgsql/config.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pgsql/config.m4 b/ext/pgsql/config.m4 index 37f77c1930..33412cd3ac 100644 --- a/ext/pgsql/config.m4 +++ b/ext/pgsql/config.m4 @@ -24,7 +24,9 @@ if test "$PHP_PGSQL" != "no"; then AC_MSG_RESULT([$PG_CONFIG]) PGSQL_INCLUDE=`$PG_CONFIG --includedir` PGSQL_LIBDIR=`$PG_CONFIG --libdir` - AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + if test -r "$PGSQL_INCLUDE/pg_config.h"; then + AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h]) + fi else AC_MSG_RESULT(not found) if test "$PHP_PGSQL" = "yes"; then |