]> sourceware.org Git - automake.git/commitdiff
Bug fixes
authorTom Tromey <tromey@redhat.com>
Fri, 9 Aug 1996 16:52:54 +0000 (16:52 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 9 Aug 1996 16:52:54 +0000 (16:52 +0000)
ChangeLog
automake.in

index 7df76ab379e17004bf1a3eedca900a28616f4425..5624fc71a988ecd088a8469bce6ddf5b359a8dca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 Fri Aug  9 09:18:46 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
+       * 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.
index fff7026141b44935a56b5aac6ddd43d73f6675fe..86a18feb7d29a0c014ff625f4c4ce65b3983914c 100755 (executable)
@@ -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);
This page took 0.037543 seconds and 5 git commands to generate.