- # Generate _LIBFILES variables. Too bad we can't do this in
- # am_install_var.
- local ($onedir, $onelib);
- local (@outlist);
- local (@libfiles_list);
- foreach $onedir (keys %valid)
- {
- if (&variable_defined ($onedir . '_LIBRARIES'))
- {
- @outlist = ();
- foreach $onelib (&variable_value_as_list ($onedir . '_LIBRARIES'))
- {
- # FIXME: configure substitutions are just preserved.
- # So your configure.in must say MYLIB=libfoo.a instead
- # of MYLIB=foo. Otherwise, you end up with an entry
- # like lib@MYLIB@.a in LIBFILES, which can turn into
- # "lib.a" -- major lossage. Something better must be
- # done here.
- if (/^\@.*\@$/)
- {
- push (@outlist, $onelib);
- }
- else
- {
- push (@outlist, 'lib' . $onelib . '.a');
- }
- }
- &define_pretty_variable ($onedir . '_LIBFILES', @outlist);
- }
-
- push (@libfiles_list, '$(' . $onedir . '_LIBFILES)')
- unless $onedir eq 'EXTRA';
- }
- push (@all, '$(LIBFILES)');
-