summaryrefslogtreecommitdiff
path: root/ext/oci8/config.m4
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2003-12-16 15:58:10 +0000
committerAntony Dovgal <tony2001@php.net>2003-12-16 15:58:10 +0000
commitc002553d7c42863238449b05f5d9a187ffa021a0 (patch)
tree2d434bd798f13720fc89850010b52a994993d36c /ext/oci8/config.m4
parentc0e519e6ead5bd535d50d8be6930fab84af863dd (diff)
downloadphp-git-c002553d7c42863238449b05f5d9a187ffa021a0.tar.gz
fix bug #26133 (thanks to Harald)
rename constant and add library check to config.m4 add info lines to see if Collection & Temp Lob support enabled or not add OCI_THREADED to use thread safe OCI mode with ZTS (should fix bug #26558)
Diffstat (limited to 'ext/oci8/config.m4')
-rw-r--r--ext/oci8/config.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4
index 69fe4466b2..d153f18b3e 100644
--- a/ext/oci8/config.m4
+++ b/ext/oci8/config.m4
@@ -138,10 +138,22 @@ if test "$PHP_OCI8" != "no"; then
-L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
])
+ dnl
+ dnl Check if we have collections
+ dnl
+ PHP_CHECK_LIBRARY(clntsh, OCICollAssign,
+ [
+ AC_DEFINE(HAVE_OCI8_COLLECTIONS,1,[ ])
+ ], [], [
+ -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
+ ])
+
+
PHP_NEW_EXTENSION(oci8, oci8.c, $ext_shared)
AC_DEFINE(HAVE_OCI8,1,[ ])
PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
PHP_SUBST_OLD(OCI8_DIR)
PHP_SUBST_OLD(OCI8_VERSION)
+
fi