summaryrefslogtreecommitdiff
path: root/ext/pdo/config.m4
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-02-09 04:54:56 +0000
committerWez Furlong <wez@php.net>2005-02-09 04:54:56 +0000
commit5a2cb4154a577bf9f8eb365748ccb0f4bff219c3 (patch)
tree26dddcf5f09664fcac0480c7cc45bebbcdc60042 /ext/pdo/config.m4
parent5f026d026aa8dc2cf133703f9c7da00edfebbb96 (diff)
downloadphp-git-5a2cb4154a577bf9f8eb365748ccb0f4bff219c3.tar.gz
update ready for release
# includes big hack to help guide people into running "make install" so # that the headers get installed; works around a pear bug.
Diffstat (limited to 'ext/pdo/config.m4')
-rwxr-xr-xext/pdo/config.m436
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/pdo/config.m4 b/ext/pdo/config.m4
index a5abc65683..7c0dcbfd2b 100755
--- a/ext/pdo/config.m4
+++ b/ext/pdo/config.m4
@@ -1,6 +1,42 @@
dnl $Id$
dnl config.m4 for extension pdo
+AC_ARG_WITH(broken-pear-install,
+[],[
+ if test "x$withval" = "xyes"; then
+ AC_MSG_ERROR([
+Due to a bug in the pear installer you should install the PDO package manually
+using the following steps:
+
+ 1. Download the PDO package to your local machine:
+
+ % wget http://pecl.php.net/get/PDO
+
+ 2. Determine your PHP bin dir.
+ If your php5 cli binary lives at /usr/local/php5/bin/php
+ the bin dir is /usr/local/php5/bin
+
+ 3. Set your path so that your PHP bin dir is at the front:
+ export PATH="/usr/local/php5/bin:\$PATH"
+
+ 4. Manually build:
+
+ % tar xzf PDO-0.2.tgz
+ % cd PDO-0.2
+ % phpize
+ % ./configure
+ % make
+ % sudo -s
+ # make install
+ # echo extension=pdo.so >> /usr/local/php5/lib/php.ini
+
+We apologize for the inconvenience, and hope to resolve this problem
+in a future PHP/PEAR release.
+
+])
+fi
+])
+
PHP_ARG_ENABLE(pdo, whether to disable PDO support,
[ --disable-pdo Disable PHP Data Objects support], yes)