xref: /PHP-8.2/ext/dom/config.m4 (revision 5acd86df)
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 \
16                            domexception.c parentnode.c \
17                            processinginstruction.c cdatasection.c \
18                            documentfragment.c domimplementation.c \
19                            element.c node.c characterdata.c \
20                            documenttype.c entity.c \
21                            nodelist.c text.c comment.c \
22                            entityreference.c \
23                            notation.c xpath.c dom_iterators.c \
24                            namednodemap.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