source: trunk/essentials/sys-apps/findutils/gnulib/m4/strftime.m4

Last change on this file was 3170, checked in by bird, 18 years ago

findutils 4.3.2

File size: 932 bytes
Line 
1#serial 28
2
3# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4# Free Software Foundation, Inc.
5#
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# Written by Jim Meyering and Paul Eggert.
11
12AC_DEFUN([gl_FUNC_GNU_STRFTIME],
13[AC_REQUIRE([gl_FUNC_STRFTIME])dnl
14])
15
16# These are the prerequisite macros for GNU's strftime.c replacement.
17AC_DEFUN([gl_FUNC_STRFTIME],
18[
19 AC_LIBOBJ([strftime])
20
21 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22 AC_REQUIRE([AC_STRUCT_TIMEZONE])
23
24 AC_REQUIRE([AC_HEADER_TIME])
25 AC_REQUIRE([AC_TYPE_MBSTATE_T])
26 AC_REQUIRE([gl_TM_GMTOFF])
27
28 AC_CHECK_FUNCS_ONCE(mblen mbrlen mempcpy tzset)
29 AC_CHECK_HEADERS_ONCE(sys/time.h wchar.h)
30
31 AC_DEFINE([my_strftime], [nstrftime],
32 [Define to the name of the strftime replacement function.])
33])
Note: See TracBrowser for help on using the repository browser.