| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.4 2005/11/01 10:04:13 chtekk Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.5 2006/01/04 09:22:48 chtekk Exp $ |
| 4 | |
4 | |
| 5 | # ######################################################################## |
5 | # ######################################################################## |
| 6 | # |
6 | # |
| 7 | # eclass/php-common-r1.eclass |
7 | # eclass/php-common-r1.eclass |
| 8 | # Contains common functions which are shared between the |
8 | # Contains common functions which are shared between the |
| … | |
… | |
| 146 | |
146 | |
| 147 | # ######################################################################## |
147 | # ######################################################################## |
| 148 | # ORACLE SUPPORT |
148 | # ORACLE SUPPORT |
| 149 | # ######################################################################## |
149 | # ######################################################################## |
| 150 | |
150 | |
| 151 | php_check_oracle() { |
151 | php_check_oracle_all() { |
| 152 | if useq oci8 && [ -z "${ORACLE_HOME}" ]; then |
152 | if useq oci8 && [ -z "${ORACLE_HOME}" ]; then |
| 153 | eerror |
153 | eerror |
| 154 | eerror "You must have the ORACLE_HOME variable in your environment!" |
154 | eerror "You must have the ORACLE_HOME variable in your environment!" |
| 155 | eerror |
155 | eerror |
| 156 | die "Oracle configuration incorrect; user error" |
156 | die "Oracle configuration incorrect; user error" |
| … | |
… | |
| 162 | ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
162 | ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
| 163 | fi |
163 | fi |
| 164 | fi |
164 | fi |
| 165 | } |
165 | } |
| 166 | |
166 | |
|
|
167 | php_check_oracle_8() { |
|
|
168 | if useq oci8 && [ -z "${ORACLE_HOME}" ]; then |
|
|
169 | eerror |
|
|
170 | eerror "You must have the ORACLE_HOME variable in your environment!" |
|
|
171 | eerror |
|
|
172 | die "Oracle configuration incorrect; user error" |
|
|
173 | fi |
|
|
174 | |
|
|
175 | if useq oci8 ; then |
|
|
176 | if has_version 'dev-db/oracle-instantclient-basic' ; then |
|
|
177 | ewarn "Please ensure you have a full install of the Oracle client." |
|
|
178 | ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
|
|
179 | fi |
|
|
180 | fi |
|
|
181 | } |
|
|
182 | |
| 167 | # ######################################################################## |
183 | # ######################################################################## |
| 168 | # END OF ECLASS |
184 | # END OF ECLASS |
| 169 | # ######################################################################## |
185 | # ######################################################################## |