xref: /PHP-7.3/ext/soap/config.m4 (revision 902d39a3)
1dnl config.m4 for extension soap
2
3PHP_ARG_ENABLE(soap, whether to enable SOAP support,
4[  --enable-soap           Enable SOAP support])
5
6if test -z "$PHP_LIBXML_DIR"; then
7  PHP_ARG_WITH(libxml-dir, libxml2 install dir,
8  [  --with-libxml-dir=DIR   SOAP: libxml2 install prefix], no, no)
9fi
10
11if test "$PHP_SOAP" != "no"; then
12
13  if test "$PHP_LIBXML" = "no"; then
14    AC_MSG_ERROR([SOAP extension requires LIBXML extension, add --enable-libxml])
15  fi
16
17  PHP_SETUP_LIBXML(SOAP_SHARED_LIBADD, [
18    AC_DEFINE(HAVE_SOAP,1,[ ])
19    PHP_NEW_EXTENSION(soap, soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
20    PHP_SUBST(SOAP_SHARED_LIBADD)
21  ], [
22    AC_MSG_ERROR([libxml2 not found. Please check your libxml2 installation.])
23  ])
24fi
25