ruby-changes:30537
From: nobu <ko1@a...>
Date: Mon, 19 Aug 2013 13:03:26 +0900 (JST)
Subject: [ruby-changes:30537] nobu:r42616 (trunk): configure.in: clock_gettime
nobu 2013-08-19 13:03:22 +0900 (Mon, 19 Aug 2013) New Revision: 42616 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42616 Log: configure.in: clock_gettime * configure.in (clock_gettime): should not overwrite cache variable with different condtion. otherwise -lrt is not linked and the link fails, after reconfig. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 42615) +++ configure.in (revision 42616) @@ -1860,8 +1860,9 @@ if test x"$ac_cv_func_clock_gettime" != https://github.com/ruby/ruby/blob/trunk/configure.in#L1860 # glibc 2.17 moves clock_* functions from librt to the main C library. # http://sourceware.org/ml/libc-announce/2012/msg00001.html AC_CHECK_LIB(rt, clock_gettime) - unset ac_cv_func_clock_gettime - AC_CHECK_FUNCS(clock_gettime) + if test x"$ac_cv_lib_rt_clock_gettime" = xyes; then + AC_DEFINE(HAVE_CLOCK_GETTIME, 1) + fi fi AC_CACHE_CHECK(for unsetenv returns a value, rb_cv_unsetenv_return_value, Index: ChangeLog =================================================================== --- ChangeLog (revision 42615) +++ ChangeLog (revision 42616) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Aug 19 13:03:08 2013 Nobuyoshi Nakada <nobu@r...> + + * configure.in (clock_gettime): should not overwrite cache variable + with different condtion. otherwise -lrt is not linked and the link + fails, after reconfig. + Mon Aug 19 12:56:49 2013 Tanaka Akira <akr@f...> * process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/