summaryrefslogtreecommitdiff
path: root/gl/m4/sys_time_h.m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-03-31 13:47:05 +0200
committerSimon Josefsson <simon@josefsson.org>2010-03-31 13:47:05 +0200
commit1dc13a02db8fc7efe58a4d717d9ace0b2ec449a4 (patch)
tree765845042bca991bbcf371cd51152a02532c9f9e /gl/m4/sys_time_h.m4
parent12fbe47f33b6d03ff28ff9bc9e5e9405b110d883 (diff)
downloadgnutls-1dc13a02db8fc7efe58a4d717d9ace0b2ec449a4.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/m4/sys_time_h.m4')
-rw-r--r--gl/m4/sys_time_h.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/m4/sys_time_h.m4 b/gl/m4/sys_time_h.m4
index b14bc4ba2b..da57527163 100644
--- a/gl/m4/sys_time_h.m4
+++ b/gl/m4/sys_time_h.m4
@@ -1,5 +1,5 @@
# Configure a replacement for <sys/time.h>.
-# serial 3
+# serial 6
# Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -56,13 +56,16 @@ AC_DEFUN([gl_SYS_TIME_MODULE_INDICATOR],
[
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
- GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
+ 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])
])
AC_DEFUN([gl_HEADER_SYS_TIME_H_DEFAULTS],
[
GNULIB_GETTIMEOFDAY=0; AC_SUBST([GNULIB_GETTIMEOFDAY])
dnl Assume POSIX behavior unless another module says otherwise.
+ HAVE_GETTIMEOFDAY=1; AC_SUBST([HAVE_GETTIMEOFDAY])
HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL])
HAVE_SYS_TIME_H=1; AC_SUBST([HAVE_SYS_TIME_H])
REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY])