Selaa lähdekoodia

add optional UnixODBC support to mod_php

Ralf S. Engelschall 23 vuotta sitten
vanhempi
commit
bba2f9996d
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9 1
      apache/apache.spec

+ 9 - 1
apache/apache.spec

@@ -60,7 +60,7 @@ Distribution: OpenPKG [BASE]
 Group:        Web
 License:      ASF
 Version:      %{V_apache}
-Release:      20030910
+Release:      20030916
 
 #   package options (suexec related)
 %option       with_suexec               yes
@@ -118,6 +118,7 @@ Release:      20030910
 %option       with_mod_php_gdbm         no
 %option       with_mod_php_versioning   no
 %option       with_mod_php_snmp         no
+%option       with_mod_php_unixodbc     no
 
 #   package options (optional PHP3 specific settings; requires "with_mod_php3")
 %option       with_mod_php3_ftp         no
@@ -305,6 +306,10 @@ BuildPreReq:  ORACLE
 BuildPreReq:  snmp
 PreReq:       snmp
 %endif
+%if "%{with_mod_php_unixodbc}" == "yes"
+BuildPreReq:  unixodbc
+PreReq:       unixodbc
+%endif
 %endif
 %if "%{with_mod_php3}" == "yes"
 BuildPreReq:  make, bison, flex
@@ -617,6 +622,9 @@ AutoReqProv:  no
 %if "%{with_mod_php_versioning}" == "yes"
           --enable-versioning \
 %endif
+%if "%{with_mod_php_unixodbc}" == "yes"
+          --with-unixODBC=%{l_prefix} \
+%endif
 %if "%{with_mod_php_snmp}" == "yes"
           --with-snmp=%{l_prefix} \
 %endif