configure: Add a check for xmlDocProperties.

This commit is contained in:
Adam Martinson 2010-11-02 17:20:08 -05:00 committed by Alexandre Julliard
parent 290aca1b19
commit 9408b4973d
3 changed files with 13 additions and 0 deletions

8
configure vendored
View File

@ -9242,6 +9242,14 @@ if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
fi
ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
"
if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
fi fi

View File

@ -1121,6 +1121,8 @@ then
[AC_DEFINE(HAVE_XMLNEWDOCPI,1,[Define if libxml2 has the xmlNewDocPI function])],,$ac_xml_libs) [AC_DEFINE(HAVE_XMLNEWDOCPI,1,[Define if libxml2 has the xmlNewDocPI function])],,$ac_xml_libs)
AC_CHECK_LIB(xml2, xmlSchemaSetValidStructuredErrors, AC_CHECK_LIB(xml2, xmlSchemaSetValidStructuredErrors,
[AC_DEFINE(HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS,1,[Define if libxml2 has the xmlSchemaSetValidStructuredErrors function])],,$ac_xml_libs) [AC_DEFINE(HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS,1,[Define if libxml2 has the xmlSchemaSetValidStructuredErrors function])],,$ac_xml_libs)
AC_CHECK_TYPE([xmlDocProperties],
[AC_DEFINE(HAVE_XMLDOC_PROPERTIES,1,[Define if libxml2 has the xmlDocProperties enum])],,[[#include <libxml/tree.h>]])
]) ])
CPPFLAGS="$ac_save_CPPFLAGS" CPPFLAGS="$ac_save_CPPFLAGS"
fi fi

View File

@ -1105,6 +1105,9 @@
/* Define if you have the XKB extension */ /* Define if you have the XKB extension */
#undef HAVE_XKB #undef HAVE_XKB
/* Define if libxml2 has the xmlDocProperties enum */
#undef HAVE_XMLDOC_PROPERTIES
/* Define if libxml2 has the xmlNewDocPI function */ /* Define if libxml2 has the xmlNewDocPI function */
#undef HAVE_XMLNEWDOCPI #undef HAVE_XMLNEWDOCPI