[前][次][番号順一覧][スレッド一覧]

ruby-changes:28611

From: kosaki <ko1@a...>
Date: Sun, 12 May 2013 17:42:02 +0900 (JST)
Subject: [ruby-changes:28611] kosaki:r40663 (trunk): * configure.in: abort if gettimeofday doesn't exist.

kosaki	2013-05-12 17:41:36 +0900 (Sun, 12 May 2013)

  New Revision: 40663

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40663

  Log:
    * configure.in: abort if gettimeofday doesn't exist.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 40662)
+++ configure.in	(revision 40663)
@@ -1756,7 +1756,7 @@ AC_CHECK_FUNCS(getpriority) https://github.com/ruby/ruby/blob/trunk/configure.in#L1756
 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"; t https://github.com/ruby/ruby/blob/trunk/configure.in#L2174
   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 <sys/stat.h>])
 
 AC_CACHE_CHECK([whether struct dirent.d_name is too small], rb_cv_sizeof_struct_dirent_too_small,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40662)
+++ ChangeLog	(revision 40663)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 12 17:03:27 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: abort if gettimeofday doesn't exist.
+
 Sun May 12 16:31:27 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: adds RUBY_REPLACE_TYPE(off_t) for creating

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]