Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configure:34676: checking for working mktime
- configure:34883: gcc -std=gnu11 -o conftest.exe -g -O2 -I/c/gcdev64/msys2/mingw32/include -I/usr/include -I/c/gcdev64/gnucash/master/inst/include -L/c/gcdev64/gnucash/master/inst/lib -L/c/gcdev64/msys2/mingw32/lib -L/usr/lib conftest.c >&5
- configure:34883: $? = 0
- configure:34883: ./conftest.exe
- configure:34883: $? = 3
- configure: program exited with status 3
- configure: failed program was:
- | /* confdefs.h */
- | #define PACKAGE_NAME "GNU Guile"
- | #define PACKAGE_TARNAME "guile"
- | #define PACKAGE_VERSION "2.2.7.4-9d7759"
- | #define PACKAGE_STRING "GNU Guile 2.2.7.4-9d7759"
- | #define PACKAGE_BUGREPORT "bug-guile@gnu.org"
- | #define PACKAGE_URL "http://www.gnu.org/software/guile/"
- | #define STDC_HEADERS 1
- | #define HAVE_SYS_TYPES_H 1
- | #define HAVE_SYS_STAT_H 1
- | #define HAVE_STDLIB_H 1
- | #define HAVE_STRING_H 1
- | #define HAVE_MEMORY_H 1
- | #define HAVE_STRINGS_H 1
- | #define HAVE_INTTYPES_H 1
- | #define HAVE_STDINT_H 1
- | #define HAVE_UNISTD_H 1
- | #define __EXTENSIONS__ 1
- | #define _ALL_SOURCE 1
- | #define _DARWIN_C_SOURCE 1
- | #define _GNU_SOURCE 1
- | #define _POSIX_PTHREAD_SEMANTICS 1
- | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
- | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
- | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
- | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
- | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
- | #define __STDC_WANT_LIB_EXT2__ 1
- | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
- | #define _TANDEM_SOURCE 1
- | #define _FILE_OFFSET_BITS 64
- | #define _DARWIN_USE_64_BIT_INODE 1
- | #define HAVE_SYS_PARAM_H 1
- | #define HAVE_DIRENT_H 1
- | #define HAVE_UNISTD_H 1
- | #define HAVE_SYS_STAT_H 1
- | #define HAVE_SYS_TIME_H 1
- | #define HAVE_ICONV_H 1
- | #define HAVE_LIMITS_H 1
- | #define HAVE_MATH_H 1
- | #define HAVE_MALLOC_H 1
- | #define HAVE_WCHAR_H 1
- | #define HAVE_STDINT_H 1
- | #define HAVE_SYS_FILE_H 1
- | #define HAVE_WCTYPE_H 1
- | #define HAVE_WS2TCPIP_H 1
- | #define HAVE_STRUCT_SOCKADDR_STORAGE 1
- | #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_GETCWD 1
- | #define HAVE__SET_INVALID_PARAMETER_HANDLER 1
- | #define HAVE_GETLOGIN 1
- | #define HAVE_GETTIMEOFDAY 1
- | #define HAVE_ISBLANK 1
- | #define HAVE_ISWCTYPE 1
- | #define HAVE_TZSET 1
- | #define HAVE_SNPRINTF 1
- | #define HAVE_BTOWC 1
- | #define HAVE_MBSINIT 1
- | #define HAVE_MBRTOWC 1
- | #define HAVE_MPROTECT 1
- | #define HAVE_STRDUP 1
- | #define HAVE_WCRTOMB 1
- | #define HAVE_ISWCNTRL 1
- | #define HAVE_ALLOCA 1
- | #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
- | #define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1
- | #define HAVE_WCHAR_T 1
- | #define HAVE_RAW_DECL_SETLOCALE 1
- | #define HAVE_ENVIRON_DECL 1
- | #define HAVE_WORKING_O_NOATIME 0
- | #define HAVE_WORKING_O_NOFOLLOW 0
- | #define HAVE_DECL_ALARM 0
- | #define HAVE_FREXP 1
- | #define _GL_WINDOWS_64_BIT_ST_SIZE 1
- | #define nlink_t int
- | #define HAVE_RAW_DECL_FSTAT 1
- | #define HAVE_RAW_DECL_STAT 1
- | #define restrict __restrict
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_DECL_INET_NTOP 1
- | #define HAVE_IPV4 1
- | #define HAVE_IPV6 1
- | #define HAVE_DECL_GETLOGIN 0
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_RAW_DECL_GETTIMEOFDAY 1
- | #define HAVE_ICONV 1
- | #define ICONV_CONST
- | #define FLT_EXPBIT0_WORD 0
- | #define FLT_EXPBIT0_BIT 23
- | #define DBL_EXPBIT0_WORD 1
- | #define DBL_EXPBIT0_BIT 20
- | #define HAVE_LIBUNISTRING 1
- | #define HAVE_DECL_GETC_UNLOCKED 0
- | #define HAVE_DECL_ROUND 1
- | #define HAVE_STDLIB_H 1
- | #define MALLOC_0_IS_NONNULL 1
- | #define HAVE_UNSIGNED_LONG_LONG_INT 1
- | #define HAVE_LONG_LONG_INT 1
- | #define PROMOTED_MODE_T int
- | #define HAVE_WINSOCK2_H 1
- | #define WINDOWS_SOCKETS 1
- | #define HAVE_MBSTATE_T 1
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_DECL_SETENV 0
- | #define HAVE_SEARCH_H 1
- | #define HAVE_TSEARCH 1
- | #define uid_t int
- | #define gid_t int
- | #define HAVE__BOOL 1
- | #define HAVE_WINT_T 1
- | #define HAVE_DECL_TZNAME 1
- | #define HAVE_TZNAME 1
- | #define HAVE_RAW_DECL_MEMPCPY 1
- | #define HAVE_RAW_DECL_STRDUP 1
- | #define HAVE_RAW_DECL_STRNCAT 1
- | #define HAVE_RAW_DECL_STRNLEN 1
- | #define HAVE_RAW_DECL_STRPBRK 1
- | #define HAVE_RAW_DECL_STRTOK_R 1
- | #define HAVE_DECL_VSNPRINTF 1
- | #define TIME_T_IS_SIGNED 1
- | #define HAVE_DECL_SNPRINTF 1
- | #define HAVE_DECL_STRDUP 1
- | #define HAVE_DECL_UNSETENV 0
- | #define HAVE_INTTYPES_H_WITH_UINTMAX 1
- | #define HAVE_STDINT_H_WITH_UINTMAX 1
- | #define HAVE_INTMAX_T 1
- | #define HAVE_SNPRINTF 1
- | #define HAVE_STRNLEN 1
- | #define HAVE_WCSLEN 1
- | #define HAVE_WCSNLEN 1
- | #define HAVE_MBRTOWC 1
- | #define HAVE_WCRTOMB 1
- | #define HAVE_DECL__SNPRINTF 1
- | #define HAVE_SNPRINTF_RETVAL_C99 1
- | #define GNULIB_TEST_ACCEPT 1
- | #define GNULIB_TEST_ACCEPT4 1
- | #define GNULIB_TEST_BIND 1
- | #define GNULIB_CANONICALIZE_LGPL 1
- | #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
- | #define GNULIB_TEST_REALPATH 1
- | #define GNULIB_TEST_CEIL 1
- | #define HAVE_CLOCK_GETTIME 1
- | #define HAVE_CLOCK_SETTIME 1
- | #define HAVE_WINSOCK2_H 1
- | #define GNULIB_TEST_CLOSE 1
- | #define GNULIB_TEST_CONNECT 1
- | #define GNULIB_TEST_COPYSIGN 1
- | #define HAVE_RAW_DECL_CLOSEDIR 1
- | #define HAVE_RAW_DECL_OPENDIR 1
- | #define HAVE_RAW_DECL_READDIR 1
- | #define HAVE_RAW_DECL_REWINDDIR 1
- | #define HAVE_DECL_DIRFD 0
- | #define GNULIB_TEST_DIRFD 1
- | #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
- | #define GNULIB_TEST_DUPLOCALE 1
- | #define GNULIB_TEST_ENVIRON 1
- | #define GNULIB_TEST_FLOOR 1
- | #define GNULIB_TEST_FREXP 1
- | #define GNULIB_TEST_FSTAT 1
- | #define GNULIB_TEST_FSYNC 1
- | #define HAVE_DECL_GAI_STRERROR 1
- | #define HAVE_DECL_GAI_STRERRORA 1
- | #define HAVE_DECL_GETADDRINFO 1
- | #define HAVE_DECL_FREEADDRINFO 1
- | #define HAVE_DECL_GETNAMEINFO 1
- | #define HAVE_STRUCT_ADDRINFO 1
- | #define GNULIB_TEST_GETADDRINFO 1
- | #define GNULIB_TEST_GETLOGIN 1
- | #define GNULIB_TEST_GETPEERNAME 1
- | #define GNULIB_TEST_GETSOCKNAME 1
- | #define GNULIB_TEST_GETSOCKOPT 1
- | #define GETTIMEOFDAY_TIMEZONE void
- | #define GNULIB_TEST_GETTIMEOFDAY 1
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_DECL_INET_NTOP 1
- | #define HAVE_WINSOCK2_H 1
- | #define HAVE_DECL_INET_PTON 1
- | #define HAVE_DECL_ISFINITE 1
- | #define GNULIB_TEST_ISFINITE 1
- | #define HAVE_DECL_ISINF 1
- | #define GNULIB_TEST_ISINF 1
- | #define GNULIB_TEST_ISNAN 1
- | #define GNULIB_TEST_ISNAND 1
- | #define GNULIB_TEST_ISNANF 1
- | #define GNULIB_TEST_ISNANL 1
- | #define HAVE_VISIBILITY 1
- | #define GNULIB_TEST_LINK 1
- | #define GNULIB_TEST_LISTEN 1
- | #define HAVE_RAW_DECL_SETLOCALE 1
- | #define HAVE_LOG1P 1
- | #define GNULIB_TEST_LOG1P 1
- | #define GNULIB_TEST_LSTAT 1
- | #define HAVE_STDLIB_H 1
- | #define HAVE_MALLOC_GNU 1
- | #define GNULIB_MALLOC_GNU 1
- | #define GNULIB_TEST_MALLOC_POSIX 1
- | #define HAVE_RAW_DECL_ACOSF 1
- | #define HAVE_RAW_DECL_ACOSL 1
- | #define HAVE_RAW_DECL_ASINF 1
- | #define HAVE_RAW_DECL_ASINL 1
- | #define HAVE_RAW_DECL_ATANF 1
- | #define HAVE_RAW_DECL_ATANL 1
- | #define HAVE_RAW_DECL_CBRT 1
- | #define HAVE_RAW_DECL_CBRTF 1
- | #define HAVE_RAW_DECL_CBRTL 1
- | #define HAVE_RAW_DECL_CEILF 1
- | #define HAVE_RAW_DECL_CEILL 1
- | #define HAVE_RAW_DECL_COPYSIGN 1
- | #define HAVE_RAW_DECL_COPYSIGNF 1
- | #define HAVE_RAW_DECL_COPYSIGNL 1
- | #define HAVE_RAW_DECL_COSF 1
- | #define HAVE_RAW_DECL_COSL 1
- | #define HAVE_RAW_DECL_COSHF 1
- | #define HAVE_RAW_DECL_EXPF 1
- | #define HAVE_RAW_DECL_EXPL 1
- | #define HAVE_RAW_DECL_EXP2 1
- | #define HAVE_RAW_DECL_EXP2F 1
- | #define HAVE_RAW_DECL_EXP2L 1
- | #define HAVE_RAW_DECL_EXPM1 1
- | #define HAVE_RAW_DECL_EXPM1F 1
- | #define HAVE_RAW_DECL_EXPM1L 1
- | #define HAVE_RAW_DECL_FABSF 1
- | #define HAVE_RAW_DECL_FABSL 1
- | #define HAVE_RAW_DECL_FLOORF 1
- | #define HAVE_RAW_DECL_FLOORL 1
- | #define HAVE_RAW_DECL_FMA 1
- | #define HAVE_RAW_DECL_FMAF 1
- | #define HAVE_RAW_DECL_FMAL 1
- | #define HAVE_RAW_DECL_FMOD 1
- | #define HAVE_RAW_DECL_FMODF 1
- | #define HAVE_RAW_DECL_FMODL 1
- | #define HAVE_RAW_DECL_FREXPF 1
- | #define HAVE_RAW_DECL_FREXPL 1
- | #define HAVE_RAW_DECL_HYPOTF 1
- | #define HAVE_RAW_DECL_HYPOTL 1
- | #define HAVE_RAW_DECL_ILOGB 1
- | #define HAVE_RAW_DECL_ILOGBF 1
- | #define HAVE_RAW_DECL_ILOGBL 1
- | #define HAVE_RAW_DECL_LDEXPF 1
- | #define HAVE_RAW_DECL_LDEXPL 1
- | #define HAVE_RAW_DECL_LOG 1
- | #define HAVE_RAW_DECL_LOGF 1
- | #define HAVE_RAW_DECL_LOGL 1
- | #define HAVE_RAW_DECL_LOG10 1
- | #define HAVE_RAW_DECL_LOG10F 1
- | #define HAVE_RAW_DECL_LOG10L 1
- | #define HAVE_RAW_DECL_LOG1P 1
- | #define HAVE_RAW_DECL_LOG1PF 1
- | #define HAVE_RAW_DECL_LOG1PL 1
- | #define HAVE_RAW_DECL_LOG2 1
- | #define HAVE_RAW_DECL_LOG2F 1
- | #define HAVE_RAW_DECL_LOG2L 1
- | #define HAVE_RAW_DECL_LOGB 1
- | #define HAVE_RAW_DECL_LOGBF 1
- | #define HAVE_RAW_DECL_LOGBL 1
- | #define HAVE_RAW_DECL_MODF 1
- | #define HAVE_RAW_DECL_MODFF 1
- | #define HAVE_RAW_DECL_MODFL 1
- | #define HAVE_RAW_DECL_POWF 1
- | #define HAVE_RAW_DECL_REMAINDER 1
- | #define HAVE_RAW_DECL_REMAINDERF 1
- | #define HAVE_RAW_DECL_REMAINDERL 1
- | #define HAVE_RAW_DECL_RINT 1
- | #define HAVE_RAW_DECL_RINTF 1
- | #define HAVE_RAW_DECL_RINTL 1
- | #define HAVE_RAW_DECL_ROUND 1
- | #define HAVE_RAW_DECL_ROUNDF 1
- | #define HAVE_RAW_DECL_ROUNDL 1
- | #define HAVE_RAW_DECL_SINF 1
- | #define HAVE_RAW_DECL_SINL 1
- | #define HAVE_RAW_DECL_SINHF 1
- | #define HAVE_RAW_DECL_SQRTF 1
- | #define HAVE_RAW_DECL_SQRTL 1
- | #define HAVE_RAW_DECL_TANF 1
- | #define HAVE_RAW_DECL_TANL 1
- | #define HAVE_RAW_DECL_TANHF 1
- | #define HAVE_RAW_DECL_TRUNC 1
- | #define HAVE_RAW_DECL_TRUNCF 1
- | #define HAVE_RAW_DECL_TRUNCL 1
- | #define FUNC_MKDIR_DOT_BUG 1
- | #define GNULIB_MKOSTEMP 1
- | #define GNULIB_TEST_MKOSTEMP 1
- | #define GNULIB_TEST_NL_LANGINFO 1
- | #define HAVE_SYS_PARAM_H 1
- | #define GNULIB_TEST_OPEN 1
- | #define GNULIB_TEST_PIPE 1
- | #define GNULIB_TEST_PIPE2 1
- | #define GNULIB_TEST_POLL 1
- | #define HAVE_DECL__PUTENV 1
- | #define GNULIB_TEST_PUTENV 1
- | #define GNULIB_TEST_READ 1
- | #define GNULIB_TEST_READLINK 1
- | #define GNULIB_TEST_RECV 1
- | #define GNULIB_TEST_RECVFROM 1
- | #define _REGEX_INCLUDE_LIMITS_H 1
- | #define _REGEX_LARGE_OFFSETS 1
- | #define re_syntax_options rpl_re_syntax_options
- | #define re_set_syntax rpl_re_set_syntax
- | #define re_compile_pattern rpl_re_compile_pattern
- | #define re_compile_fastmap rpl_re_compile_fastmap
- | #define re_search rpl_re_search
- | #define re_search_2 rpl_re_search_2
- | #define re_match rpl_re_match
- | #define re_match_2 rpl_re_match_2
- | #define re_set_registers rpl_re_set_registers
- | #define re_comp rpl_re_comp
- | #define re_exec rpl_re_exec
- | #define regcomp rpl_regcomp
- | #define regexec rpl_regexec
- | #define regerror rpl_regerror
- | #define regfree rpl_regfree
- | #define HAVE_LIBINTL_H 1
- | #define HAVE_DECL_ISBLANK 1
- | #define RENAME_TRAILING_SLASH_DEST_BUG 1
- | #define RENAME_DEST_EXISTS_BUG 1
- | #define GNULIB_TEST_RENAME 1
- | #define GNULIB_TEST_RMDIR 1
- | #define GNULIB_TEST_SELECT 1
- | #define GNULIB_TEST_SEND 1
- | #define GNULIB_TEST_SENDTO 1
- | #define GNULIB_TEST_SETENV 1
- | #define GNULIB_TEST_SETSOCKOPT 1
- | #define GNULIB_TEST_SHUTDOWN 1
- | #define GNULIB_TEST_SOCKET 1
- | #define __USE_MINGW_ANSI_STDIO 1
- | #define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1
- | #define GNULIB_FSCANF 1
- | #define GNULIB_SCANF 1
- | #define HAVE_RAW_DECL_FSEEKO 1
- | #define HAVE_RAW_DECL_FTELLO 1
- | #define HAVE_RAW_DECL_GETS 1
- | #define HAVE_RAW_DECL_SNPRINTF 1
- | #define HAVE_RAW_DECL_TMPFILE 1
- | #define HAVE_RAW_DECL_VSNPRINTF 1
- | #define HAVE_RAW_DECL__EXIT 1
- | #define HAVE_RAW_DECL_ATOLL 1
- | #define HAVE_RAW_DECL_MKSTEMP 1
- | #define HAVE_RAW_DECL_STRTOD 1
- | #define HAVE_RAW_DECL_STRTOLL 1
- | #define HAVE_RAW_DECL_STRTOULL 1
- | #define my_strftime nstrftime
- | #define HAVE_WINSOCK2_H 1
- | #define _GL_WINDOWS_64_BIT_ST_SIZE 1
- | #define nlink_t int
- | #define HAVE_RAW_DECL_FSTAT 1
- | #define HAVE_RAW_DECL_STAT 1
- | #define GNULIB_TEST_TIME_RZ 1
- | #define HAVE_DECL_TRUNC 1
- | #define GNULIB_TEST_TRUNC 1
- | #define HAVE_RAW_DECL_CHDIR 1
- | #define HAVE_RAW_DECL_DUP 1
- | #define HAVE_RAW_DECL_DUP2 1
- | #define HAVE_RAW_DECL_FTRUNCATE 1
- | #define HAVE_RAW_DECL_GETCWD 1
- | #define HAVE_RAW_DECL_ISATTY 1
- | #define HAVE_RAW_DECL_LSEEK 1
- | #define HAVE_RAW_DECL_RMDIR 1
- | #define HAVE_RAW_DECL_SLEEP 1
- | #define HAVE_RAW_DECL_UNLINK 1
- | #define HAVE_RAW_DECL_USLEEP 1
- | #define HAVE_VSNPRINTF 1
- | #define GNULIB_TEST_VSNPRINTF 1
- | #define HAVE_RAW_DECL_BTOWC 1
- | #define HAVE_RAW_DECL_WCTOB 1
- | #define HAVE_RAW_DECL_MBSINIT 1
- | #define HAVE_RAW_DECL_MBRTOWC 1
- | #define HAVE_RAW_DECL_MBRLEN 1
- | #define HAVE_RAW_DECL_MBSRTOWCS 1
- | #define HAVE_RAW_DECL_WCRTOMB 1
- | #define HAVE_RAW_DECL_WCSRTOMBS 1
- | #define HAVE_RAW_DECL_WMEMCHR 1
- | #define HAVE_RAW_DECL_WMEMCMP 1
- | #define HAVE_RAW_DECL_WMEMCPY 1
- | #define HAVE_RAW_DECL_WMEMMOVE 1
- | #define HAVE_RAW_DECL_WMEMSET 1
- | #define HAVE_RAW_DECL_WCSLEN 1
- | #define HAVE_RAW_DECL_WCSNLEN 1
- | #define HAVE_RAW_DECL_WCSCPY 1
- | #define HAVE_RAW_DECL_WCSNCPY 1
- | #define HAVE_RAW_DECL_WCSCAT 1
- | #define HAVE_RAW_DECL_WCSNCAT 1
- | #define HAVE_RAW_DECL_WCSCMP 1
- | #define HAVE_RAW_DECL_WCSNCMP 1
- | #define HAVE_RAW_DECL_WCSCOLL 1
- | #define HAVE_RAW_DECL_WCSXFRM 1
- | #define HAVE_RAW_DECL_WCSDUP 1
- | #define HAVE_RAW_DECL_WCSCHR 1
- | #define HAVE_RAW_DECL_WCSRCHR 1
- | #define HAVE_RAW_DECL_WCSCSPN 1
- | #define HAVE_RAW_DECL_WCSSPN 1
- | #define HAVE_RAW_DECL_WCSPBRK 1
- | #define HAVE_RAW_DECL_WCSSTR 1
- | #define HAVE_RAW_DECL_WCSTOK 1
- | #define GNULIB_TEST_WRITE 1
- | #define HAVE_ISNAND_IN_LIBC 1
- | #define HAVE_ISNANF_IN_LIBC 1
- | #define HAVE_ISNANL_IN_LIBC 1
- | #define REPLACE_FUNC_STAT_DIR 1
- | #define GNULIB_TEST_STAT 1
- | #define GNULIB_TEST_STRDUP 1
- | #define GNULIB_TEST_SECURE_GETENV 1
- | #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
- | #define GNULIB_TEST_LOCALECONV 1
- | #define GNULIB_TEST_BTOWC 1
- | #define HAVE___BUILTIN_EXPECT 1
- | #define MBRTOWC_RETVAL_BUG 1
- | #define GNULIB_TEST_MBRTOWC 1
- | #define GNULIB_TEST_MBSINIT 1
- | #define GNULIB_TEST_WCRTOMB 1
- | #define HAVE_TOWLOWER 1
- | #define HAVE_RAW_DECL_WCTYPE 1
- | #define HAVE_RAW_DECL_ISWCTYPE 1
- | #define HAVE_RAW_DECL_WCTRANS 1
- | #define HAVE_RAW_DECL_TOWCTRANS 1
- | #define GNULIB_TEST_CHDIR 1
- | #define HAVE_DUP2 1
- | #define GNULIB_TEST_DUP2 1
- | #define FLEXIBLE_ARRAY_MEMBER /**/
- | #define HAVE_DECL_LOCALTIME_R 0
- | #define GNULIB_TEST_TIME_R 1
- | #define GNULIB_TEST_TIMEGM 1
- | /* end confdefs.h. */
- | /* Test program from Paul Eggert and Tony Leneis. */
- | #include <limits.h>
- | #include <stdlib.h>
- | #include <time.h>
- |
- | #ifdef HAVE_UNISTD_H
- | # include <unistd.h>
- | #endif
- |
- | #if HAVE_DECL_ALARM
- | # include <signal.h>
- | #endif
- |
- | /* Work around redefinition to rpl_putenv by other config tests. */
- | #undef putenv
- |
- | static time_t time_t_max;
- | static time_t time_t_min;
- |
- | /* Values we'll use to set the TZ environment variable. */
- | static char *tz_strings[] = {
- | (char *) 0, "TZ=GMT0", "TZ=JST-9",
- | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
- | };
- | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
- |
- | /* Return 0 if mktime fails to convert a date in the spring-forward gap.
- | Based on a problem report from Andreas Jaeger. */
- | static int
- | spring_forward_gap ()
- | {
- | /* glibc (up to about 1998-10-07) failed this test. */
- | struct tm tm;
- |
- | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
- | instead of "TZ=America/Vancouver" in order to detect the bug even
- | on systems that don't support the Olson extension, or don't have the
- | full zoneinfo tables installed. */
- | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
- |
- | tm.tm_year = 98;
- | tm.tm_mon = 3;
- | tm.tm_mday = 5;
- | tm.tm_hour = 2;
- | tm.tm_min = 0;
- | tm.tm_sec = 0;
- | tm.tm_isdst = -1;
- | return mktime (&tm) != (time_t) -1;
- | }
- |
- | static int
- | mktime_test1 (time_t now)
- | {
- | struct tm *lt;
- | return ! (lt = localtime (&now)) || mktime (lt) == now;
- | }
- |
- | static int
- | mktime_test (time_t now)
- | {
- | return (mktime_test1 (now)
- | && mktime_test1 ((time_t) (time_t_max - now))
- | && mktime_test1 ((time_t) (time_t_min + now)));
- | }
- |
- | static int
- | irix_6_4_bug ()
- | {
- | /* Based on code from Ariel Faigon. */
- | struct tm tm;
- | tm.tm_year = 96;
- | tm.tm_mon = 3;
- | tm.tm_mday = 0;
- | tm.tm_hour = 0;
- | tm.tm_min = 0;
- | tm.tm_sec = 0;
- | tm.tm_isdst = -1;
- | mktime (&tm);
- | return tm.tm_mon == 2 && tm.tm_mday == 31;
- | }
- |
- | static int
- | bigtime_test (int j)
- | {
- | struct tm tm;
- | time_t now;
- | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
- | now = mktime (&tm);
- | if (now != (time_t) -1)
- | {
- | struct tm *lt = localtime (&now);
- | if (! (lt
- | && lt->tm_year == tm.tm_year
- | && lt->tm_mon == tm.tm_mon
- | && lt->tm_mday == tm.tm_mday
- | && lt->tm_hour == tm.tm_hour
- | && lt->tm_min == tm.tm_min
- | && lt->tm_sec == tm.tm_sec
- | && lt->tm_yday == tm.tm_yday
- | && lt->tm_wday == tm.tm_wday
- | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
- | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
- | return 0;
- | }
- | return 1;
- | }
- |
- | static int
- | year_2050_test ()
- | {
- | /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
- | ignoring leap seconds. */
- | unsigned long int answer = 2527315200UL;
- |
- | struct tm tm;
- | time_t t;
- | tm.tm_year = 2050 - 1900;
- | tm.tm_mon = 2 - 1;
- | tm.tm_mday = 1;
- | tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
- | tm.tm_isdst = -1;
- |
- | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
- | instead of "TZ=America/Vancouver" in order to detect the bug even
- | on systems that don't support the Olson extension, or don't have the
- | full zoneinfo tables installed. */
- | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
- |
- | t = mktime (&tm);
- |
- | /* Check that the result is either a failure, or close enough
- | to the correct answer that we can assume the discrepancy is
- | due to leap seconds. */
- | return (t == (time_t) -1
- | || (0 < t && answer - 120 <= t && t <= answer + 120));
- | }
- |
- | int
- | main ()
- | {
- | int result = 0;
- | time_t t, delta;
- | int i, j;
- | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
- |
- | #if HAVE_DECL_ALARM
- | /* This test makes some buggy mktime implementations loop.
- | Give up after 60 seconds; a mktime slower than that
- | isn't worth using anyway. */
- | signal (SIGALRM, SIG_DFL);
- | alarm (60);
- | #endif
- |
- | time_t_max = (! TIME_T_IS_SIGNED
- | ? (time_t) -1
- | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
- | * 2 + 1));
- | time_t_min = (! TIME_T_IS_SIGNED
- | ? (time_t) 0
- | : time_t_signed_magnitude
- | ? ~ (time_t) 0
- | : ~ time_t_max);
- |
- | delta = time_t_max / 997; /* a suitable prime number */
- | for (i = 0; i < N_STRINGS; i++)
- | {
- | if (tz_strings[i])
- | putenv (tz_strings[i]);
- |
- | for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
- | if (! mktime_test (t))
- | result |= 1;
- | if ((result & 2) == 0
- | && ! (mktime_test ((time_t) 1)
- | && mktime_test ((time_t) (60 * 60))
- | && mktime_test ((time_t) (60 * 60 * 24))))
- | result |= 2;
- |
- | for (j = 1; (result & 4) == 0; j <<= 1)
- | {
- | if (! bigtime_test (j))
- | result |= 4;
- | if (INT_MAX / 2 < j)
- | break;
- | }
- | if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
- | result |= 8;
- | }
- | if (! irix_6_4_bug ())
- | result |= 16;
- | if (! spring_forward_gap ())
- | result |= 32;
- | if (! year_2050_test ())
- | result |= 64;
- | return result;
- | }
- configure:34894: result: no
Add Comment
Please, Sign In to add comment