From 138d244dda3cb9a1153d15d51a974a937bf31c27 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 7 Oct 2015 23:00:00 +0000 Subject: [PATCH] gl_FUNC_MKTIME_INTERNAL: do not insist on providing __mktime_internal Hack gl_FUNC_MKTIME_INTERNAL so that absence of __mktime_internal won't result to enforced mktime replacement. Since timegm is universally available, nobody actually needs __mktime_internal, and at the same time forced WANT_MKTIME_INTERNAL=1 causes further breakage. --- m4/mktime.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/mktime.m4 b/m4/mktime.m4 index 4b3e399be..e372ceed0 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -289,7 +289,7 @@ AC_DEFUN([gl_FUNC_MKTIME_INTERNAL], [ ], [dnl mktime works but it doesn't export __mktime_internal, dnl so we need to substitute our own mktime implementation. - WANT_MKTIME_INTERNAL=1 + test -z "$REALLY_NEED_MKTIME_INTERNAL" || WANT_MKTIME_INTERNAL=1 AC_DEFINE([NEED_MKTIME_INTERNAL], [1], [Define if the compilation of mktime.c should define 'mktime_internal'.]) ])