From: Wez Furlong Date: Sun, 13 Feb 2005 06:26:48 +0000 (+0000) Subject: Correct the pdo header search order X-Git-Tag: RELEASE_0_2_3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5edd570b944a40d93b6de471e2bb9cddf56beb7f;p=php Correct the pdo header search order --- diff --git a/ext/pdo_odbc/config.m4 b/ext/pdo_odbc/config.m4 index b8a9c88c22..5e00784c1d 100755 --- a/ext/pdo_odbc/config.m4 +++ b/ext/pdo_odbc/config.m4 @@ -132,12 +132,12 @@ functions required for PDO support. PHP_SUBST(PDO_ODBC_SHARED_LIBADD) AC_MSG_CHECKING([for PDO includes]) - if test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then - pdo_inc_path=$prefix/include/php/ext - elif test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$abs_srcdir/ext elif test -f ext/pdo/php_pdo_driver.h; then pdo_inc_path=ext + elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then + pdo_inc_path=$prefix/include/php/ext else AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) fi