From 59a3943a6786a9357ea8221f197ca839247cf42f Mon Sep 17 00:00:00 2001 From: kosaki Date: Sun, 12 May 2013 08:41:36 +0000 Subject: [PATCH] * configure.in: abort if gettimeofday doesn't exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ configure.in | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37d247fe3f..73b4a019c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 12 17:03:27 2013 KOSAKI Motohiro + + * configure.in: abort if gettimeofday doesn't exist. + Sun May 12 16:31:27 2013 KOSAKI Motohiro * configure.in: adds RUBY_REPLACE_TYPE(off_t) for creating diff --git a/configure.in b/configure.in index 6cbc0f8046..69d8aa33d9 100644 --- a/configure.in +++ b/configure.in @@ -1756,7 +1756,7 @@ AC_CHECK_FUNCS(getpriority) AC_CHECK_FUNCS(getpwnam_r) AC_CHECK_FUNCS(getrlimit) AC_CHECK_FUNCS(getsid) -AC_CHECK_FUNCS(gettimeofday) +AC_CHECK_FUNCS(gettimeofday) # for making ac_cv_func_gettimeofday AC_CHECK_FUNCS(gmtime_r) AC_CHECK_FUNCS(initgroups) AC_CHECK_FUNCS(ioctl) @@ -2174,6 +2174,10 @@ if test "$rb_cv_frptr" != "not found"; then fi fi +if test x"$ac_cv_func_gettimeofday" != xyes; then + AC_MSG_ERROR(gettimeofday() must exist) +fi + RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include ]) AC_CACHE_CHECK([whether struct dirent.d_name is too small], rb_cv_sizeof_struct_dirent_too_small,