https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865
Alexandre Oliva <aoliva at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org --- Comment #44 from Alexandre Oliva <aoliva at gcc dot gnu.org> --- All configure --with-* and --enable-* options are stored in shell variables named with_* and enable_*, respectively, so it's just a matter of testing for yes (for --enable) or rather for no (for explicit --disable). Look for e.g. --enable-initfini-array around line 1932 in $top_srcdir/gcc/configure.ac, or with_avrlibc around line 1495 in gcc/config.gcc; you can do something similar in gcc/config.host, without any explicit argument passing, because the config.{host,gcc} files are sourced by configure, so they inherit all shell variables.