From: Remi Collet Date: Thu, 11 Jun 2015 07:13:01 +0000 (+0200) Subject: try to fix debian case X-Git-Tag: v0.6.0RC2~14 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4178384df65aa8252ced766cfd501bbee7ce82ea;p=m6w6%2Fext-pq try to fix debian case --- diff --git a/config9.m4 b/config9.m4 index 4c7987b..0f86f4c 100644 --- a/config9.m4 +++ b/config9.m4 @@ -7,6 +7,7 @@ if test "$PHP_PQ" != "no"; then SEARCH_PATH="$PHP_PQ $SEARCH_PATH" fi for i in $SEARCH_PATH; do + dnl for Debian AC_MSG_CHECKING(for $i/include/postgresql/libpq-events.h) if test -f "$i/include/postgresql/libpq-events.h"; then PQ_INCDIR=$i @@ -35,6 +36,12 @@ if test "$PHP_PQ" != "no"; then AC_MSG_RESULT(yep) break fi + dnl for Debian + if test -f "$i/$PHP_LIBDIR/x86_64-linux-gnu/libpq.$SHLIB_SUFFIX_NAME"; then + PQ_LIBDIR=$i/$PHP_LIBDIR/x86_64-linux-gnu + AC_MSG_RESULT(yep) + break + fi AC_MSG_RESULT(nope) done