+2017-05-10 Bruno Haible <bruno@clisp.org>
+
+ time: Fix missing initialization of HAVE_TIMEZONE_T.
+ * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
+ here...
+ * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
+ * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
+ gl_HEADER_SYS_TIME_H_DEFAULTS.
+ * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
+ (configure.ac): Remove useless quoting.
+
2017-05-10 Bruno Haible <bruno@clisp.org>
Implement a way to opt out from MSVC support, part 2.
# Configure a replacement for <sys/time.h>.
-# serial 8
+# serial 9
# Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
HAVE_GETTIMEOFDAY=1; AC_SUBST([HAVE_GETTIMEOFDAY])
HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL])
HAVE_SYS_TIME_H=1; AC_SUBST([HAVE_SYS_TIME_H])
- HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY])
REPLACE_STRUCT_TIMEVAL=0; AC_SUBST([REPLACE_STRUCT_TIMEVAL])
])
# Copyright (C) 2000-2001, 2003-2007, 2009-2017 Free Software Foundation, Inc.
-# serial 10
+# serial 11
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME])
HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM])
HAVE_TZSET=1; AC_SUBST([HAVE_TZSET])
+ dnl Even GNU libc does not have timezone_t yet.
+ HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
dnl If another module says to replace or to not replace, do that.
dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK;
dnl this lets maintainers check for portability.
AC_DEFUN([gl_TIME_RZ],
[
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
- AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
+ AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
AC_REQUIRE([AC_STRUCT_TIMEZONE])
AC_CHECK_TYPES([timezone_t], [], [], [[#include <time.h>]])
Depends-on:
extensions
-flexmember [test "$HAVE_TIMEZONE_T" = 0]
-setenv [test "$HAVE_TIMEZONE_T" = 0]
-stdbool [test "$HAVE_TIMEZONE_T" = 0]
-time_r [test "$HAVE_TIMEZONE_T" = 0]
-timegm [test "$HAVE_TIMEZONE_T" = 0]
-tzset [test "$HAVE_TIMEZONE_T" = 0]
-unsetenv [test "$HAVE_TIMEZONE_T" = 0]
+time
+flexmember [test $HAVE_TIMEZONE_T = 0]
+setenv [test $HAVE_TIMEZONE_T = 0]
+stdbool [test $HAVE_TIMEZONE_T = 0]
+time_r [test $HAVE_TIMEZONE_T = 0]
+timegm [test $HAVE_TIMEZONE_T = 0]
+tzset [test $HAVE_TIMEZONE_T = 0]
+unsetenv [test $HAVE_TIMEZONE_T = 0]
configure.ac:
gl_TIME_RZ
-if test "$HAVE_TIMEZONE_T" = 0; then
+if test $HAVE_TIMEZONE_T = 0; then
AC_LIBOBJ([time_rz])
fi
gl_TIME_MODULE_INDICATOR([time_rz])