From: Paul Eggert Date: Sun, 27 Sep 2020 02:18:08 +0000 (-0700) Subject: extensions: require AC_GNU_SOURCE only for <=2.63 X-Git-Tag: v1.0~3600 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6742a5d3394cd39f18006b89f6c8cd43078af0e1;p=gnulib.git extensions: require AC_GNU_SOURCE only for <=2.63 Problem reported by Gavin Smith in: https://lists.gnu.org/r/autoconf/2020-09/msg00012.html * m4/extensions.m4 ([gl_USE_SYSTEM_EXTENSIONS]): Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it shouldn’t be needed after that, and Autoconf 2.70 complains about it being obsolete. --- diff --git a/ChangeLog b/ChangeLog index d5cabb4878..8c06171aa1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2020-09-26 Paul Eggert + + extensions: require AC_GNU_SOURCE only for <=2.63 + Problem reported by Gavin Smith in: + https://lists.gnu.org/r/autoconf/2020-09/msg00012.html + * m4/extensions.m4 ([gl_USE_SYSTEM_EXTENSIONS]): + Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it + shouldn’t be needed after that, and Autoconf 2.70 complains about + it being obsolete. + 2020-09-26 Bruno Haible regex-tests: Make test more robust. diff --git a/m4/extensions.m4 b/m4/extensions.m4 index d7c95effda..22fdb03e31 100644 --- a/m4/extensions.m4 +++ b/m4/extensions.m4 @@ -1,4 +1,4 @@ -# serial 18 -*- Autoconf -*- +# serial 19 -*- Autoconf -*- # Enable extensions on systems that normally disable them. # Copyright (C) 2003, 2006-2020 Free Software Foundation, Inc. @@ -183,7 +183,7 @@ AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. - AC_REQUIRE([AC_GNU_SOURCE]) + m4_version_prereq([2.64], [], [AC_REQUIRE([AC_GNU_SOURCE])]) AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) ])