summaryrefslogtreecommitdiffstats
path: root/gl/m4/mktime.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/mktime.m4')
-rw-r--r--gl/m4/mktime.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/gl/m4/mktime.m4 b/gl/m4/mktime.m4
index e9d31f35..eca6c4d8 100644
--- a/gl/m4/mktime.m4
+++ b/gl/m4/mktime.m4
@@ -1,9 +1,11 @@
1# serial 37 1# mktime.m4
2dnl Copyright (C) 2002-2003, 2005-2007, 2009-2023 Free Software Foundation, 2# serial 42
3dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation,
3dnl Inc. 4dnl Inc.
4dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 7dnl with or without modifications, as long as this notice is preserved.
8dnl This file is offered as-is, without any warranty.
7 9
8dnl From Jim Meyering. 10dnl From Jim Meyering.
9 11
@@ -264,9 +266,9 @@ main ()
264 [gl_cv_func_working_mktime=yes], 266 [gl_cv_func_working_mktime=yes],
265 [gl_cv_func_working_mktime=no], 267 [gl_cv_func_working_mktime=no],
266 [case "$host_os" in 268 [case "$host_os" in
267 # Guess no on native Windows. 269 # Guess no on native Windows.
268 mingw*) gl_cv_func_working_mktime="guessing no" ;; 270 mingw* | windows*) gl_cv_func_working_mktime="guessing no" ;;
269 *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; 271 *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;;
270 esac 272 esac
271 ]) 273 ])
272 fi 274 fi
@@ -280,7 +282,6 @@ AC_DEFUN([gl_FUNC_MKTIME],
280 AC_REQUIRE([AC_CANONICAL_HOST]) 282 AC_REQUIRE([AC_CANONICAL_HOST])
281 AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) 283 AC_REQUIRE([gl_FUNC_MKTIME_WORKS])
282 284
283 REPLACE_MKTIME=0
284 if test "$gl_cv_func_working_mktime" != yes; then 285 if test "$gl_cv_func_working_mktime" != yes; then
285 REPLACE_MKTIME=1 286 REPLACE_MKTIME=1
286 AC_DEFINE([NEED_MKTIME_WORKING], [1], 287 AC_DEFINE([NEED_MKTIME_WORKING], [1],
@@ -288,7 +289,7 @@ AC_DEFUN([gl_FUNC_MKTIME],
288 with the algorithmic workarounds.]) 289 with the algorithmic workarounds.])
289 fi 290 fi
290 case "$host_os" in 291 case "$host_os" in
291 mingw*) 292 mingw* | windows*)
292 REPLACE_MKTIME=1 293 REPLACE_MKTIME=1
293 AC_DEFINE([NEED_MKTIME_WINDOWS], [1], 294 AC_DEFINE([NEED_MKTIME_WINDOWS], [1],
294 [Define if the compilation of mktime.c should define 'mktime' 295 [Define if the compilation of mktime.c should define 'mktime'