From: Bartosz Golaszewski Date: Fri, 9 Dec 2022 10:46:37 +0000 (+0100) Subject: configure: use C++17 as the only standard X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d4f92a69dd4fc4ec8d9400fa8ab7e819fe133596;p=qemu-gpiodev%2Flibgpiod.git configure: use C++17 as the only standard The entire C++ code base has switched to using the gnu++17 standard so update the check in configure.ac. Signed-off-by: Bartosz Golaszewski --- diff --git a/configure.ac b/configure.ac index 67c4f3c..8e430ea 100644 --- a/configure.ac +++ b/configure.ac @@ -181,7 +181,7 @@ if test "x$with_bindings_cxx" = xtrue then LT_LANG([C++]) # This needs autoconf-archive - AX_CXX_COMPILE_STDCXX_11([ext], [mandatory]) + AX_CXX_COMPILE_STDCXX_17([ext], [mandatory]) if test "x$with_tests" = xtrue then @@ -191,12 +191,6 @@ then AC_LANG_POP([C++]) ]) fi - - if test "x$with_examples" = xtrue - then - # Examples use C++17 features - AX_CXX_COMPILE_STDCXX([17], [ext], [mandatory]) - fi fi AC_ARG_ENABLE([bindings-python],