Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1102:921bbc045898
(jm_STRFTIME_PREREQS): Check for localtime_r.
(jm_FUNC_GNU_STRFTIME): Use new macro.
(jm_FUNC_STRFTIME): New macro. Likewise.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 10 Nov 1997 03:52:47 +0000 |
parents | 57aafe179aa5 |
children | c8965fb41386 |
files | m4/strftime.m4 |
diffstat | 1 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/strftime.m4 +++ b/m4/strftime.m4 @@ -1,4 +1,12 @@ -#serial 3 +#serial 4 + +AC_DEFUN(jm_STRFTIME_PREREQS, +[ + dnl strftime.c uses localtime_r if it exists. Check for it. + AC_CHECK_FUNCS(localtime_r) + dnl FIXME: add tests for everything in strftime.c: e.g., HAVE_BCOPY, + dnl HAVE_TZNAME, HAVE_TZSET, HAVE_TM_ZONE, etc. +]) dnl From Jim Meyering. dnl If you use this macro in a package, you should @@ -8,6 +16,9 @@ dnl AC_DEFUN(jm_FUNC_GNU_STRFTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl + + jm_STRFTIME_PREREQS + AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_CHECK_HEADERS(sys/time.h) @@ -123,3 +134,9 @@ AC_DEFINE_UNQUOTED(strftime, gnu_strftime) fi ]) + +AC_DEFUN(jm_FUNC_STRFTIME, +[ + jm_STRFTIME_PREREQS + AC_REPLACE_FUNCS(strftime) +])