]> granicus.if.org Git - php/commitdiff
Allow build with expat too.
authorfoobar <sniper@php.net>
Mon, 19 May 2003 21:50:23 +0000 (21:50 +0000)
committerfoobar <sniper@php.net>
Mon, 19 May 2003 21:50:23 +0000 (21:50 +0000)
ext/xml/config.m4

index 16e748e6df6e2885d9d2be5230a143b3f267f3f3..2e9baf24d6e7d727c973ffe556f240b9b4084604 100644 (file)
@@ -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=<DIR>)
+    if test "$PHP_EXPAT_DIR" = "no"; then
+      AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=<DIR>)
+    fi
   ])
 
   if test "$PHP_EXPAT_DIR" != "no"; then