From 3a322bbd98db8384cdc56c2b4813d66201c23e7d Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 22 Jun 2005 13:39:23 -0700 Subject: [PATCH] [svn] Don't check for availability of C prototypes. Don't check for signal.h. Don't check whether both time.h and sys/time.h can be included. --- ChangeLog | 5 +++++ configure.in | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 07758b68..cadb15aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-22 Hrvoje Niksic + + * configure.in: Don't check for signal.h. Remove the + AC_HEADER_TIME check. Remove the test for ANSI C prototypes. + 2005-06-22 Hrvoje Niksic * configure.in: Check for C99 conformant stdbool.h. diff --git a/configure.in b/configure.in index a38a3607..61065ca7 100644 --- a/configure.in +++ b/configure.in @@ -151,27 +151,31 @@ dnl AC_C_CONST AC_C_INLINE AC_C_VOLATILE +dnl Needed for GNU md5 code. AC_C_BIGENDIAN -AC_C_PROTOTYPES dnl dnl Checks for header files that might be missing. dnl dnl Check for basic headers, even those we assume the presence of. -dnl This is because Autoconf default includes check for STDC_HEADERS, -dnl HAVE_SYS_TYPES_H, etc. before including them. +dnl This is because test programs used by Autoconf macros check for +dnl STDC_HEADERS, HAVE_SYS_TYPES_H, etc. before including them. +dnl Without these checks they will fail to be included in test +dnl programs, which will subsequently fail. AC_HEADER_STDC -AC_HEADER_STDBOOL AC_CHECK_HEADERS(sys/types.h sys/stat.h) -dnl Now check for the others. + +dnl Now the real checks: +AC_HEADER_STDBOOL AC_CHECK_HEADERS(string.h strings.h limits.h unistd.h sys/time.h) AC_CHECK_HEADERS(termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h) -AC_CHECK_HEADERS(stdint.h inttypes.h signal.h setjmp.h pwd.h) -AC_HEADER_TIME +AC_CHECK_HEADERS(stdint.h inttypes.h setjmp.h pwd.h) dnl -dnl Check integral type sizes. +dnl Check sizes of signed integer types. These are used to find n-bit +dnl integral types on older systems that fail to provide intN_t and +dnl uintN_t typedefs. dnl AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) @@ -198,9 +202,7 @@ AC_CHECK_TYPES(sig_atomic_t, [], [], [ #if HAVE_INTTYPES_H # include #endif -#ifdef HAVE_SIGNAL_H -# include -#endif +#include ]) dnl @@ -215,7 +217,7 @@ AC_CHECK_FUNCS(usleep ftello sigblock sigsetjmp) AC_CHECK_FUNCS(symlink isatty) dnl -dnl Call Wget's local macros defined in aclocal. +dnl Call Wget-specific macros defined in aclocal. dnl WGET_STRUCT_UTIMBUF WGET_SOCKLEN_T -- 2.39.2