Skip to content

Commit 813ea0b

Browse files
author
Derick Rethans
committed
- Make it build with the unbundled libxml again
1 parent 60d3dab commit 813ea0b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ext/simplexml/config.m4

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@ PHP_ARG_WITH(simplexml, for simplexml support,
55
[ --with-simplexml Include simplexml support])
66

77
if test "$PHP_SIMPLEXML" != "no"; then
8-
PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
8+
9+
PHP_LIBXML_DIR=$PHP_SIMPLEXML
10+
11+
PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [
12+
AC_DEFINE(HAVE_SIMPLEXML,1,[ ])
13+
PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
14+
PHP_SUBST(SIMPLEXML_SHARED_LIBADD)
15+
], [
16+
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
17+
])
918
fi

0 commit comments

Comments
 (0)