diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/configure.in b/configure.in index e4ebc705c9..294eaa8733 100644 --- a/configure.in +++ b/configure.in @@ -1416,7 +1416,6 @@ AC_CHECK_HEADERS(sys/times.h) AC_CHECK_HEADERS(sys/uio.h) AC_CHECK_HEADERS(sys/utime.h) AC_CHECK_HEADERS(syscall.h) -AC_CHECK_HEADERS(time.h) AC_CHECK_HEADERS(ucontext.h) AC_CHECK_HEADERS(utime.h) @@ -2039,18 +2038,14 @@ AC_CHECK_MEMBERS([struct stat.st_ctimespec]) AC_CHECK_MEMBERS([struct stat.st_ctimensec]) AC_CHECK_MEMBERS([struct stat.st_birthtimespec]) -AC_CHECK_TYPES([struct timeval], [], [], [@%:@ifdef HAVE_TIME_H -@%:@include <time.h> -@%:@endif +AC_CHECK_TYPES([struct timeval], [], [], [@%:@include <time.h> @%:@ifdef HAVE_SYS_TIME_H @%:@include <sys/time.h> @%:@endif]) AS_IF([test "${ac_cv_type_struct_timeval}" = yes], [ RUBY_CHECK_SIZEOF([struct timeval.tv_sec], [time_t long "long long"], [], - [@%:@ifdef HAVE_TIME_H -@%:@include <time.h> -@%:@endif + [@%:@include <time.h> @%:@ifdef HAVE_SYS_TIME_H @%:@include <sys/time.h> @%:@endif]) @@ -2064,23 +2059,17 @@ AS_IF([test "${ac_cv_type_struct_timeval}" = yes], [ ]) ]) -AC_CHECK_TYPES([struct timespec], [], [], [@%:@ifdef HAVE_TIME_H -@%:@include <time.h> -@%:@endif +AC_CHECK_TYPES([struct timespec], [], [], [@%:@include <time.h> @%:@ifdef HAVE_SYS_TIME_H @%:@include <sys/time.h> @%:@endif]) -AC_CHECK_TYPES([struct timezone], [], [], [@%:@ifdef HAVE_TIME_H -@%:@ include <time.h> -@%:@endif +AC_CHECK_TYPES([struct timezone], [], [], [@%:@ include <time.h> @%:@ifdef HAVE_SYS_TIME_H @%:@ include <sys/time.h> @%:@endif]) -AC_CHECK_TYPES([clockid_t], [], [], [@%:@ifdef HAVE_TIME_H -@%:@ include <time.h> -@%:@endif +AC_CHECK_TYPES([clockid_t], [], [], [@%:@ include <time.h> @%:@ifdef HAVE_SYS_TIME_H @%:@ include <sys/time.h> @%:@endif]) |