Adam Martinson : configure: Add a check for xmlDocProperties.

Alexandre Julliard julliard at winehq.org
Wed Nov 3 11:37:06 CDT 2010


Module: wine
Branch: master
Commit: 9408b4973df91ceb01be5f783a9d1d21bb41efe1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9408b4973df91ceb01be5f783a9d1d21bb41efe1

Author: Adam Martinson <amartinson at codeweavers.com>
Date:   Tue Nov  2 17:20:08 2010 -0500

configure: Add a check for xmlDocProperties.

---

 configure           |    8 ++++++++
 configure.ac        |    2 ++
 include/config.h.in |    3 +++
 3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 20fff98..4d89bd8 100755
--- a/configure
+++ b/configure
@@ -9244,6 +9244,14 @@ $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
 
diff --git a/configure.ac b/configure.ac
index f38aca4..f0ebc03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1121,6 +1121,8 @@ then
                 [AC_DEFINE(HAVE_XMLNEWDOCPI,1,[Define if libxml2 has the xmlNewDocPI function])],,$ac_xml_libs)
              AC_CHECK_LIB(xml2, xmlSchemaSetValidStructuredErrors,
                 [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"
 fi
diff --git a/include/config.h.in b/include/config.h.in
index 1c82e75..46adad8 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -1105,6 +1105,9 @@
 /* Define if you have the XKB extension */
 #undef HAVE_XKB
 
+/* Define if libxml2 has the xmlDocProperties enum */
+#undef HAVE_XMLDOC_PROPERTIES
+
 /* Define if libxml2 has the xmlNewDocPI function */
 #undef HAVE_XMLNEWDOCPI
 




More information about the wine-cvs mailing list