diff options
Diffstat (limited to 'ext/domxml/config.m4')
-rw-r--r-- | ext/domxml/config.m4 | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4 deleted file mode 100644 index ad94373c9c..0000000000 --- a/ext/domxml/config.m4 +++ /dev/null @@ -1,66 +0,0 @@ -dnl $Id$ -dnl config.m4 for extension domxml - -AC_DEFUN(PHP_DOM_CHECK_VERSION,[ - old_CPPFLAGS=$CPPFLAGS - CPPFLAGS=-I$DOMXML_DIR/include - AC_MSG_CHECKING(for libxml version) - AC_EGREP_CPP(yes,[ - #include <libxml/xmlversion.h> - #if LIBXML_VERSION >= 20207 - yes - #endif - ],[ - AC_MSG_RESULT(>= 2.2.7) - ],[ - AC_MSG_ERROR(libxml version 2.2.7 or greater required.) - ]) - CPPFLAGS=$old_CPPFLAGS -]) - -PHP_ARG_WITH(dom, for DOM support, -[ --with-dom[=DIR] Include DOM support (requires libxml >= 2.2.7). - DIR is the libxml install directory, - defaults to /usr.]) - -if test "$PHP_DOM" != "no"; then - - if test -r $PHP_DOM/include/libxml/tree.h; then - DOMXML_DIR=$PHP_DOM - else - AC_MSG_CHECKING(for DOM in default path) - for i in /usr/local /usr; do - if test -r $i/include/libxml/tree.h; then - DOMXML_DIR=$i - AC_MSG_RESULT(found in $i) - fi - done - fi - - if test -z "$DOMXML_DIR"; then - AC_MSG_RESULT(not found) - AC_MSG_ERROR(Please reinstall the libxml >= 2.2.7 distribution) - fi - - PHP_DOM_CHECK_VERSION - - PHP_ADD_INCLUDE($DOMXML_DIR/include) - - if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.s? ; then - DOM_LIBNAME=xml2 - else - DOM_LIBNAME=xml - fi - - PHP_SUBST(DOMXML_SHARED_LIBADD) - PHP_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) - - if test "$PHP_ZLIB_DIR" = "no"; then - AC_MSG_ERROR(DOMXML requires ZLIB. Use --with-zlib-dir=<DIR>) - fi - - PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, DOMXML_SHARED_LIBADD) - - AC_DEFINE(HAVE_DOMXML,1,[ ]) - PHP_EXTENSION(domxml, $ext_shared) -fi |