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

ruby-changes:47820

From: rhe <ko1@a...>
Date: Sun, 17 Sep 2017 13:26:55 +0900 (JST)
Subject: [ruby-changes:47820] rhe:r59938 (trunk): configure.in: don't check for existence of timezone()

rhe	2017-09-17 13:26:48 +0900 (Sun, 17 Sep 2017)

  New Revision: 59938

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59938

  Log:
    configure.in: don't check for existence of timezone()
    
    HAVE_TIMEZONE and TIMEZONE_VOID macros are not used anymore as of r28592
    ("strftime.c: unused declarations removed.", 2010-07-09).

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 59937)
+++ configure.in	(revision 59938)
@@ -2834,18 +2834,6 @@ AS_IF([test "${AS_TR_SH(rb_cv_var_$1)}" https://github.com/ruby/ruby/blob/trunk/configure.in#L2834
 ])])
 RUBY_CHECK_VARTYPE(timezone, [@%:@include <time.h>], [long int])
 RUBY_CHECK_VARTYPE(altzone, [@%:@include <time.h>], [long int])
-AC_CHECK_FUNCS(timezone)
-AS_IF([test "$ac_cv_func_timezone" = yes], [
-  AC_CACHE_CHECK([whether timezone requires zero arguments], rb_cv_func_timezone_void,
-    [AC_TRY_COMPILE([@%:@include <time.h>],
-      [(void)timezone(0, 0);],
-      [rb_cv_func_timezone_void=no],
-      [rb_cv_func_timezone_void=yes])]
-  )
-  AS_IF([test $rb_cv_func_timezone_void = yes], [
-    AC_DEFINE(TIMEZONE_VOID)
-  ])
-])
 
 AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t,
   [AC_TRY_RUN([

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

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