automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

allow convenient library in subdirectory


From: Alexandre Duret-Lutz
Subject: allow convenient library in subdirectory
Date: 09 Jul 2001 11:04:49 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Hi,

This should prevent Automake from complaining on

noinst_LIBRARIES= lvl/libhlvl.a

with "lvl/libhlvl.a is not a standard library name".

2001-07-08  Alexandre Duret-Lutz  <address@hidden>

        * automake.in (handle_libraries): Allow libraries to lie in
        a subdirectory by constraining only the basename to start
        with 'lib', not the whole path.

--- automake.in.old     Sun Jul  8 21:51:23 2001
+++ automake.in Sun Jul  8 21:52:24 2001
@@ -2412,7 +2412,7 @@
     foreach my $onelib (@liblist)
     {
        # Check that the library fits the standard naming convention.
-       if ($onelib !~ /^lib.*\.a$/)
+       if ($onelib !~ m%^(?:.*/)?lib[^/]*\.a$%)
        {
            # FIXME should put line number here.  That means mapping
            # from library name back to variable name.

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]