1
dnl Reentrant time functions like localtime_r.
3
dnl Copyright (C) 2003 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
dnl Written by Paul Eggert.
12
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
13
AC_REQUIRE([gl_C_RESTRICT])
15
AC_CACHE_CHECK([whether localtime_r is compatible with its POSIX signature],
19
[/* We don't need to append 'restrict's to the argument types,
20
even though the POSIX signature has the 'restrict's,
21
since C99 says they can't affect type compatibility. */
22
struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;],
23
[gl_cv_time_r_posix=yes],
24
[gl_cv_time_r_posix=no])])
25
if test $gl_cv_time_r_posix = yes; then
26
AC_DEFINE([HAVE_TIME_R_POSIX], 1,
27
[Define to 1 if localtime_r, etc. have the type signatures that
35
# Prerequisites of lib/time_r.c.
36
AC_DEFUN([gl_PREREQ_TIME_R], [