2005-01-23 17:07:57 +08:00
|
|
|
#serial 24
|
1997-11-10 11:52:47 +08:00
|
|
|
|
2004-11-10 04:54:43 +08:00
|
|
|
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004
|
|
|
|
# Free Software Foundation, Inc.
|
2005-01-23 17:07:57 +08:00
|
|
|
#
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
1999-12-09 23:54:20 +08:00
|
|
|
|
2004-11-10 04:54:43 +08:00
|
|
|
# Written by Jim Meyering and Paul Eggert.
|
1996-12-21 09:50:50 +08:00
|
|
|
|
2004-04-13 23:28:45 +08:00
|
|
|
AC_DEFUN([gl_FUNC_GNU_STRFTIME],
|
2004-11-10 04:54:43 +08:00
|
|
|
[AC_REQUIRE([gl_FUNC_STRFTIME])dnl
|
1996-12-21 09:50:50 +08:00
|
|
|
AC_REQUIRE([AC_C_CONST])dnl
|
|
|
|
])
|
1997-11-10 11:52:47 +08:00
|
|
|
|
2004-11-10 04:54:43 +08:00
|
|
|
# These are the prerequisite macros for GNU's strftime.c replacement.
|
2004-04-13 23:28:45 +08:00
|
|
|
AC_DEFUN([gl_FUNC_STRFTIME],
|
1997-11-10 11:52:47 +08:00
|
|
|
[
|
2004-11-10 04:54:43 +08:00
|
|
|
# strftime.c uses the underyling system strftime if it exists.
|
|
|
|
AC_REQUIRE([AC_FUNC_STRFTIME])
|
|
|
|
|
|
|
|
# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
|
|
|
|
AC_REQUIRE([AC_STRUCT_TIMEZONE])
|
|
|
|
|
|
|
|
AC_REQUIRE([AC_HEADER_TIME])
|
|
|
|
AC_REQUIRE([AC_TYPE_MBSTATE_T])
|
|
|
|
AC_REQUIRE([gl_TM_GMTOFF])
|
|
|
|
AC_REQUIRE([gl_FUNC_TZSET_CLOBBER])
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS_ONCE(mblen mbrlen mempcpy tzset)
|
|
|
|
AC_CHECK_HEADERS_ONCE(sys/time.h wchar.h)
|
|
|
|
|
|
|
|
AC_DEFINE([my_strftime], [nstrftime],
|
|
|
|
[Define to the name of the strftime replacement function.])
|
1997-11-10 11:52:47 +08:00
|
|
|
])
|