We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbde48 commit 7829685Copy full SHA for 7829685
configure.ac
@@ -61,8 +61,20 @@ case $host in
61
lt_cv_deplibs_check_method="pass_all"
62
;;
63
esac
64
-dnl Require C++11 compiler (no GNU extensions)
65
-AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
+
+AC_ARG_ENABLE([c++17],
66
+ [AS_HELP_STRING([--enable-c++17],
67
+ [enable compilation in c++17 mode (disabled by default)])],
68
+ [use_cxx17=$enableval],
69
+ [use_cxx17=no])
70
71
+dnl Require C++11 or C++17 compiler (no GNU extensions)
72
+if test "x$use_cxx17" = xyes; then
73
+ AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
74
+else
75
+ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
76
+fi
77
78
dnl Check if -latomic is required for <std::atomic>
79
CHECK_ATOMIC
80
0 commit comments