dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.8.1-alpha2)
+AC_INIT(collectd, 3.8.1-alpha3)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
+AC_CHECK_HEADERS(stdint.h)
AC_CHECK_HEADERS(errno.h)
AC_CHECK_HEADERS(syslog.h)
AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(sys/param.h)
# For ping library
-AC_CHECK_HEADERS(netinet/in_systm.h)
+AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+])
AC_CHECK_HEADERS(netinet/in.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
])
AC_CHECK_HEADERS(netinet/ip.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#if HAVE_NETINET_IN_H
#endif
])
AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#if HAVE_NETINET_IN_H
#endif
])
AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#if HAVE_NETINET_IN_H
#endif
])
AC_CHECK_HEADERS(netinet/ip6.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#if HAVE_NETINET_IN_H
#endif
])
AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
-[#if HAVE_NETINET_IN_SYSTM_H
+[#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
#if HAVE_NETINET_IN_H