From f0cb2c2e49b4353a998d6fdf823972d2516c5dcf Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 6 Jul 2007 11:15:39 +0200 Subject: [PATCH] configure.ac: extend checks for header, functions, etc. One should really run autoscan from time to time... --- NEWS | 4 +++- configure.ac | 21 ++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index fabcc639..757e1fe2 100644 --- a/NEWS +++ b/NEWS @@ -11,7 +11,9 @@ the 0.2.x series if no serious bugs show up after the release. - be more carful wrt. signed vs. unsigned argument passing. - cleanup error.h and fix some references to invalid error codes. - - update to gengetopt-2.20 + - update to gengetopt-2.20. + - autoconf: extend checks for headers, library functions and + compiler characteristics. -------------------------------------- 0.2.16 (2007-04-05) "neural discharge" diff --git a/configure.ac b/configure.ac index 316f95c7..279022df 100644 --- a/configure.ac +++ b/configure.ac @@ -21,11 +21,13 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL + AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h \ - string.h sys/socket.h sys/time.h sys/timeb.h sys/un.h sys/ipc.h unistd.h utime.h], \ +AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h limits.h netdb.h netinet/in.h \ + stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h sys/un.h \ + sys/ipc.h unistd.h utime.h stddef.h], [], [AC_MSG_ERROR([$ac_header not found])]) AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"], @@ -33,11 +35,19 @@ AC_CHECK_HEADER(linux/soundcard.h, [extras="$extras para_fade"], # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST +AC_C_INLINE AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM +AC_TYPE_INT16_T +AC_TYPE_MODE_T +AC_TYPE_SSIZE_T +AC_TYPE_UID_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_FORK @@ -52,8 +62,13 @@ AC_TYPE_SIGNAL AC_FUNC_STAT AC_FUNC_STRFTIME AC_FUNC_VPRINTF +AC_FUNC_CLOSEDIR_VOID +AC_FUNC_LSTAT + AC_CHECK_FUNCS([atexit dup2 gethostbyname inet_ntoa memchr memmove memset \ - regcomp select socket strchr strdup strerror strstr strtol uname], [], + regcomp select socket strchr strdup strerror strstr strtol uname \ + fchdir gettimeofday localtime_r munmap strcasecmp strcspn \ + strncasecmp strrchr strspn], [], [AC_MSG_ERROR([function not found, cannot live without it])]) ########################################################################### curses AC_CHECK_LIB([ncurses], [initscr], [], -- 2.39.5