aboutsummaryrefslogtreecommitdiff
path: root/m4/curl-functions.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-28 10:27:04 +0000
committerYang Tse <yangsita@gmail.com>2009-04-28 10:27:04 +0000
commite323abe5d9a686ac3df5b7d04e5e64e271e0a3b2 (patch)
treed1a2d8137e05ce5c95c635f2cacf6c1751a54323 /m4/curl-functions.m4
parentafc00b08d7b7c80caf4eef76a0f7261c52f4c8dd (diff)
Moved CURL_INCLUDES_INTTYPES to curl-functions.m4 along with other CURL_INCLUDES_*
Diffstat (limited to 'm4/curl-functions.m4')
-rw-r--r--m4/curl-functions.m426
1 files changed, 25 insertions, 1 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index a9a16a981..352373000 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 46
+# serial 47
dnl CURL_INCLUDES_ARPA_INET
@@ -103,6 +103,30 @@ curl_includes_ifaddrs="\
])
+dnl CURL_INCLUDES_INTTYPES
+dnl -------------------------------------------------
+dnl Set up variable with list of headers that must be
+dnl included when inttypes.h is to be included.
+
+AC_DEFUN([CURL_INCLUDES_INTTYPES], [
+curl_includes_inttypes="\
+/* includes start */
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+/* includes end */"
+ AC_CHECK_HEADERS(
+ sys/types.h stdint.h inttypes.h,
+ [], [], [$curl_includes_inttypes])
+])
+
+
dnl CURL_INCLUDES_NETDB
dnl -------------------------------------------------
dnl Set up variable with list of headers that must be