You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: C++14 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.">&5
5652
-
$as_echo"$as_me: WARNING: C++14 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.">&2;}
5650
+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
5651
+
{ $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: C++17 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.">&5
5652
+
$as_echo"$as_me: WARNING: C++17 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.">&2;}
Copy file name to clipboardExpand all lines: configure.ac
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -194,34 +194,34 @@ PKG_CHECK_MODULES(zlib,
194
194
[CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
195
195
LIBS="$zlib_LIBS $LIBS"])
196
196
197
-
# Check if already in >= C++14 mode because of the flags returned by one of the above packages
197
+
# Check if already in >= C++17 mode because of the flags returned by one of the above packages
198
198
TMP_CXXFLAGS="$CXXFLAGS"
199
199
CXXFLAGS=""
200
-
AC_MSG_CHECKING([if compiler defaults to C++14 or later mode])
201
-
AC_COMPILE_IFELSE([DETECT_CPP14_PROGRAM()],
200
+
AC_MSG_CHECKING([if compiler defaults to C++17 or later mode])
201
+
AC_COMPILE_IFELSE([DETECT_CPP17_PROGRAM()],
202
202
[AC_MSG_RESULT([yes])
203
-
QBT_CXX14_FOUND="yes"],
203
+
QBT_CXX17_FOUND="yes"],
204
204
[AC_MSG_RESULT([no])
205
-
QBT_CXX14_FOUND="no"])
205
+
QBT_CXX17_FOUND="no"])
206
206
207
-
# In case of no, check if the compiler can support at least C++14
207
+
# In case of no, check if the compiler can support at least C++17
208
208
# and if yes, enable it leaving a warning to the user
209
-
AS_IF([test "x$QBT_CXX14_FOUND" = "xno"],
210
-
[AC_MSG_CHECKING([if compiler supports C++14])
211
-
CXXFLAGS="-std=c++14"
212
-
AC_COMPILE_IFELSE([DETECT_CPP14_PROGRAM()],
209
+
AS_IF([test "x$QBT_CXX17_FOUND" = "xno"],
210
+
[AC_MSG_CHECKING([if compiler supports C++17])
211
+
CXXFLAGS="-std=c++17"
212
+
AC_COMPILE_IFELSE([DETECT_CPP17_PROGRAM()],
213
213
[AC_MSG_RESULT([yes])
214
-
AC_MSG_CHECKING([if C++14 is disabled by the set compiler flags])
214
+
AC_MSG_CHECKING([if C++17 is disabled by the set compiler flags])
215
215
# prepend the flag so it won't override conflicting user defined flags
216
-
CXXFLAGS="-std=c++14 $TMP_CXXFLAGS"
217
-
AC_COMPILE_IFELSE([DETECT_CPP14_PROGRAM()],
216
+
CXXFLAGS="-std=c++17 $TMP_CXXFLAGS"
217
+
AC_COMPILE_IFELSE([DETECT_CPP17_PROGRAM()],
218
218
[AC_MSG_RESULT([no])
219
-
QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++14"
220
-
AC_MSG_WARN([C++14 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.])],
219
+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
220
+
AC_MSG_WARN([C++17 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors.])],
221
221
[AC_MSG_RESULT([yes])
222
-
AC_MSG_ERROR([The compiler supports C++14 but the user or a dependency has explicitly enabled a lower mode.])])],
222
+
AC_MSG_ERROR([The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode.])])],
223
223
[AC_MSG_RESULT([no])
224
-
AC_MSG_ERROR([A compiler supporting C++14 is required.])])
224
+
AC_MSG_ERROR([A compiler supporting C++17 is required.])])
0 commit comments