From: Olivier Courtin Date: Tue, 3 Nov 2009 22:24:12 +0000 (+0000) Subject: Add xpath headers support for libxml2 X-Git-Tag: 1.5.0b1~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87841204af573e61abf508caa6af11daadbc85c4;p=postgis Add xpath headers support for libxml2 git-svn-id: http://svn.osgeo.org/postgis/trunk@4730 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 66fd1f7cc..df5ea78ef 100644 --- a/configure.ac +++ b/configure.ac @@ -376,14 +376,17 @@ if test "$FOUND_LIBXML2" = "1"; then dnl Check headers file CPPFLAGS_SAVE="$CPPFLAGS" CPPFLAGS="$XML2_CPPFLAGS" - AC_CHECK_HEADERS([libxml/tree.h libxml/parser.h], [HAVE_LIBXML2=1], [AC_MSG_ERROR([could not find libxml/tree.h and/or libxml/parser.h related to libxml2])]) + AC_CHECK_HEADERS([libxml/tree.h libxml/parser.h libxml/xpath.h libxml/xpathInternals.h], + [HAVE_LIBXML2=1], + [AC_MSG_ERROR([could not find headers include related to libxml2])]) dnl Ensure we can link against libxml2 LIBS_SAVE="$LIBS" LIBS="$XML2_LDFLAGS" AC_CHECK_LIB([xml2], [xmlInitParser], [], [AC_MSG_ERROR([could not find libxml2])], []) - AC_DEFINE_UNQUOTED([HAVE_LIBXML2], [$HAVE_LIBXML2], [libxml/tree.h libxml/parser.h header]) + AC_DEFINE_UNQUOTED([HAVE_LIBXML2], [$HAVE_LIBXML2], + [libxml/tree.h libxml/parser.h libxml/xpath.h libxml/xpathInternals.h header]) AC_SUBST([HAVE_LIBXML2]) fi