Autoscan complains about a number of missing function, header and type checks. Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx> --- configure.ac | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6ee29ce321d0..07c45cfb7b27 100644 --- a/configure.ac +++ b/configure.ac @@ -22,17 +22,58 @@ AC_SUBST([libdl_LIBS]) dnl Checks for header files. AC_HEADER_DIRENT -AC_CHECK_HEADERS([fcntl.h unistd.h]) +AC_CHECK_HEADER_STDBOOL +AC_CHECK_HEADERS([arpa/inet.h \ + fcntl.h \ + inttypes.h \ + netdb.h \ + netinet/in.h \ + stdint.h \ + sys/param.h \ + sys/socket.h \ + sys/time.h \ + syslog.h \ + unistd.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -AC_TYPE_SIZE_T +AC_C_INLINE AC_STRUCT_TM AC_SYS_LARGEFILE +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T +AC_TYPE_UID_T +AC_TYPE_UINT8_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T dnl Checks for library functions. +AC_FUNC_CHOWN +AC_FUNC_MALLOC +AC_FUNC_REALLOC AC_FUNC_VPRINTF -AC_CHECK_FUNCS([socket strerror]) +AC_CHECK_FUNCS([alarm \ + ftruncate \ + gethostname \ + gettimeofday \ + localtime_r \ + memmove \ + memset \ + select \ + socket \ + strcasecmp \ + strchr \ + strdup \ + strerror \ + strncasecmp \ + strndup \ + strtoul]) AC_SEARCH_LIBS([pthread_create], [pthread], [libpthread_LIBS="$LIBS"; LIBS=""]) AC_SUBST([libpthread_LIBS]) -- 2.35.1