Fix search for a good c++ compiler

Bash evaluates "c++{17,14}" as "c++17 c++14", but "c++-{17}" as "c++{17}".
This commit is contained in:
Jean-Marc Lasgouttes 2024-11-04 11:58:52 +01:00
parent 1ef2f135d2
commit 2c694ccc2b

View File

@ -232,7 +232,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: 17)]),,
[enable_cxx_mode={17}]
dnl put modes in curly braces if there are several of them (ex. {20,17}
[enable_cxx_mode=17]
)
AC_LANG_PUSH(C++)