Usually, in config.log file consist all information about configure's output. So, you might look where Fortran 77 were tested and found what was a problem. Probably, you had set a 'wrong' compilers flags or 'wrong' fortran compiler.