build: check for C++98 and 03 like the others

* m4/bison-cxx-std.m4 (BISON_CXX_COMPILE_STDCXX_98)
(BISON_CXX_COMPILE_STDCXX_03): New.
* configure.ac: Use them.
This commit is contained in:
Akim Demaille
2018-09-23 08:58:48 +02:00
parent 5649888686
commit 41ded58286
2 changed files with 58 additions and 3 deletions

View File

@@ -73,8 +73,8 @@ AC_CACHE_CHECK([whether pragma GCC diagnostic push works],
AC_LANG_PUSH([C++])
gl_WARN_ADD([-fno-exceptions], [NO_EXCEPTIONS_CXXFLAGS])
gl_WARN_ADD([-std=c++98], [CXX98_CXXFLAGS])
gl_WARN_ADD([-std=c++03], [CXX03_CXXFLAGS])
BISON_CXX_COMPILE_STDCXX_98
BISON_CXX_COMPILE_STDCXX_03
BISON_CXX_COMPILE_STDCXX_11
BISON_CXX_COMPILE_STDCXX_14
BISON_CXX_COMPILE_STDCXX_17