+2001-05-07 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&handle_languages): Don't use $comp.
+
+
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Merge the two loops over
# Generate the appropriate rules for this extension. If
# dependency tracking was requested, and this extension
# supports it, then we don't generate the rule here.
- my $comp = '';
-
if ($use_dependencies && $lang->autodep ne 'no')
{
- # Don't generate the rule, but still generate the variables.
- if (defined $lang->compile)
- {
- $comp = $lang->compile
- }
-
my $compile = '$(' . $pfx . 'COMPILE)';
my $ltcompile = '$(LT' . $pfx . 'COMPILE)';
my %transform = (%transform,
}
elsif (defined $lang->compile)
{
- $comp = $lang->compile;
-
my $outarg = $lang->output_arg;
my $ltoutarg = '';
if ($lang->flags eq 'CFLAGS')
# People linking Java code to Fortran code deserve pain.
$needs_c ||= ! $lang->pure;
- if ($comp ne '')
+ if ($lang->compile)
{
- &define_compiler_variable ($lang->compiler, $ltcompile, $comp);
+ &define_compiler_variable ($lang->compiler,
+ $ltcompile, $lang->compile);
}
+
# The compiler's flag must be a configure variable.
if (defined $lang->flags)
{
# Call the finisher.
$lang->finish;
-
-
}
# If the project is entirely C++ or entirely Fortran 77 (i.e., 1