diff --git a/config.d/compiling.m4 b/config.d/compiling.m4 index c3f71c5d7..f5603bd25 100644 --- a/config.d/compiling.m4 +++ b/config.d/compiling.m4 @@ -326,7 +326,7 @@ if test "x$leave_cflags_alone" != xyes; then [[bool flag = true;]], [[return flag ? 1 : 0]])], [], - [QF_CC_OPTION(-std=gnu2x)] + [QF_CC_OPTION_TEST(-std=gnu23,[],QF_CC_OPTION(-std=gnu2x))] ) fi AC_MSG_CHECKING([for c23])