From: Tom Tromey Date: Fri, 9 Aug 1996 16:52:54 +0000 (+0000) Subject: Bug fixes X-Git-Tag: Release-1-1c~12 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f389681b75b1f735d39671d1a0f0128878e04ce6;p=automake.git Bug fixes --- diff --git a/ChangeLog b/ChangeLog index 7df76ab3..5624fc71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ Fri Aug 9 09:18:46 1996 Tom Tromey + * automake.in (handle_scripts): Fixed call to + am_primary_prefixes. + (handle_libraries): Better error message when AC_PROG_RANLIB + required. + * automake.in (handle_libraries): Canonicalize library name. Test canon4.test. * library.am (lib@LIBRARY@.a): Use @XLIBRARY@ where appropriate. diff --git a/automake.in b/automake.in index fff70261..86a18feb 100755 --- a/automake.in +++ b/automake.in @@ -800,23 +800,28 @@ sub handle_libraries 'lib', 'pkglib', 'noinst', 'check'); return if ! @liblist; + local (%valid) = &am_primary_prefixes ('LIBRARIES', 'lib', 'pkglib', + 'noinst', 'check'); if (! $seen_ranlib) { - # FIXME need am_line_error here. But we don't know which - # variable exists. Must add a loop... No. Must have - # am_install_var return a hash. Otherwise the user could add - # install directories that we'd never find. - &am_error ("library requires either \`AC_PROG_RANLIB' or `AM_PROG_LIBTOOL' in configure.in"); - # Only get this error once. - $seen_ranlib = 1; + local ($key); + foreach $key (keys %valid) + { + if (&variable_defined ($key . '_LIBRARIES')) + { + &am_line_error ($key . '_LIBRARIES', "library requires either \`AC_PROG_RANLIB' or `AM_PROG_LIBTOOL' in configure.in"); + # Only get this error once. + $seen_ranlib = 1; + last; + } + } } # Generate _LIBFILES variables. Too bad we can't do this in # am_install_var. local ($onedir, $onelib); local (@outlist); - foreach $onedir (&am_primary_prefixes ('LIBRARIES', 'lib', 'pkglib', - 'noinst', 'check')) + foreach $onedir (keys %valid) { if (&variable_defined ($onedir . '_LIBRARIES')) { @@ -904,7 +909,7 @@ sub handle_scripts # Set $scripts_installed if appropriate. Make sure we only find # scripts which are actually installed -- this is why we can't # simply use the return value of am_install_var. - local (%valid) = &am_primary_prefixes ('scripts', 'bin', 'sbin', + local (%valid) = &am_primary_prefixes ('SCRIPTS', 'bin', 'sbin', 'libexec', 'pkgdata', 'noinst', 'check'); local ($key);