diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4 index 165ab9942cc..9c7d422a8c8 100644 --- a/ext/oci8/config.m4 +++ b/ext/oci8/config.m4 @@ -5,6 +5,8 @@ AC_DEFUN(AC_OCI8_VERSION,[ if test -s "$OCI8_DIR/orainst/unix.rgs"; then OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4` test -z "$OCI8_VERSION" && OCI8_VERSION=7.3 + elif test -f $OCI8_DIR/lib/libclntsh.s?.9.0; then + OCI8_VERSION=9.0 elif test -f $OCI8_DIR/lib/libclntsh.s?.8.0; then OCI8_VERSION=8.1 elif test -f $OCI8_DIR/lib/libclntsh.s?.1.0; then @@ -62,11 +64,12 @@ if test "$PHP_OCI8" != "no"; then PHP_ADD_LIBRARY_WITH_PATH(clntsh, $OCI8_DIR/lib, OCI8_SHARED_LIBADD) ;; - 8.1) + 8.1|9.0) PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD) AC_DEFINE(HAVE_OCI8_TEMP_LOB,1,[ ]) ;; + *) AC_MSG_ERROR(Unsupported Oracle version!) ;;