+2001-10-15 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&variable_conditions): Be deterministic and Perl
+ version independent: sort the result.
+ (&variable_output, &variable_pretty_output): Sort all the @conds,
+ not only when defaulted.
+ * tests/cond3.test: Adjust.
+
2001-10-15 Akim Demaille <akim@epita.fr>
* automake.in: Formatting changes.
{
my ($var) = @_;
my @conds = keys %{$var_value{$var}};
- return @conds;
+ return sort by_condition @conds;
}
{
my ($var, @conds) = @_;
- @conds = sort by_condition keys %{$var_value{$var}}
+ @conds = keys %{$var_value{$var}}
unless @conds;
$output_vars .= $var_comment{$var}
if defined $var_comment{$var};
- foreach my $cond (@conds)
+ foreach my $cond (sort by_condition @conds)
{
my $val = $var_value{$var}{$cond};
my $equals = $var_type{$var} eq ':' ? ':=' : '=';
{
my ($var, @conds) = @_;
- @conds = sort by_condition keys %{$var_value{$var}}
+ @conds = keys %{$var_value{$var}}
unless @conds;
$output_vars .= $var_comment{$var}
if defined $var_comment{$var};
- foreach my $cond (@conds)
+ foreach my $cond (sort by_condition @conds)
{
my $val = $var_value{$var}{$cond};
my $equals = $var_type{$var} eq ':' ? ':=' : '=';
}' Makefile.in >produced
cat >expected << 'EOF'
-@ONE_FALSE@am__objects_1 =
@ONE_TRUE@am__objects_1 = one.$(OBJEXT)
-@TWO_FALSE@am__objects_2 =
+@ONE_FALSE@am__objects_1 =
@TWO_TRUE@am__objects_2 = two.$(OBJEXT)
+@TWO_FALSE@am__objects_2 =
@THREE_TRUE@am__objects_3 = three.$(OBJEXT)
@THREE_FALSE@am__objects_3 =
am_targ_OBJECTS = $(am__objects_1) $(am__objects_2) $(am__objects_3)