'l++', 'll', 'lxx');
®ister_language ('asm', '', 0,
's', 'S');
-®ister_language ('f77', 'FLINK', 0,
+®ister_language ('f77', 'F77LINK', 0,
'f', 'for', 'f90');
-®ister_language ('ppf77', 'FLINK', 0,
+®ister_language ('ppf77', 'F77LINK', 0,
'F');
-®ister_language ('ratfor', 'FLINK', 0,
+®ister_language ('ratfor', 'F77LINK', 0,
'r');
&am_conf_line_warning ($filename, $., "automake requires \`AM_PROG_LEX', not \`AC_PROG_LEX'");
}
- if (/AC_PROG_(FC|YACC|RANLIB|CC|CXXCPP|CXX|LEX|AWK|CPP|LN_S)/)
+ if (/AC_PROG_(F77|YACC|RANLIB|CC|CXXCPP|CXX|LEX|AWK|CPP|LN_S)/)
{
$configure_vars{$1} = $filename . ':' . $.;
}
local ($ltcompile, $ltlink) = &libtool_compiler;
&define_configure_variable ('FFLAGS');
- &define_variable ('FCOMPILE', '$(FC) $(AM_FFLAGS) $(FFLAGS)');
- &define_variable ('LTFCOMPILE',
- $ltcompile . '$(FC) $(AM_FFLAGS) $(FFLAGS)')
+ &define_variable ('F77COMPILE', '$(F77) $(AM_FFLAGS) $(FFLAGS)');
+ &define_variable ('LTF77COMPILE',
+ $ltcompile . '$(F77) $(AM_FFLAGS) $(FFLAGS)')
if ($seen_libtool);
- &define_variable ('FLD', '$(FC)');
- &define_variable ('FLINK', $ltlink . '$(FLD) $(AM_FFLAGS) $(FFLAGS) $(LDFLAGS) -o $@');
+ &define_variable ('F77LD', '$(F77)');
+ &define_variable ('F77LINK', $ltlink . '$(F77LD) $(AM_FFLAGS) $(FFLAGS) $(LDFLAGS) -o $@');
local ($ext);
foreach $ext (@f77_list)
{
$output_rules .= ("$ext.o:\n"
- . "\t\$(FCOMPILE) -c \$<\n");
+ . "\t\$(F77COMPILE) -c \$<\n");
# FIXME: Using cygpath should be somehow conditional.
$output_rules .= ("$ext.obj:\n"
- . "\t\$(FCOMPILE) -c `cygpath -w \$<`\n")
+ . "\t\$(F77COMPILE) -c `cygpath -w \$<`\n")
if ($seen_objext);
$output_rules .= ("$ext.lo:\n"
- . "\t\$(LTFCOMPILE) -c \$<\n")
+ . "\t\$(LTF77COMPILE) -c \$<\n")
if ($seen_libtool);
}
- if (! defined $configure_vars{'FC'})
+ if (! defined $configure_vars{'F77'})
{
- &am_error ("Fortran source seen but \`FC' not defined in \`configure.in'");
+ &am_error ("Fortran 77 source seen but \`F77' not defined in \`configure.in'");
}
}
}
local ($ltcompile, $ltlink) = &libtool_compiler;
&define_configure_variable ('FFLAGS');
- &define_variable ('FCOMPILE', '$(FC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)');
- &define_variable ('LTFCOMPILE',
- $ltcompile . '$(FC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)')
+ &define_variable ('F77COMPILE', '$(F77) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)');
+ &define_variable ('LTF77COMPILE',
+ $ltcompile . '$(F77) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)')
if ($seen_libtool);
- &define_variable ('FLD', '$(FC)');
- &define_variable ('FLINK', $ltlink . '$(FLD) $(AM_FFLAGS) $(FFLAGS) $(LDFLAGS) -o $@');
+ &define_variable ('F77LD', '$(F77)');
+ &define_variable ('F77LINK', $ltlink . '$(F77LD) $(AM_FFLAGS) $(FFLAGS) $(LDFLAGS) -o $@');
$output_rules .= ("$ext.o:\n"
- . "\t\$(FCOMPILE) -c \$<\n");
+ . "\t\$(F77COMPILE) -c \$<\n");
# FIXME: Using cygpath should be somehow conditional.
$output_rules .= ("$ext.obj:\n"
- . "\t\$(FCOMPILE) -c `cygpath -w \$<`\n")
+ . "\t\$(F77COMPILE) -c `cygpath -w \$<`\n")
if ($seen_objext);
$output_rules .= ("$ext.lo:\n"
- . "\t\$(LTFCOMPILE) -c \$<\n")
+ . "\t\$(LTF77COMPILE) -c \$<\n")
if ($seen_libtool);
# We also handle the case of preprocessing `.F' files into `.f'
# files.
$output_rules .= ("$ext.f:\n"
- . "\t\$(FCOMPILE) -F \$<\n");
+ . "\t\$(F77COMPILE) -F \$<\n");
- if (! defined $configure_vars{'FC'})
+ if (! defined $configure_vars{'F77'})
{
- &am_error ("Fortran source seen but \`FC' not defined in \`configure.in'");
+ &am_error ("Fortran 77 source seen but \`F77' not defined in \`configure.in'");
}
}
&define_configure_variable ('FFLAGS');
&define_configure_variable ('RFLAGS');
- &define_variable ('RCOMPILE', '$(FC) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)');
+ &define_variable ('RCOMPILE', '$(F77) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)');
&define_variable ('LTRCOMPILE',
- $ltcompile . '$(FC) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)')
+ $ltcompile . '$(F77) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)')
if ($seen_libtool);
- &define_variable ('FLD', '$(FC)');
- &define_variable ('FLINK', $ltlink . '$(FLD) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS) $(LDFLAGS) -o $@');
+ &define_variable ('F77LD', '$(F77)');
+ &define_variable ('F77LINK', $ltlink . '$(F77LD) $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS) $(LDFLAGS) -o $@');
$output_rules .= ("$ext.o:\n"
. "\t\$(RCOMPILE) -c \$<\n");
$output_rules .= ("$ext.f:\n"
. "\t\$(RCOMPILE) -F \$<\n");
- if (! defined $configure_vars{'FC'})
+ if (! defined $configure_vars{'F77'})
{
- &am_error ("Fortran source seen but \`FC' not defined in \`configure.in'");
+ &am_error ("Ratfor source seen but \`F77' not defined in \`configure.in'");
}
}
return 'CXXLINK'
if defined $linkers{'CXXLINK'};
- return 'FLINK'
- if defined $linkers{'FLINK'};
+ return 'F77LINK'
+ if defined $linkers{'F77LINK'};
return 'LINK';
}
Programs, , Particular Program Checks, autoconf, The Autoconf Manual}.
@cvindex AC_PROG_CXX
-@item AC_PROG_FC
+@item AC_PROG_F77
This is required if any Fortran 77 source is included. This macro is
distributed with Autoconf version 2.13 and later. @xref{Particular
Programs, , Particular Program Checks, autoconf, The Autoconf Manual}.
-@cvindex AC_PROG_FC
+@cvindex AC_PROG_F77
@item AC_F77_LIBRARY_LDFLAGS
This is required for programs and shared libraries that are a mixture of
Any package including Fortran 77 code must define the output variable
@samp{F77} in @file{configure.in}; the simplest way to do this is to use
-the @code{AC_PROG_FC} macro (@pxref{Particular Programs, , Particular
+the @code{AC_PROG_F77} macro (@pxref{Particular Programs, , Particular
Program Checks, autoconf, The Autoconf Manual}). @xref{Fortran 77 and
Autoconf}.
@vtable @code
-@item FC
+@item F77
The name of the Fortran 77 compiler.
@item FFLAGS
@item RFLAGS
Any flags to pass to the Ratfor compiler.
-@item FCOMPILE
+@item F77COMPILE
The command used to actually compile a Fortran 77 source file. The file
name is appended to form the complete command line.
@table @file
@item .F
-@code{$(FC) -F $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)}
+@code{$(F77) -F $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)}
@item .r
-@code{$(FC) -F $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)}
+@code{$(F77) -F $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)}
@end table
@table @file
@item .f
-@code{$(FC) -c $(AM_FFLAGS) $(FFLAGS)}
+@code{$(F77) -c $(AM_FFLAGS) $(FFLAGS)}
@item .F
-@code{$(FC) -c $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)}
+@code{$(F77) -c $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)}
@item .r
-@code{$(FC) -c $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)}
+@code{$(F77) -c $(AM_FFLAGS) $(FFLAGS) $(AM_RFLAGS) $(RFLAGS)}
@end table