Autotools: use C++17 mode when available

This commit is contained in:
Jean-Marc Lasgouttes 2020-12-10 10:55:09 +01:00
parent 2d2e2f1c6d
commit bf28a2677c

View File

@ -270,8 +270,8 @@ AC_REQUIRE([AC_PROG_CXXCPP])
### We might want to force the C++ standard.
AC_ARG_ENABLE(cxx-mode,
AS_HELP_STRING([--enable-cxx-mode],[choose C++ standard (default: 14, then 11)]),,
[enable_cxx_mode={14,11}]
AS_HELP_STRING([--enable-cxx-mode],[choose C++ standard (default: 17, 14, then 11)]),,
[enable_cxx_mode={17,14,11}]
)
AC_LANG_PUSH(C++)