diff options
author | Tom Tromey <tromey@redhat.com> | 1996-10-22 05:43:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1996-10-22 05:43:55 +0000 |
commit | ef36259a5bd137457c95b5b428d4b02f0176d8ad (patch) | |
tree | 4ef7317d001c4abab9a545471b16916f31b395af /automake.in | |
parent | 8ca346d3ac6c53d0c9a2316cef7fd11cf271c92d (diff) | |
download | automake-ef36259a5bd137457c95b5b428d4b02f0176d8ad.tar.gz |
Hacky library fixup
Diffstat (limited to 'automake.in')
-rwxr-xr-x | automake.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/automake.in b/automake.in index 7e8a4dc11..9e21a6d61 100755 --- a/automake.in +++ b/automake.in @@ -1134,7 +1134,20 @@ sub handle_libraries @outlist = (); foreach $onelib (&variable_value_as_list ($onedir . '_LIBRARIES')) { - push (@outlist, 'lib' . $onelib . '.a'); + # 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); } |