Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1101:57aafe179aa5
(jm_FUNC_MKTIME): Check for localtime_r.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 10 Nov 1997 03:52:33 +0000 |
parents | acfc73794e9b |
children | 921bbc045898 |
files | m4/jm-mktime.m4 |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/jm-mktime.m4 +++ b/m4/jm-mktime.m4 @@ -8,6 +8,10 @@ dnl AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AM_FUNC_MKTIME])dnl + + dnl mktime.c uses localtime_r if it exists. Check for it. + AC_CHECK_FUNCS(localtime_r) + if test $am_cv_func_working_mktime = no; then AC_DEFINE_UNQUOTED(mktime, rpl_mktime) fi