- config.h.in configure.in xmlversion.h.in: added ansidecl.h test
Daniel
diff --git a/ChangeLog b/ChangeLog
index 5390a0f..3e9d943 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Apr 11 14:21:31 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+	* config.h.in configure.in xmlversion.h.in: added ansidecl.h test
+
 Wed Apr 11 13:50:42 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
 
 	* doc/xml.html: added 2.3.6 release
diff --git a/config.h.in b/config.h.in
index e44e54e..66f214c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -76,6 +76,9 @@
 /* Define if you have the vsprintf function.  */
 #undef HAVE_VSPRINTF
 
+/* Define if you have the <ansidecl.h> header file.  */
+#undef HAVE_ANSIDECL_H
+
 /* Define if you have the <arpa/inet.h> header file.  */
 #undef HAVE_ARPA_INET_H
 
diff --git a/configure.in b/configure.in
index e3dd4dc..62a61a9 100644
--- a/configure.in
+++ b/configure.in
@@ -73,7 +73,7 @@
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h)
-AC_CHECK_HEADERS(stdarg.h sys/stat.h sys/types.h time.h)
+AC_CHECK_HEADERS(stdarg.h sys/stat.h sys/types.h time.h ansidecl.h)
 AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h)
 AC_CHECK_HEADERS(stdlib.h sys/socket.h netinet/in.h arpa/inet.h)
 AC_CHECK_HEADERS(netdb.h sys/time.h sys/select.h sys/mman.h)
diff --git a/include/libxml/xmlversion.h.in b/include/libxml/xmlversion.h.in
index 7d1471c..c1dffbb 100644
--- a/include/libxml/xmlversion.h.in
+++ b/include/libxml/xmlversion.h.in
@@ -131,7 +131,9 @@
 #endif
 
 #ifdef __GNUC__
+#ifdef HAVE_ANSIDECL_H
 #include <ansidecl.h>
+#endif
 #ifndef ATTRIBUTE_UNUSED
 #define ATTRIBUTE_UNUSED
 #endif
diff --git a/xmlversion.h.in b/xmlversion.h.in
index 7d1471c..c1dffbb 100644
--- a/xmlversion.h.in
+++ b/xmlversion.h.in
@@ -131,7 +131,9 @@
 #endif
 
 #ifdef __GNUC__
+#ifdef HAVE_ANSIDECL_H
 #include <ansidecl.h>
+#endif
 #ifndef ATTRIBUTE_UNUSED
 #define ATTRIBUTE_UNUSED
 #endif