Thanks for tracking this down.  In fact the problem is that I'm not
sure what should be done out of the PROLOGUE in the case of
AC_LANG_PROGRAM(Fortran 77).  Maybe you can answer me.

For C for instance, we have:

# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
# --------------------------------------
m4_define([AC_LANG_PROGRAM(C)],
[$1
int
main ()
{
dnl Do *not* indent the following line: there may be CPP directives.
dnl Don't move the `;' right after for the same reason.
$2
  ;
  return 0;
}])


but for Fortran 77, $1 was ignored :(

# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
[      program main
$2
      end])


So, what should it be?

[      program main
$1
$2
      end]

or

[$1
      program main
$2
      end]

?

Reply via email to