xref: /PHP-7.4/ext/dom/config.m4 (revision 75fb7486)
1PHP_ARG_ENABLE([dom],
2  [whether to enable DOM support],
3  [AS_HELP_STRING([--disable-dom],
4    [Disable DOM support])],
5  [yes])
6
7if test "$PHP_DOM" != "no"; then
8
9  if test "$PHP_LIBXML" = "no"; then
10    AC_MSG_ERROR([DOM extension requires LIBXML extension, add --with-libxml])
11  fi
12
13  PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
14    AC_DEFINE(HAVE_DOM,1,[ ])
15    PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
16                            domstringlist.c domexception.c namelist.c \
17                            processinginstruction.c cdatasection.c \
18                            documentfragment.c domimplementation.c \
19                            element.c node.c string_extend.c characterdata.c \
20                            documenttype.c domimplementationlist.c entity.c \
21                            nodelist.c text.c comment.c domconfiguration.c \
22                            domimplementationsource.c entityreference.c \
23                            notation.c xpath.c dom_iterators.c \
24                            typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
25                            $ext_shared)
26    PHP_SUBST(DOM_SHARED_LIBADD)
27    PHP_INSTALL_HEADERS([ext/dom/xml_common.h])
28    PHP_ADD_EXTENSION_DEP(dom, libxml)
29  ])
30fi
31