build: check for C++ 20 and 2b

C++20 is released.

* configure.ac, m4/bison-cxx-std.m4, tests/atlocal.in,
* tests/local.at: Replace 2a with 20, and add support for 2b.
This commit is contained in:
Akim Demaille
2021-08-12 08:31:38 +02:00
parent db66acc5d0
commit 15ba35a51b
4 changed files with 38 additions and 18 deletions

View File

@@ -60,7 +60,8 @@ fi
: ${CXX11_CXXFLAGS='@CXX11_CXXFLAGS@'}
: ${CXX14_CXXFLAGS='@CXX14_CXXFLAGS@'}
: ${CXX17_CXXFLAGS='@CXX17_CXXFLAGS@'}
: ${CXX2A_CXXFLAGS='@CXX2A_CXXFLAGS@'}
: ${CXX20_CXXFLAGS='@CXX20_CXXFLAGS@'}
: ${CXX2B_CXXFLAGS='@CXX2B_CXXFLAGS@'}
# Whether the compiler supports POSIXLY_CORRECT defined.
: ${C_COMPILER_POSIXLY_CORRECT='@C_COMPILER_POSIXLY_CORRECT@'}