mirror of
https://github.com/php/php-src.git
synced 2025-01-21 11:13:38 +08:00
detect oracle9i
This commit is contained in:
parent
7c43206fb8
commit
2649b94449
@ -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!)
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user