From: Tom Tromey Date: Sun, 20 Jun 1999 08:01:36 +0000 (+0000) Subject: * automake.in (handle_dist_worker): Remove redundant entries from X-Git-Tag: Release-1-4b~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a21db56c42752e7e708e4eda484d0fffed5ec8e2;p=thirdparty%2Fautomake.git * automake.in (handle_dist_worker): Remove redundant entries from DIST_SUBDIRS. --- diff --git a/ChangeLog b/ChangeLog index 510281b48..d1ef30fdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-06-19 Tom Tromey + * 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. diff --git a/automake.in b/automake.in index a6dad577a..36a0cc65f 100755 --- a/automake.in +++ b/automake.in @@ -2720,9 +2720,18 @@ sub handle_dist_worker $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