]> granicus.if.org Git - php/commitdiff
detect oracle9i
authorThies C. Arntzen <thies@php.net>
Thu, 26 Jul 2001 23:07:45 +0000 (23:07 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 26 Jul 2001 23:07:45 +0000 (23:07 +0000)
ext/oci8/config.m4

index 165ab9942ccea9217fec8b8484890fd27657ad55..9c7d422a8c81175f6ea66c927959f049408a7323 100644 (file)
@@ -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!)
          ;;