+2000-08-30 Tom Tromey <tromey@cygnus.com>
+
+ Fix for PR automake/72:
+ * automake.in (initialize_per_input): Define `need_link'.
+ (finish_languages): Use need_link.
+ (handle_source_transform): Set need_link if required.
+
2000-08-28 Tom Tromey <tromey@cygnus.com>
* automake.in (yacc, yaccxx, lex, lexxx): Set `derived-autodep'
# If the project is entirely C++ or entirely Fortran 77, don't
# bother with the C stuff. But if anything else creeps in, then use
# it.
- if (! $non_c || scalar keys %suffix_rules > 0)
+ if ($need_link || ! $non_c || scalar keys %suffix_rules > 0)
{
if (! defined $done{'c'})
{
&define_pretty_variable ($one_file . '_OBJECTS', '', @keys);
}
+ # If we want to use `LINK' we must make sure it is defined.
+ if ($linker eq '')
+ {
+ $need_link = 1;
+ }
+
return $linker;
}
# This is set when `handle_dist' has finished. Once this happens,
# we should no longer push on dist_common.
$handle_dist_run = 0;
+
+ # True if we need `LINK' defined. This is a hack.
+ $need_link = 0;
}