From 4334f660651d866a8f2a9230be42d67bd9ad8067 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 19 May 2003 21:50:23 +0000 Subject: [PATCH] Allow build with expat too. --- ext/xml/config.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/xml/config.m4 b/ext/xml/config.m4 index 16e748e6df..2e9baf24d6 100644 --- a/ext/xml/config.m4 +++ b/ext/xml/config.m4 @@ -20,7 +20,9 @@ if test "$PHP_XML" != "no"; then PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [ xml_sources="xml.c compat.c" ], [ - AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=) + if test "$PHP_EXPAT_DIR" = "no"; then + AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=) + fi ]) if test "$PHP_EXPAT_DIR" != "no"; then -- 2.50.1