cvs: php4 /ext/dom config.m4 /ext/domxml config.m4
| From: | Marcus Boerger | Date: | Sat, 14 Jun 2003 11:27:50 +0000 |
| Subject: | cvs: php4 /ext/dom config.m4 /ext/domxml config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21690@lists.php.net to get a copy of this message | ||
helly Sat Jun 14 07:27:50 2003 EDT
Modified files:
/php4/ext/dom config.m4
/php4/ext/domxml config.m4
Log:
Don't allow both and mark the old one as deprecated
Index: php4/ext/dom/config.m4
diff -u php4/ext/dom/config.m4:1.1 php4/ext/dom/config.m4:1.2
--- php4/ext/dom/config.m4:1.1 Thu Jun 5 13:06:52 2003
+++ php4/ext/dom/config.m4 Sat Jun 14 07:27:49 2003
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.1 2003/06/05 17:06:52 rrichards Exp $
+dnl $Id: config.m4,v 1.2 2003/06/14 11:27:49 helly Exp $
dnl
AC_DEFUN(PHP_DOM_CHECK_VERSION,[
@@ -22,6 +22,10 @@
PHP_ARG_WITH(dom5, for DOM support,
[ --with-dom5[=DIR] Include new DOM support (requires libxml >= 2.4.14).
DIR is the libxml install directory.])
+
+if test "$PHP_DOM" != "no" -a "$PHP_DOM5" != "no"; then
+ AC_MSG_ERROR([Either use deprecated dom or new dom5 extension.])
+fi
if test -z "$PHP_ZLIB_DIR"; then
PHP_ARG_WITH(zlib-dir, for the location of libz,
Index: php4/ext/domxml/config.m4
diff -u php4/ext/domxml/config.m4:1.47 php4/ext/domxml/config.m4:1.48
--- php4/ext/domxml/config.m4:1.47 Wed Jun 11 15:25:32 2003
+++ php4/ext/domxml/config.m4 Sat Jun 14 07:27:49 2003
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.47 2003/06/11 19:25:32 rrichards Exp $
+dnl $Id: config.m4,v 1.48 2003/06/14 11:27:49 helly Exp $
dnl
AC_DEFUN(PHP_DOM_XSLT_CHECK_VERSION,[
@@ -37,8 +37,12 @@
])
PHP_ARG_WITH(dom, for DOM support,
-[ --with-dom[=DIR] Include DOM support (requires libxml >= 2.4.14).
+[ --with-dom[=DIR] Old deprecated DOM support (requires libxml >= 2.4.14).
DIR is the libxml install directory.])
+
+if test "$PHP_DOM" != "no" -a "$PHP_DOM5" != "no"; then
+ AC_MSG_ERROR([Either use deprecated dom or new dom5 extension.])
+fi
if test "$PHP_DOM" != "no"; then