On Thu, 9 Oct 2003, Sander Niemeijer wrote:
I can understand keeping F77/FFLAGS/FLIBS/AC_PROG_F77 for backwards
compatibility. However, the current approach is to keep using these
macros and variables for f77 and use the new FC* ones only for f90 and
upwards. My question is whether it is not possible to also include f77
in the FC approach?
It depends on what you mean. If you have F77 code that is compatible
the latest Fortran standards, sure, you can compile it with $FC.
- Only allow the user to use either AC_PROG_F77 or AC_PROG_FC (the
or the new way of doing fortran).
I think you are missing the point here. The reason for keeping F77,
FFLAGS, etcetera, is not just for compatibility with old Makefile.in
files. The reason is that Fortran 77 and Fortran 9x are essentially
different languages, and a number of people need to compile both in the
same project, using separate compilers and flags. (This issue came up
whenever Fortran 9x support was discussed on the autoconf mailing
So, it is essential that a user be able to call both AC_PROG_F77 and
AC_PROG_FC simultaneously. This was the design goal (otherwise,
AC_PROG_FC would just be an alias for AC_PROG_F77.)