summaryrefslogtreecommitdiff
path: root/ext/domxml/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/domxml/config.m4')
-rw-r--r--ext/domxml/config.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4
index 49caa60a62..9d147771df 100644
--- a/ext/domxml/config.m4
+++ b/ext/domxml/config.m4
@@ -37,9 +37,13 @@ AC_DEFUN(PHP_DOM_EXSLT_CHECK_VERSION,[
])
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
PHP_LIBXML_DIR=$PHP_DOM