This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: libtool: link: warning
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com
- Date: Thu, 17 Dec 2009 14:47:38 +0000 (GMT)
- Subject: Re: libtool: link: warning
--- Gio 17/12/09, Charles Wilson <cygwin@cwilson.fastmail.fm> ha scritto:
> Dave Korn wrote:
> > 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?
original m4.
I forgot the [[ need for m4
>
> When? *I* build it, the configure script has this:
> ? if (lt_foo != "") { lt_freq[lt_foo]++; }
> ? if (lt_freq[lt_foo] == 1) { print lt_foo; }
> because the snippet above /is/ from the original .m4 file.
> I'm not an
> awk expert, but it looks ok to me.
>
> >> 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.
>
> Only if Marco's configure script looks like the .m4 and
> actually still
> has double-[.
>
only single. So I was looking in the the wrong place :-(
> --
> Chuck
Marco
--
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