------- Comment #12 from davek at gcc dot gnu dot org 2009-09-30 21:25 -------
Bad news: the patch doesn't work. I edited the generated config.status so that it would use "bash -x" when reinvoking configure as part of --recheck, and it seems that although the code goes through the switch and clears FC as you intended, FC is then reinitialised moments later, during the execution of AC_PROG_FC(gfortran): + MAINT='#' + case $GFORTRAN in + FC= + ac_ext=f + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=no + test -n i686-pc-cygwin- + for ac_prog in gfortran + set dummy i686-pc-cygwin-gfortran + ac_word=i686-pc-cygwin-gfortran + printf '%s\n' 'configure:11358: checking for i686-pc-cygwin-gfortran' + printf %s 'checking for i686-pc-cygwin-gfortran... ' checking for i686-pc-cygwin-gfortran... + test set = set + : + printf %s '(cached) ' (cached) + FC=' -B/opt/gcc-tools/i686-pc-cygwin/bin/ -B/opt/gcc-tools/i686-pc-cygwin/lib/ -isystem /opt/gcc-tools/i686-pc-cygwin/include -isystem /opt/gcc-tools/i686-pc-cygwin/sys-include ' and this is the value that FC ends up being assigned in the generated Makefile. I'll attach the full log file in a moment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418