diff options
Diffstat (limited to 'ext/pdo_oci/config.m4')
-rwxr-xr-x | ext/pdo_oci/config.m4 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/pdo_oci/config.m4 b/ext/pdo_oci/config.m4 index 043d0cccf2..a3d260e6c0 100755 --- a/ext/pdo_oci/config.m4 +++ b/ext/pdo_oci/config.m4 @@ -160,20 +160,23 @@ You need to tell me where to find your oracle SDK, or set ORACLE_HOME. -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD ]) - 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 + AC_MSG_CHECKING([for PDO includes]) + if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then + pdo_inc_path=$abs_srcdir/ext + elif test -f $abs_srcdir/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.]) + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) fi + AC_MSG_RESULT($pdo_inc_path) PHP_NEW_EXTENSION(pdo_oci, pdo_oci.c oci_driver.c oci_statement.c, $ext_shared,,-I$pdo_inc_path) PHP_SUBST_OLD(PDO_OCI_SHARED_LIBADD) PHP_SUBST_OLD(PDO_OCI_DIR) PHP_SUBST_OLD(PDO_OCI_VERSION) + PHP_ADD_EXTENSION_DEP(pdo_oci, pdo) fi |