3 dnl This macro is intended to be used solely in this file.
4 dnl These are the prerequisite macros for GNU's strftime.c replacement.
5 AC_DEFUN([_jm_STRFTIME_PREREQS],
7 dnl strftime.c uses the underyling system strftime if it exists.
8 AC_CHECK_FUNCS(strftime)
10 AC_CHECK_HEADERS(limits.h)
11 AC_CHECK_FUNCS(bcopy tzset mempcpy memcpy memset)
13 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16 AC_CHECK_FUNCS(mblen mbrlen)
18 AC_CHECK_MEMBER([struct tm.tm_gmtoff],
19 [AC_DEFINE(HAVE_TM_GMTOFF, 1,
20 [Define if struct tm has the tm_gmtoff member.])],
25 dnl From Jim Meyering.
27 AC_DEFUN([jm_FUNC_GNU_STRFTIME],
28 [AC_REQUIRE([AC_HEADER_TIME])dnl
32 AC_REQUIRE([AC_C_CONST])dnl
33 AC_REQUIRE([AC_HEADER_STDC])dnl
34 AC_CHECK_HEADERS(sys/time.h)
35 AC_DEFINE([my_strftime], [nstrftime],
36 [Define to the name of the strftime replacement function.])
39 AC_DEFUN([jm_FUNC_STRFTIME],