timegm.m4 720 B

123456789101112131415161718192021222324252627
  1. # timegm.m4 serial 13
  2. dnl Copyright (C) 2003, 2007, 2009-2023 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. AC_DEFUN([gl_FUNC_TIMEGM],
  7. [
  8. AC_REQUIRE([gl_TIME_H_DEFAULTS])
  9. AC_REQUIRE([gl_FUNC_MKTIME_WORKS])
  10. REPLACE_TIMEGM=0
  11. AC_CHECK_FUNCS_ONCE([timegm])
  12. if test $ac_cv_func_timegm = yes; then
  13. if test "$gl_cv_func_working_mktime" != yes; then
  14. # Assume that timegm is buggy if mktime is.
  15. REPLACE_TIMEGM=1
  16. fi
  17. else
  18. HAVE_TIMEGM=0
  19. fi
  20. ])
  21. # Prerequisites of lib/timegm.c.
  22. AC_DEFUN([gl_PREREQ_TIMEGM], [
  23. :
  24. ])