2001-05-08 Tom Tromey <tromey@redhat.com>
+ * automake.in (subst): New sub.
+ (handle_languages): Use it.
+ (output_lex_build_rule): Likewise; also use _am_quote.
+ (check_libobjs_sources): Likewise.
+ (make_paragraphs): Use subst.
+
* automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
problem.
return @res;
}
+# subst ($TEXT)
+# -------------
+# Return a configure-style substitution using the indicated text.
+# We do this to avoid having the substitutions directly in automake.in;
+# when we do that they are sometimes removed and this causes confusion
+# and bugs.
+sub subst ($)
+{
+ my ($text) = @_;
+ return '@' . $text . '@';
+}
################################################################
$output_rules .= "\n";
foreach my $iter (@deplist)
{
- # The strange concatentation is used to avoid
- # substitutions from our own configure.
- $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ @_am_quote@'
- . $iter . '@_am_quote@' . "\n");
+ $output_rules .= (subst ('AMDEP_TRUE')
+ . subst ('_am_include')
+ . ' '
+ . subst ('_am_quote')
+ . $iter
+ . subst ('_am_quote')
+ . "\n");
}
$output_rules .= &file_contents ('depend');
$output_rules .= "\n";
foreach my $iter (@deplist)
{
- # The strange concatentation is used to avoid
- # substitutions from our own configure.
- $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ '
- . $iter . "\n");
+ $output_rules .= (subst ('AMDEP_TRUE')
+ . subst ('_am_include')
+ . ' '
+ . subst ('_am_quote')
+ . $iter
+ . subst ('_am_quote')
+ . "\n");
}
$output_rules .= &file_contents ('depend');
$output_rules .= "\n";
foreach my $iter (@deplist)
{
- # The strange concatentation is used to avoid
- # substitutions from our own configure.
- $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ '
- . $iter . "\n");
+ $output_rules .= (subst ('AMDEP_TRUE')
+ . subst ('_am_include')
+ . ' '
+ . subst ('_am_quote')
+ . $iter
+ . subst ('_am_quote')
+ . "\n");
}
$output_rules .= &file_contents ('depend');
'CYGNUS' => $cygnus_mode,
'MAINTAINER-MODE'
- => $seen_maint_mode ? '@MAINTAINER_MODE_TRUE@' : '',
+ => $seen_maint_mode ? subst ('MAINTAINER_MODE_TRUE') : '',
'SHAR' => $options{'dist-shar'} || 0,
'BZIP2' => $options{'dist-bzip2'} || 0,