Skip to content

Commit 4334f66

Browse files
author
foobar
committed
Allow build with expat too.
1 parent dc379b9 commit 4334f66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/xml/config.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ if test "$PHP_XML" != "no"; then
2020
PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [
2121
xml_sources="xml.c compat.c"
2222
], [
23-
AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=<DIR>)
23+
if test "$PHP_EXPAT_DIR" = "no"; then
24+
AC_MSG_ERROR(xml2-config not found. Use --with-libxml-dir=<DIR>)
25+
fi
2426
])
2527

2628
if test "$PHP_EXPAT_DIR" != "no"; then

0 commit comments

Comments
 (0)