]> Savannah Git Hosting - gnulib.git/commitdiff
time_r-tests: avoid tzname test
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Jun 2024 17:24:07 +0000 (10:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Jun 2024 23:38:20 +0000 (16:38 -0700)
* 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.

ChangeLog
modules/time_r-tests

index ebdd04567f65cf086cf2f85e378122d2805a8e32..54eeb40706b60842ee1193147c4034eef9142354 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
index 56346c0f7c1b1e363f35d7b3450f2f717d8709e0..9d82cb3657ba26b830fd63e8c51b80dcc761fafa 100644 (file)
@@ -11,10 +11,9 @@ thread
 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 += \