2 dnl config.m4 for extension pdo
3 dnl vim:se ts=2 sw=2 et:
5 AC_DEFUN([PHP_PDO_PEAR_CHECK],[
6 pdo_running_under_pear=0
9 pdo_running_under_pear=1
13 if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
14 # we're running in an environment that smells like pear,
15 # and the PHP_PEAR_VERSION env var is not set. That implies
16 # that we're running under a slightly broken pear installer
18 PDO requires that you upgrade your PEAR installer tools. Please
21 % sudo pear upgrade pear
23 or by manually downloading and installing PEAR version 1.3.5 or higher.
25 Once you've upgraded, please re-try your PDO install.
30 PHP_ARG_ENABLE(pdo, whether to enable PDO support,
31 [ --disable-pdo Disable PHP Data Objects support], yes)
33 if test "$PHP_PDO" != "no"; then
35 dnl Make sure $PHP_PDO is 'yes' when it's not 'no' :)
40 if test "$ext_shared" = "yes" ; then
44 Due to the way that loadable modules work on OSX/Darwin, you need to
45 compile the PDO package statically into the PHP core.
47 Please follow the instructions at: http://netevil.org/node.php?nid=202
48 for more detail on this issue.
54 PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
55 ifdef([PHP_ADD_EXTENSION_DEP],
57 PHP_ADD_EXTENSION_DEP(pdo, spl, true)
60 ifdef([PHP_INSTALL_HEADERS],
62 dnl Sadly, this is a complete NOP for pecl extensions
63 PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h])
66 dnl so we always include the known-good working hack.
67 PHP_ADD_MAKEFILE_FRAGMENT