Enforce using C++11 under macOS in configure

There is no reason not to turn it on there, as all compilers/compiler
versions supported under this platform support C++11 too.
This commit is contained in:
Vadim Zeitlin 2020-07-05 19:50:24 +02:00
parent c01747555f
commit 232e8677b1
2 changed files with 11 additions and 0 deletions

4
configure vendored
View File

@ -15152,6 +15152,10 @@ if test "$CXX" = "g++" -a "$GXX" != "yes"; then
as_fn_error $? "C++ compiler is needed to build wxWidgets" "$LINENO" 5
fi
if test "$wxUSE_MAC" = 1 -a -z "$wxWITH_CXX"; then
wxWITH_CXX=11
fi
if test -n "$wxWITH_CXX"; then
case "$wxWITH_CXX" in
11)

View File

@ -1098,6 +1098,13 @@ if test "$CXX" = "g++" -a "$GXX" != "yes"; then
AC_MSG_ERROR([C++ compiler is needed to build wxWidgets])
fi
dnl Always use C++11 under macOS, there are no supported compilers not
dnl supporting it there, but don't prevent a latest version of C++ from being
dnl used.
if test "$wxUSE_MAC" = 1 -a -z "$wxWITH_CXX"; then
wxWITH_CXX=11
fi
if test -n "$wxWITH_CXX"; then
dnl AX_CXX_COMPILE_STDCXX requires its VERSION argument to be specified at
dnl autoconf, not run, time.