Add Tramp distrobox method
[emacs.git] / m4 / timegm.m4
blobc1ff26777b8b9c311a9fa2fe4cd4c2454265ddcf
1 # timegm.m4
2 # serial 16
3 dnl Copyright (C) 2003, 2007, 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_FUNC_TIMEGM],
10   AC_REQUIRE([gl_TIME_H_DEFAULTS])
11   AC_REQUIRE([gl_FUNC_MKTIME_WORKS])
12   gl_CHECK_FUNCS_ANDROID([timegm], [[#include <time.h>]])
13   if test $ac_cv_func_timegm = yes; then
14     if test "$gl_cv_func_working_mktime" != yes; then
15       # Assume that timegm is buggy if mktime is.
16       REPLACE_TIMEGM=1
17     fi
18   else
19     HAVE_TIMEGM=0
20     case "$gl_cv_onwards_func_timegm" in
21       future*) REPLACE_TIMEGM=1 ;;
22     esac
23   fi
26 # Prerequisites of lib/timegm.c.
27 AC_DEFUN([gl_PREREQ_TIMEGM], [
28   :