summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-02-17 04:23:15 +0000
committerWez Furlong <wez@php.net>2005-02-17 04:23:15 +0000
commit55f53a5a963da2788840995bc33752c10d4c166a (patch)
treecbae417e3efbd324679051a467398c9b5939e749 /ext/pdo_firebird
parent4585c15cb04ac0f7da95ed04ecc808bfd1681417 (diff)
downloadphp-git-55f53a5a963da2788840995bc33752c10d4c166a.tar.gz
symlinked pdo drivers under ext.
Enabled PDO and PDO_SQLITE by default. Fixup PDO header detection so that it searches in the correct order, and correctly picks up the headers when building from outside of the source tree. TODO: make pdo_XXX auto-enable when XXX is enabled. Volunteers welcome.
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/config.m417
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/pdo_firebird/config.m4 b/ext/pdo_firebird/config.m4
index 8af5e9b6d0..92d2a5d6ef 100644
--- a/ext/pdo_firebird/config.m4
+++ b/ext/pdo_firebird/config.m4
@@ -30,20 +30,23 @@ if test "$PHP_PDO_FIREBIRD" != "no"; then
], [
-L$FIREBIRD_LIBDIR
])
-
- if test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_inc_path=$prefix/include/php/ext
- elif test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+
+ AC_MSG_CHECKING([for PDO includes])
+ if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$abs_srcdir/ext
+ elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$abs_srcdir/ext
- elif test -f ext/pdo/php_pdo_driver.h; then
- pdo_inc_path=ext
+ elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$prefix/include/php/ext
else
- AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
+ AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
fi
+ AC_MSG_RESULT($pdo_inc_path)
PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD)
PHP_ADD_INCLUDE($FIREBIRD_INCDIR)
AC_DEFINE(HAVE_PDO_FIREBIRD,1,[ ])
PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_inc_path)
PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD)
+ PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo)
fi