* modules/time_r-tests (configure.ac):
Do not check for tzname, as the tests don’t use it.
Simply check for struct tm.tm_zone.
2024-06-16 Paul Eggert <eggert@cs.ucla.edu>
+ time_r-tests: avoid tzname test
+ * modules/time_r-tests (configure.ac):
+ Do not check for tzname, as the tests don’t use it.
+ Simply check for struct tm.tm_zone.
+
nstrftime: rename HAVE_TM_GMTOFF
* m4/tm_gmtoff.m4 (gl_TM_GMTOFF): Rename HAVE_TM_GMTOFF
to HAVE_STRUCT_TM_TM_GMTOFF, for consistency with
nanosleep
configure.ac:
-dnl Possibly define HAVE_STRUCT_TM_TM_ZONE.
-AC_REQUIRE([AC_STRUCT_TIMEZONE])
-dnl Possibly define HAVE_STRUCT_TM_TM_GMTOFF.
-AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[[#include <time.h>]])
+AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.tm_zone], [], [],
+ [[#include <time.h>
+ ]])
Makefile.am:
TESTS += \