]> granicus.if.org Git - php/commitdiff
Correct the pdo header search order
authorWez Furlong <wez@php.net>
Sun, 13 Feb 2005 06:26:48 +0000 (06:26 +0000)
committerWez Furlong <wez@php.net>
Sun, 13 Feb 2005 06:26:48 +0000 (06:26 +0000)
ext/pdo_odbc/config.m4

index b8a9c88c22ddf5c0cd812b0c43dbb6e455a8e72c..5e00784c1dd0b4f188ec968b94df1073d38ef5d5 100755 (executable)
@@ -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