Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
[gnulib.git] / m4 / strftime.m4
1 #serial 22
2
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([_gl_STRFTIME_PREREQS],
6 [
7  dnl strftime.c uses the underyling system strftime if it exists.
8  AC_FUNC_STRFTIME
9
10  AC_CHECK_FUNCS_ONCE(mempcpy)
11  AC_CHECK_FUNCS(tzset)
12
13  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
14  AC_STRUCT_TIMEZONE
15
16  AC_CHECK_FUNCS(mblen mbrlen)
17  AC_TYPE_MBSTATE_T
18
19  AC_REQUIRE([gl_TM_GMTOFF])
20  AC_REQUIRE([gl_FUNC_TZSET_CLOBBER])
21 ])
22
23 dnl From Jim Meyering.
24 dnl
25 AC_DEFUN([gl_FUNC_GNU_STRFTIME],
26 [AC_REQUIRE([AC_HEADER_TIME])dnl
27
28  _gl_STRFTIME_PREREQS
29
30  AC_REQUIRE([AC_C_CONST])dnl
31  AC_CHECK_HEADERS_ONCE(sys/time.h)
32  AC_DEFINE([my_strftime], [nstrftime],
33    [Define to the name of the strftime replacement function.])
34 ])
35
36 AC_DEFUN([gl_FUNC_STRFTIME],
37 [
38   _gl_STRFTIME_PREREQS
39 ])