diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/m4/timegm.m4 | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/m4/timegm.m4')
-rw-r--r-- | gl/m4/timegm.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gl/m4/timegm.m4 b/gl/m4/timegm.m4 index 6079f1a..c1ff267 100644 --- a/gl/m4/timegm.m4 +++ b/gl/m4/timegm.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # timegm.m4 serial 13 | 1 | # timegm.m4 |
2 | dnl Copyright (C) 2003, 2007, 2009-2023 Free Software Foundation, Inc. | 2 | # serial 16 |
3 | dnl Copyright (C) 2003, 2007, 2009-2024 Free Software Foundation, Inc. | ||
3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
@@ -8,8 +9,7 @@ AC_DEFUN([gl_FUNC_TIMEGM], | |||
8 | [ | 9 | [ |
9 | AC_REQUIRE([gl_TIME_H_DEFAULTS]) | 10 | AC_REQUIRE([gl_TIME_H_DEFAULTS]) |
10 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) | 11 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) |
11 | REPLACE_TIMEGM=0 | 12 | gl_CHECK_FUNCS_ANDROID([timegm], [[#include <time.h>]]) |
12 | AC_CHECK_FUNCS_ONCE([timegm]) | ||
13 | if test $ac_cv_func_timegm = yes; then | 13 | if test $ac_cv_func_timegm = yes; then |
14 | if test "$gl_cv_func_working_mktime" != yes; then | 14 | if test "$gl_cv_func_working_mktime" != yes; then |
15 | # Assume that timegm is buggy if mktime is. | 15 | # Assume that timegm is buggy if mktime is. |
@@ -17,6 +17,9 @@ AC_DEFUN([gl_FUNC_TIMEGM], | |||
17 | fi | 17 | fi |
18 | else | 18 | else |
19 | HAVE_TIMEGM=0 | 19 | HAVE_TIMEGM=0 |
20 | case "$gl_cv_onwards_func_timegm" in | ||
21 | future*) REPLACE_TIMEGM=1 ;; | ||
22 | esac | ||
20 | fi | 23 | fi |
21 | ]) | 24 | ]) |
22 | 25 | ||