cvs: pecl /pdo config.m4
| From: | Wez Furlong | Date: | Sun, 13 Feb 2005 01:55:01 +0000 |
| Subject: | cvs: pecl /pdo config.m4 | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2527@lists.php.net to get a copy of this message | ||
wez Sat Feb 12 20:55:01 2005 EDT
Modified files:
/pecl/pdo config.m4
Log:
try to handle OSX issues more gracefully
http://cvs.php.net/diff.php/pecl/pdo/config.m4?r1=1.7&r2=1.8&ty=u
Index: pecl/pdo/config.m4
diff -u pecl/pdo/config.m4:1.7 pecl/pdo/config.m4:1.8
--- pecl/pdo/config.m4:1.7 Tue Feb 8 23:54:56 2005
+++ pecl/pdo/config.m4 Sat Feb 12 20:54:59 2005
@@ -1,10 +1,22 @@
-dnl $Id: config.m4,v 1.7 2005/02/09 04:54:56 wez Exp $
+dnl $Id: config.m4,v 1.8 2005/02/13 01:54:59 wez Exp $
dnl config.m4 for extension pdo
+dnl vim:se ts=2 sw=2 et:
AC_ARG_WITH(broken-pear-install,
[],[
if test "x$withval" = "xyes"; then
- AC_MSG_ERROR([
+ case $host_alias in
+ *darwin*)
+ AC_MSG_ERROR([
+Due to the way that loadable modules work on OSX/Darwin, you need to
+compile the PDO package statically into the PHP core.
+
+Please follow the instructions at: http://netevil.org/node.php?nid=202
+for more detail on this issue.
+ ])
+ ;;
+ *)
+ AC_MSG_ERROR([
Due to a bug in the pear installer you should install the PDO package manually
using the following steps:
@@ -34,6 +46,8 @@
in a future PHP/PEAR release.
])
+ ;;
+ esac
fi
])
@@ -41,6 +55,13 @@
[ --disable-pdo Disable PHP Data Objects support], yes)
if test "$PHP_PDO" != "no"; then
+ if test "$ext_shared" = "yes" ; then
+ case $host_alias in
+ *darwin*)
+ ext_shared=no
+ ;;
+ esac
+ fi
PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
PHP_ADD_MAKEFILE_FRAGMENT
fi