diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-17 04:26:51 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-17 04:26:51 +0000 |
commit | e2cb0eded4813acb980b355321c2e56e82755f4c (patch) | |
tree | 32ccac9851e7dd51a86ffaf374a2734154070cb6 /configure.in | |
parent | 06af07dd7b6af4e98f70074cb003eca965c17e37 (diff) |
ext/date/extconf.rb: check for timezone and altzone
Instead of in configure.in. As of r28592 the HAVE_VAR_TIMEZONE and
HAVE_VAR_ALTZONE macros are only used by ext/date. ext/date doesn't care
whether they are int or long, so just check for the existence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/configure.in b/configure.in index b16fe7dfcc..a9cdc01108 100644 --- a/configure.in +++ b/configure.in @@ -2805,35 +2805,6 @@ AC_CACHE_CHECK(for external int daylight, rb_cv_have_daylight, AS_IF([test "$rb_cv_have_daylight" = yes], [ AC_DEFINE(HAVE_DAYLIGHT) ]) -AC_DEFUN([RUBY_CHECK_VARTYPE], [dnl -AC_CACHE_CHECK([for external $1], AS_TR_SH(rb_cv_var_$1), - [AS_TR_SH(rb_cv_var_$1)=no - AC_TRY_COMPILE([ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 1 -#endif -$2 -; -const volatile void *volatile t;], - [t = &(&$1)[0];], - [for t in $3; do - AC_TRY_COMPILE([ -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 1 -#endif -$2 -; -extern $t $1; -const volatile void *volatile t;], - [t = &(&$1)[0];], - [AS_TR_SH(rb_cv_var_$1)=$t; break]) - done])]) -AS_IF([test "${AS_TR_SH(rb_cv_var_$1)}" != no], [ - AC_DEFINE(AS_TR_CPP(HAVE_VAR_$1)) - AC_DEFINE_UNQUOTED(AS_TR_CPP(TYPEOF_VAR_$1), ${AS_TR_SH(rb_cv_var_$1)}) -])]) -RUBY_CHECK_VARTYPE(timezone, [@%:@include <time.h>], [long int]) -RUBY_CHECK_VARTYPE(altzone, [@%:@include <time.h>], [long int]) AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t, [AC_TRY_RUN([ |