1999-06-19 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_dist_worker): Remove redundant entries from
+ DIST_SUBDIRS.
+
* automake.in (handle_lib_objects_cond): Better error message when
unrecognized option passed in LDADD.
$dist_subdir_name = 'DIST_SUBDIRS';
if (! &variable_defined ('DIST_SUBDIRS'))
{
- &define_pretty_variable ('DIST_SUBDIRS', '',
- &variable_value_as_list ('SUBDIRS',
- 'all'));
+ local (@full_list) = &variable_value_as_list ('SUBDIRS',
+ 'all');
+ local (@ds_list, %uniq, $iter);
+ foreach $iter (@full_list)
+ {
+ if (! defined $uniq{$iter})
+ {
+ $uniq{$iter} = 1;
+ push (@ds_list, $iter);
+ }
+ }
+ &define_pretty_variable ('DIST_SUBDIRS', '', @ds_list);
}
}
else