summaryrefslogtreecommitdiff
path: root/m4/ctime.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-04-30 13:19:24 +0200
committerBruno Haible <bruno@clisp.org>2017-04-30 19:26:37 +0200
commit8c59a9eb5cdd49322c399601bcbee630321164de (patch)
treea141f630dd8187f48280ddf9eb76b6e20e6c88df /m4/ctime.m4
parent8625e57a6e10f41b50d6912d1f9205533bae16b6 (diff)
downloadgnulib-8c59a9eb5cdd49322c399601bcbee630321164de.tar.gz
ctime: New module.
* lib/time.in.h (ctime): New declaration. * lib/ctime.c: New file. * m4/ctime.m4: New file. * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME, REPLACE_CTIME. * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME. * modules/ctime: New file. * doc/posix-functions/ctime.texi: Mention the new module.
Diffstat (limited to 'm4/ctime.m4')
-rw-r--r--m4/ctime.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/ctime.m4 b/m4/ctime.m4
new file mode 100644
index 0000000000..2d4b3f82ed
--- /dev/null
+++ b/m4/ctime.m4
@@ -0,0 +1,15 @@
+# ctime.m4 serial 1
+dnl Copyright (C) 2017 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_FUNC_CTIME],
+[
+ AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ case "$host_os" in
+ mingw*) REPLACE_CTIME=1 ;;
+ *) REPLACE_CTIME=0 ;;
+ esac
+])