]> granicus.if.org Git - php/commitdiff
fix bug preventing from building oci8 as shared module
authorAntony Dovgal <tony2001@php.net>
Fri, 25 Feb 2005 11:31:10 +0000 (11:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 25 Feb 2005 11:31:10 +0000 (11:31 +0000)
(patch by stanislav dot voroniy at portavita dot nl)

ext/oci8/config.m4

index fe37fe71f25122cdbaa335b4be4ede718cd5855e..4c0de1cfa5812adc2efe0a958062500bb6cfb774 100644 (file)
@@ -80,13 +80,17 @@ PHP_ARG_WITH(oci8, for Oracle (OCI8) support using ORACLE_HOME installation,
 [  --with-oci8[=DIR]       Include Oracle (OCI8) support using an ORACLE_HOME
                           install. The default DIR is ORACLE_HOME])
 
-PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client,
-[  --with-oci8-instant-client[=DIR]    
+if test "$PHP_OCI8" = "no"; then
+  PHP_ARG_WITH(oci8-instant-client, for Oracle (OCI8) support using Oracle Instant Client,
+  [  --with-oci8-instant-client[=DIR]    
                           Include Oracle (OCI8) support using
                           Oracle Instant Client. DIR is the directory with the
                           Instant Client libraries. On Linux it will default to
                           /usr/lib/oracle/<most_recent_version>/client/lib
                           Other platforms will need to have it explicitly specified.])
+else 
+  PHP_OCI8_INSTANT_CLIENT="no";
+fi
 
 if test "$PHP_OCI8" != "no"; then
   if test "$PHP_OCI8_INSTANT_CLIENT" != "no"; then