On Thu, Oct 5, 2023, at 4:31 PM, Niels Möller wrote: > I still intend GNU Nettle to work with a c89 compiler ... > If necessary, options are added to CC to enable support for ISO > Standard C features with extensions, preferring the newest edition of > the C standard that is supported. ... > Is there some way of telling autoconf to be less helpful, and attempt to > add options only when needed to enable some particular version (in my > case c89, less conservative projects might want to target c99 in the > same way), but not add anything to enable even later language features? This is currently not possible, but you are not the only person who has asked for it to be made possible, and it's on our near-future list. However, none of the core Autoconf developers currently have time to work on it. Might you be willing to put some time into it? I think something like this in configure.ac AC_C_STANDARD_VERSION([c89]) AC_PROG_CC would probably fit best with what we have now. zw