|
|
@@ -31,13 +31,14 @@ AC_TRY_LINK([], [], |
|
|
|
AC_MSG_ERROR([[C++ compiler cannot link executables]])]) |
|
|
|
AC_LANG_POP(C++) |
|
|
|
|
|
|
|
dnl C++11 mode. Checked early so that we don't run into surprises. |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++11, |
|
|
|
[AM_CXXFLAGS="${AM_CXXFLAGS} -std=c++11" |
|
|
|
CXXFLAGS="${CXXFLAGS} -std=c++11"]) |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++0x, |
|
|
|
[AM_CXXFLAGS="${AM_CXXFLAGS} -std=c++0x" |
|
|
|
CXXFLAGS="${CXXFLAGS} -std=c++0x"]) |
|
|
|
dnl C++11 and later mode. Checked early so that we don't run into surprises. |
|
|
|
version_flag='' |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++0x, [version_flag='-std=c++0x']) |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++11, [version_flag='-std=c++11']) |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++14, [version_flag='-std=c++14']) |
|
|
|
LOL_TRY_CXXFLAGS(-std=c++17, [version_flag='-std=c++17']) |
|
|
|
AM_CXXFLAGS="${AM_CXXFLAGS} ${version_flag}" |
|
|
|
CXXFLAGS="${CXXFLAGS} ${version_flag}" |
|
|
|
|
|
|
|
AC_LANG_PUSH(C++) |
|
|
|
AC_MSG_CHECKING(for C++11 enum class support) |
|
|
|