From: Bruno Haible Date: Sun, 11 May 2025 19:28:31 +0000 (+0200) Subject: bison: Fix configure test failure if POSIXLY_CORRECT is set. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aacc8f33205597d9aacfb39d5a67cef533708c2;p=thirdparty%2Fgnulib.git bison: Fix configure test failure if POSIXLY_CORRECT is set. Reported by Arsen Arsenović. * m4/bison.m4 (gl_PROG_BISON): In the bison invocation, put all options before the non-option arguments. --- diff --git a/ChangeLog b/ChangeLog index 2ddb9c3ba9..5ef6e6a6d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,13 @@ +2025-05-11 Bruno Haible + + bison: Fix configure test failure if POSIXLY_CORRECT is set. + Reported by Arsen Arsenović. + * m4/bison.m4 (gl_PROG_BISON): In the bison invocation, put all options + before the non-option arguments. + 2025-05-11 Collin Funk - fts: Make sure __GNU_PREREQ is defined (regression yesterday). + fts: Make sure __GNUC_PREREQ is defined (regression yesterday). Reported by in . * lib/fts_.h (__GNUC_PREREQ): Define macro on clang or if the system diff --git a/m4/bison.m4 b/m4/bison.m4 index 9f0df25eed..170210bca8 100644 --- a/m4/bison.m4 +++ b/m4/bison.m4 @@ -1,5 +1,5 @@ # bison.m4 -# serial 10 +# serial 11 dnl Copyright (C) 2002-2006, 2008-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -56,7 +56,7 @@ _ACEOF AC_MSG_CHECKING([for bison $2 or newer]) ac_prog_version=`$$1 --version 2>&1 | sed -n 's/^.*GNU Bison.* \([[0-9]]*\.[[0-9.]]*\).*$/\1/p'` : ${ac_prog_version:='v. ?.??'} - if $$1 conftest.y -o conftest.c 2>/dev/null; then + if $$1 -o conftest.c conftest.y 2>/dev/null; then ac_prog_version="$ac_prog_version, ok" ac_verc_fail=no else