From a2051bf912d8e96e5b7407fde237cfbdc590ce1e Mon Sep 17 00:00:00 2001 From: Roumen Petrov Date: Sun, 26 Feb 2012 18:36:27 +0200 Subject: [PATCH] check for gmtime - on mingw* hosts will enable date-time function --- config.h.in | 3 +++ configure.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 2f9f973..9cadf4b 100644 --- a/config.h.in +++ b/config.h.in @@ -36,6 +36,9 @@ /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY +/* Define to 1 if you have the `gmtime' function. */ +#undef HAVE_GMTIME + /* Define to 1 if you have the `gmtime_r' function. */ #undef HAVE_GMTIME_R diff --git a/configure.in b/configure.in index e5e7c81..2361694 100644 --- a/configure.in +++ b/configure.in @@ -244,7 +244,7 @@ AC_CHECK_FUNC(fabs, , AC_CHECK_LIB(m, fabs, AC_CHECK_FUNCS(gettimeofday) -AC_CHECK_FUNCS(mktime localtime localtime_r asctime time gmtime_r ftime) +AC_CHECK_FUNCS(mktime localtime localtime_r asctime time gmtime gmtime_r ftime) dnl Checking the standard string functions availability AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,, -- 2.7.4