# $Id$
-INCLUDES=@INCLUDES@ -I@top_srcdir@ -I@top_srcdir@/libzend
-noinst_LIBRARIES=libphpext_domxml.a
-libphpext_domxml_a_SOURCES=domxml.c
+noinst_LTLIBRARIES=libphpext_domxml.la
+libphpext_domxml_la_SOURCES=domxml.c
yes)
AC_MSG_RESULT(yes)
PHP_EXTENSION(domxml)
+ old_LIBS=$LIBS
+ LIBS="$LIBS -lgz"
AC_CHECK_LIB(xml, xmlNewDoc, [AC_DEFINE(HAVE_DOMXML)],
[AC_MSG_ERROR(DOM module requires libxml >= 1.0)])
+ LIBS=$old_LIBS
AC_ADD_LIBRARY(xml)
+ AC_ADD_LIBRARY(gz)
+ AC_ADD_INCLUDE(/usr/local/include)
;;
*)
- test -f $withval/include/gnome-xml/tree.h && DOMXML_INCLUDE="$withval/include/gnome-xml"
+ test -f $withval/include/gnome-xml/tree.h && DOMXML_INCLUDE="$withval/include"
test -f $withval/include/tree.h && DOMXML_INCLUDE="$withval/include"
if test -n "$DOMXML_INCLUDE" ; then
AC_MSG_RESULT(yes)
#define _PHP3_DOMXML_H
#if HAVE_DOMXML
-#include <parser.h>
+#include <gnome-xml/parser.h>
extern php3_module_entry php3_domxml_module_entry;
#define php3_domxml_module_ptr &php3_domxml_module_entry