2011-01-09 06:57:07 +00:00
|
|
|
# Configure a more-standard replacement for <time.h>.
|
|
|
|
|
2023-01-07 01:53:54 +00:00
|
|
|
# Copyright (C) 2000-2001, 2003-2007, 2009-2023 Free Software Foundation, Inc.
|
2011-01-09 06:57:07 +00:00
|
|
|
|
2023-03-11 00:51:41 +00:00
|
|
|
# serial 22
|
2011-01-09 06:57:07 +00:00
|
|
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
# Written by Paul Eggert and Jim Meyering.
|
|
|
|
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
AC_DEFUN_ONCE([gl_TIME_H],
|
2011-01-09 06:57:07 +00:00
|
|
|
[
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
dnl Ensure to expand the default settings once only, before all statements
|
|
|
|
dnl that occur in other macros.
|
|
|
|
AC_REQUIRE([gl_TIME_H_DEFAULTS])
|
Update from Gnulib
This incorporates:
2020-02-22 fchmodat, lchmod: simplify
2020-02-22 lchmod: fix link error on Solaris 10
2020-02-22 use 'restrict' in all POSIX function declarations
2020-02-22 chmodat, chownat: new modules
* lib/gnulib.mk.in: Regenerate.
* lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
* lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
* lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
* m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Copy from Gnulib.
2020-02-23 09:24:21 +00:00
|
|
|
|
2011-01-22 00:12:10 +00:00
|
|
|
gl_NEXT_HEADERS([time.h])
|
2011-01-09 06:57:07 +00:00
|
|
|
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
|
Update from Gnulib
This incorporates:
2020-02-22 fchmodat, lchmod: simplify
2020-02-22 lchmod: fix link error on Solaris 10
2020-02-22 use 'restrict' in all POSIX function declarations
2020-02-22 chmodat, chownat: new modules
* lib/gnulib.mk.in: Regenerate.
* lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
* lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
* lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
* m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Copy from Gnulib.
2020-02-23 09:24:21 +00:00
|
|
|
|
2022-09-28 07:29:09 +00:00
|
|
|
dnl Check for declarations of anything we want to poison if the
|
|
|
|
dnl corresponding gnulib module is not in use.
|
|
|
|
gl_WARN_ON_USE_PREPARE([[
|
|
|
|
#include <time.h>
|
|
|
|
]], [asctime_r ctime_r])
|
|
|
|
|
Update from Gnulib
This incorporates:
2020-02-22 fchmodat, lchmod: simplify
2020-02-22 lchmod: fix link error on Solaris 10
2020-02-22 use 'restrict' in all POSIX function declarations
2020-02-22 chmodat, chownat: new modules
* lib/gnulib.mk.in: Regenerate.
* lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
* lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
* lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
* m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Copy from Gnulib.
2020-02-23 09:24:21 +00:00
|
|
|
AC_REQUIRE([AC_C_RESTRICT])
|
2021-01-22 19:45:38 +00:00
|
|
|
|
|
|
|
AC_CACHE_CHECK([for TIME_UTC in <time.h>],
|
|
|
|
[gl_cv_time_h_has_TIME_UTC],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <time.h>
|
|
|
|
]],
|
|
|
|
[[static int x = TIME_UTC; x++;]])],
|
|
|
|
[gl_cv_time_h_has_TIME_UTC=yes],
|
|
|
|
[gl_cv_time_h_has_TIME_UTC=no])])
|
|
|
|
if test $gl_cv_time_h_has_TIME_UTC = yes; then
|
|
|
|
TIME_H_DEFINES_TIME_UTC=1
|
|
|
|
else
|
|
|
|
TIME_H_DEFINES_TIME_UTC=0
|
|
|
|
fi
|
|
|
|
AC_SUBST([TIME_H_DEFINES_TIME_UTC])
|
2011-01-09 06:57:07 +00:00
|
|
|
])
|
|
|
|
|
2012-06-25 14:49:15 +00:00
|
|
|
dnl Check whether 'struct timespec' is declared
|
2015-01-28 06:24:19 +00:00
|
|
|
dnl in time.h, sys/time.h, pthread.h, or unistd.h.
|
2011-01-09 06:57:07 +00:00
|
|
|
|
|
|
|
AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC],
|
|
|
|
[
|
|
|
|
AC_CHECK_HEADERS_ONCE([sys/time.h])
|
|
|
|
AC_CACHE_CHECK([for struct timespec in <time.h>],
|
|
|
|
[gl_cv_sys_struct_timespec_in_time_h],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <time.h>
|
|
|
|
]],
|
|
|
|
[[static struct timespec x; x.tv_sec = x.tv_nsec;]])],
|
|
|
|
[gl_cv_sys_struct_timespec_in_time_h=yes],
|
|
|
|
[gl_cv_sys_struct_timespec_in_time_h=no])])
|
|
|
|
|
|
|
|
TIME_H_DEFINES_STRUCT_TIMESPEC=0
|
|
|
|
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
|
|
|
|
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
|
2015-01-28 06:24:19 +00:00
|
|
|
UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
|
2011-01-09 06:57:07 +00:00
|
|
|
if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
|
|
|
|
TIME_H_DEFINES_STRUCT_TIMESPEC=1
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([for struct timespec in <sys/time.h>],
|
|
|
|
[gl_cv_sys_struct_timespec_in_sys_time_h],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <sys/time.h>
|
|
|
|
]],
|
|
|
|
[[static struct timespec x; x.tv_sec = x.tv_nsec;]])],
|
|
|
|
[gl_cv_sys_struct_timespec_in_sys_time_h=yes],
|
|
|
|
[gl_cv_sys_struct_timespec_in_sys_time_h=no])])
|
|
|
|
if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
|
|
|
|
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([for struct timespec in <pthread.h>],
|
|
|
|
[gl_cv_sys_struct_timespec_in_pthread_h],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <pthread.h>
|
|
|
|
]],
|
|
|
|
[[static struct timespec x; x.tv_sec = x.tv_nsec;]])],
|
|
|
|
[gl_cv_sys_struct_timespec_in_pthread_h=yes],
|
|
|
|
[gl_cv_sys_struct_timespec_in_pthread_h=no])])
|
|
|
|
if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
|
|
|
|
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
|
2015-01-28 06:24:19 +00:00
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([for struct timespec in <unistd.h>],
|
|
|
|
[gl_cv_sys_struct_timespec_in_unistd_h],
|
|
|
|
[AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[#include <unistd.h>
|
|
|
|
]],
|
|
|
|
[[static struct timespec x; x.tv_sec = x.tv_nsec;]])],
|
|
|
|
[gl_cv_sys_struct_timespec_in_unistd_h=yes],
|
|
|
|
[gl_cv_sys_struct_timespec_in_unistd_h=no])])
|
|
|
|
if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
|
|
|
|
UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
|
|
|
|
fi
|
2011-01-09 06:57:07 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST([TIME_H_DEFINES_STRUCT_TIMESPEC])
|
|
|
|
AC_SUBST([SYS_TIME_H_DEFINES_STRUCT_TIMESPEC])
|
|
|
|
AC_SUBST([PTHREAD_H_DEFINES_STRUCT_TIMESPEC])
|
2015-01-28 06:24:19 +00:00
|
|
|
AC_SUBST([UNISTD_H_DEFINES_STRUCT_TIMESPEC])
|
2011-01-09 06:57:07 +00:00
|
|
|
])
|
|
|
|
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
# gl_TIME_MODULE_INDICATOR([modulename])
|
|
|
|
# sets the shell variable that indicates the presence of the given module
|
|
|
|
# to a C preprocessor expression that will evaluate to 1.
|
|
|
|
# This macro invocation must not occur in macros that are AC_REQUIREd.
|
2011-01-09 06:57:07 +00:00
|
|
|
AC_DEFUN([gl_TIME_MODULE_INDICATOR],
|
|
|
|
[
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
dnl Ensure to expand the default settings once only.
|
|
|
|
gl_TIME_H_REQUIRE_DEFAULTS
|
2011-01-09 06:57:07 +00:00
|
|
|
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
|
|
|
|
dnl Define it also as a C macro, for the benefit of the unit tests.
|
|
|
|
gl_MODULE_INDICATOR_FOR_TESTS([$1])
|
|
|
|
])
|
|
|
|
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
# Initializes the default values for AC_SUBSTed shell variables.
|
|
|
|
# This macro must not be AC_REQUIREd. It must only be invoked, and only
|
|
|
|
# outside of macros or in macros that are not AC_REQUIREd.
|
|
|
|
AC_DEFUN([gl_TIME_H_REQUIRE_DEFAULTS],
|
|
|
|
[
|
|
|
|
m4_defun(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS], [
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CTIME])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKTIME])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOCALTIME])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NANOSLEEP])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRFTIME])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPTIME])
|
2023-03-11 00:51:41 +00:00
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME])
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMEGM])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GET])
|
2022-01-04 21:13:25 +00:00
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GETRES])
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ])
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET])
|
|
|
|
dnl Support Microsoft deprecated alias function names by default.
|
|
|
|
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TZSET], [1])
|
|
|
|
])
|
|
|
|
m4_require(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS])
|
|
|
|
AC_REQUIRE([gl_TIME_H_DEFAULTS])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([gl_TIME_H_DEFAULTS],
|
2011-01-09 06:57:07 +00:00
|
|
|
[
|
|
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
|
|
HAVE_DECL_LOCALTIME_R=1; AC_SUBST([HAVE_DECL_LOCALTIME_R])
|
|
|
|
HAVE_NANOSLEEP=1; AC_SUBST([HAVE_NANOSLEEP])
|
|
|
|
HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME])
|
|
|
|
HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM])
|
2021-01-22 19:45:38 +00:00
|
|
|
HAVE_TIMESPEC_GET=1; AC_SUBST([HAVE_TIMESPEC_GET])
|
2022-01-04 21:13:25 +00:00
|
|
|
HAVE_TIMESPEC_GETRES=1; AC_SUBST([HAVE_TIMESPEC_GETRES])
|
Merge from gnulib
This incorporates:
2017-05-13 largefile: Simplify
2017-05-13 largefile: Improve and document
2017-05-13 truncate: New module
2017-05-13 windows-stat-timespec: New module
2017-05-13 windows-stat-override: New module
2017-05-11 getopt-posix: port to mingw
2017-05-11 gettimeofday: Increase precision on mingw
2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
2017-05-10 Implement a way to opt out from MSVC support
2017-05-09 tzset: Expand comment about TZ problem on native Windows
* build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
* lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
* lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
* lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
* m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
* m4/unistd_h.m4: Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-05-14 08:29:05 +00:00
|
|
|
dnl Even GNU libc does not have timezone_t yet.
|
|
|
|
HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
|
2011-01-09 06:57:07 +00:00
|
|
|
dnl If another module says to replace or to not replace, do that.
|
|
|
|
dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK;
|
|
|
|
dnl this lets maintainers check for portability.
|
Merge from gnulib
This incorporates:
2017-04-30 strftime-fixes: New module
2017-04-30 mktime: Work around TZ problem on native Windows
2017-04-30 ctime, localtime: New modules
2017-04-30 gettimeofday: Provide higher resolution on native Windows
2017-04-29 utime-h: Modernize handling of 'struct utimbuf'
2017-04-29 Make use of module 'utime-h'
2017-04-30 Fix a few typos
* admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too.
* lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c:
* m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4:
* m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4:
Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-04-30 21:52:10 +00:00
|
|
|
REPLACE_CTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_CTIME])
|
2011-01-09 06:57:07 +00:00
|
|
|
REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; AC_SUBST([REPLACE_LOCALTIME_R])
|
|
|
|
REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME])
|
|
|
|
REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP])
|
Merge from gnulib
This incorporates:
2017-04-30 strftime-fixes: New module
2017-04-30 mktime: Work around TZ problem on native Windows
2017-04-30 ctime, localtime: New modules
2017-04-30 gettimeofday: Provide higher resolution on native Windows
2017-04-29 utime-h: Modernize handling of 'struct utimbuf'
2017-04-29 Make use of module 'utime-h'
2017-04-30 Fix a few typos
* admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too.
* lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c:
* m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4:
* m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4:
Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-04-30 21:52:10 +00:00
|
|
|
REPLACE_STRFTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_STRFTIME])
|
2023-03-11 00:51:41 +00:00
|
|
|
REPLACE_TIME=0; AC_SUBST([REPLACE_TIME])
|
2011-01-09 06:57:07 +00:00
|
|
|
REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM])
|
2023-02-04 22:45:11 +00:00
|
|
|
REPLACE_TIMESPEC_GET=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMESPEC_GET])
|
2017-05-01 22:33:06 +00:00
|
|
|
REPLACE_TZSET=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TZSET])
|
2013-12-17 20:43:43 +00:00
|
|
|
|
|
|
|
dnl Hack so that the time module doesn't depend on the sys_time module.
|
|
|
|
dnl First, default GNULIB_GETTIMEOFDAY to 0 if sys_time is absent.
|
|
|
|
: ${GNULIB_GETTIMEOFDAY=0}; AC_SUBST([GNULIB_GETTIMEOFDAY])
|
|
|
|
dnl Second, it's OK to not use GNULIB_PORTCHECK for REPLACE_GMTIME
|
|
|
|
dnl and REPLACE_LOCALTIME, as portability to Solaris 2.6 and earlier
|
|
|
|
dnl is no longer a big deal.
|
|
|
|
REPLACE_GMTIME=0; AC_SUBST([REPLACE_GMTIME])
|
|
|
|
REPLACE_LOCALTIME=0; AC_SUBST([REPLACE_LOCALTIME])
|
2011-01-09 06:57:07 +00:00
|
|
|
])
|