AC_CONFIG_HEADERS([config.h])
+AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stddef.h sys/socket.h])
+
AC_SYS_LARGEFILE
# Checks for programs.
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
+AC_TYPE_INT16_T
+AC_TYPE_INT32_T
+AC_TYPE_INT64_T
+AC_TYPE_INT8_T
+AC_TYPE_OFF_T
+AC_TYPE_SSIZE_T
+AC_TYPE_UINT16_T
+AC_TYPE_UINT32_T
+AC_TYPE_UINT64_T
+AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([ \
- bzero gettimeofday munmap strtoul ftruncate gethostbyname \
+ gettimeofday munmap strtoul ftruncate gethostbyname \
localtime_r memset mkdir rmdir setenv socket \
strchr strdup strerror strndup strrchr strtoull tzset \
])
AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
+# Check what libraries are required on this platform to link sockets programs.
+AX_LIB_SOCKET_NSL
+
# Check for libuuid
AC_CHECK_LIB([uuid], [uuid_generate],
[