Not sure the world's quite ready for that; lots of people still build
with older compilers.
Of course. That's not what I'm proposing at all. Sorry for being
unclear.
What I see is that autoconf now does, effectively,
if the compiler accepts -std=gnu23 or =c23,
then use that option
That is, forcibly prefer C23.
What I'm suggesting is *not* to switch to C23 via such options if the
result does not define __STDC__VERSION__ to the actual standard value
202311L. Meaning, it only has experimental support for C23. Meaning,
it's a huge morass to try to support it in the sources.
Instead of using such partial C23, simply fall back to using the
compiler's own default, just as you do if there is no gnu23/c23 option
at all.
For the same reason Autoconf preferred C89 when it was the latest
standard, or C99 when it was the latest.
Ah. My impression was that autoconf let the compiler use its own default
in the past, not ever forcibly preferring C89 or C99 in the way it
forcibly prefers C23 now. But ok, I can believe I'm wrong. -k