]> granicus.if.org Git - postgis/commitdiff
Add xpath headers support for libxml2
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 3 Nov 2009 22:24:12 +0000 (22:24 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 3 Nov 2009 22:24:12 +0000 (22:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4730 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 66fd1f7ccda411bf5b9c49073ab04c97bc644fb0..df5ea78ef8a16bd23a5f7eb68c61308ecda15092 100644 (file)
@@ -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