diff options
-rw-r--r-- | ext/xsl/config.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/xsl/config.m4 b/ext/xsl/config.m4 index c24bd186f6..d8db8bb963 100644 --- a/ext/xsl/config.m4 +++ b/ext/xsl/config.m4 @@ -23,6 +23,10 @@ PHP_ARG_WITH(xsl, for XSL support, [ --with-xsl[=DIR] Include new XSL support (requires libxslt >= 1.0.18). DIR is the libxslt install directory.]) +if test "$PHP_XSL" != "no" -a "$PHP_DOM" == "no"; then + AC_MSG_ERROR([XSL extension requires DOM extension, add --with-dom.]) +fi + if test "$PHP_XSL" != "no"; then if test -r $PHP_XSL/include/libxslt/transform.h; then |