Mercurial > emacs
comparison configure @ 80765:81a5535bfe2d
Regenerate with autoconf 2.61-7 (bug#790)
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 27 Aug 2008 18:49:12 +0000 |
parents | abf87febdee3 |
children |
comparison
equal
deleted
inserted
replaced
80764:8c1de2106017 | 80765:81a5535bfe2d |
---|---|
16005 # else | 16005 # else |
16006 # include <time.h> | 16006 # include <time.h> |
16007 # endif | 16007 # endif |
16008 #endif | 16008 #endif |
16009 | 16009 |
16010 #include <limits.h> | |
16010 #include <stdlib.h> | 16011 #include <stdlib.h> |
16011 | 16012 |
16012 #ifdef HAVE_UNISTD_H | 16013 #ifdef HAVE_UNISTD_H |
16013 # include <unistd.h> | 16014 # include <unistd.h> |
16014 #endif | 16015 #endif |
16153 /* This test makes some buggy mktime implementations loop. | 16154 /* This test makes some buggy mktime implementations loop. |
16154 Give up after 60 seconds; a mktime slower than that | 16155 Give up after 60 seconds; a mktime slower than that |
16155 isn't worth using anyway. */ | 16156 isn't worth using anyway. */ |
16156 alarm (60); | 16157 alarm (60); |
16157 | 16158 |
16158 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | 16159 for (;;) |
16159 continue; | 16160 { |
16160 time_t_max--; | 16161 t = (time_t_max << 1) + 1; |
16161 if ((time_t) -1 < 0) | 16162 if (t <= time_t_max) |
16162 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | 16163 break; |
16163 continue; | 16164 time_t_max = t; |
16165 } | |
16166 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
16167 | |
16164 delta = time_t_max / 997; /* a suitable prime number */ | 16168 delta = time_t_max / 997; /* a suitable prime number */ |
16165 for (i = 0; i < N_STRINGS; i++) | 16169 for (i = 0; i < N_STRINGS; i++) |
16166 { | 16170 { |
16167 if (tz_strings[i]) | 16171 if (tz_strings[i]) |
16168 putenv (tz_strings[i]); | 16172 putenv (tz_strings[i]); |
16173 if (! (mktime_test ((time_t) 1) | 16177 if (! (mktime_test ((time_t) 1) |
16174 && mktime_test ((time_t) (60 * 60)) | 16178 && mktime_test ((time_t) (60 * 60)) |
16175 && mktime_test ((time_t) (60 * 60 * 24)))) | 16179 && mktime_test ((time_t) (60 * 60 * 24)))) |
16176 return 1; | 16180 return 1; |
16177 | 16181 |
16178 for (j = 1; 0 < j; j *= 2) | 16182 for (j = 1; ; j <<= 1) |
16179 if (! bigtime_test (j)) | 16183 if (! bigtime_test (j)) |
16180 return 1; | 16184 return 1; |
16181 if (! bigtime_test (j - 1)) | 16185 else if (INT_MAX / 2 < j) |
16186 break; | |
16187 if (! bigtime_test (INT_MAX)) | |
16182 return 1; | 16188 return 1; |
16183 } | 16189 } |
16184 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | 16190 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
16185 } | 16191 } |
16186 _ACEOF | 16192 _ACEOF |