X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B29FBDC.9000108@gmail.com>
Date: Thu, 17 Dec 2009 09:37:32 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: libtool: link: warning
References: <988146.7754.qm@web25504.mail.ukl.yahoo.com>
In-Reply-To: <988146.7754.qm@web25504.mail.ukl.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Marco Atzeri wrote:

> not sure but I suspect 
> -----------------------------------------------------------
>   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
> BEGIN {RS=" "; FS="/|\n";} {
>   lt_foo="";
>   lt_count=0;
>   for (lt_i = NF; lt_i > 0; lt_i--) {
>     if ($lt_i != "" && $lt_i != ".") {
>       if ($lt_i == "..") {
>         lt_count++;
>       } else {
>         if (lt_count == 0) {
>           lt_foo="/" $lt_i lt_foo;
>         } else {
>           lt_count--;
>         }
>       }
>     }
>   }
>   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
>   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
> }'`
> ------------------------------------------------

  Is that the original m4 file, or how it gets expanded in the generated
configure script?

> on
>   
> if (lt_foo != "") { lt_freq[[lt_foo]]++; }
> if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
> 
> awk states sintax error due to double [

  Yeah, it would.  That's some sort of changequote problem.

    cheers,
      DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

