AC_SYS_LARGEFILE now widens time_t if possible
commitf6657256a37da44c987c04bf9cd75575dfca3b60
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Aug 2022 21:20:41 +0000 (8 14:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Aug 2022 18:07:03 +0000 (9 11:07 -0700)
tree2b94809859a2da88e72a7bf96827f8f6fe3454d6
parent2b4b96d9823101cd2b9bc294181c65a1ae12002e
AC_SYS_LARGEFILE now widens time_t if possible

This change is taken from Gnulib, and is needed for apps like GDB.
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_TEST_INCLUDES)
(_AC_SYS_YEAR2038, AC_SYS_YEAR2038): New macros, taken (with
renaming) from Gnulib.
(_AC_SYS_LARGEFILE_MACRO_VALUE): #undef before #define.
(AC_SYS_LARGEFILE): Prefer AS_IF and AS_CASE to doing it by hand.
Widen time_t if possible, too.  Define  __MINGW_USE_VC2005_COMPAT
early if needed.
NEWS
doc/autoconf.texi
lib/autoconf/specific.m4