libtool
[Top][All Lists]
Advanced

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

Re: func_infer_tag() broken on IRIX 6.5


From: Gary V. Vaughan
Subject: Re: func_infer_tag() broken on IRIX 6.5
Date: Wed, 11 Feb 2004 19:02:00 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Albert Chin wrote:
| So this means func_infer_tag() is broken in branch-1-5 because it does
| this:
|   func_infer_tag () {
|       if test -n "$available_tags" && test -z "$tagname"; then
|         CC_quoted=
|   ...
|         # Blanks at the start of $base_compile will cause this to fail
|         # if we don't check for them as well.
|         *)
|           for z in $available_tags; do
|             if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" >
/dev/null; then
|
| So, should I modify the top of ltmain.in from:
|   # The name of this program.
|   progname=`$echo "$0" | ${SED} 's%^.*/%%'`
|   modename="$progname"
| to:
|   # The name of this program.
|   progname=`$echo "$0" | ${SED} 's%^.*/%%'`
|   full_path_progname="$0"
|   modename="$progname"
|
| and then we can use $full_path_progname in func_infer_tag().

Agreed, although I'd suggest argv0 as the variable name.

I think we should also begin cataloging such portability issues, probably in
the autoconf manual... but for now I would like to nail down exactly how much
functionality we should expect of our shell functions (HEAD libtoolize uses
them extensively for example), and why and where other function features fail.

I've used return in a couple of places (twice with an integer return value),
which I fear may break on old platforms.  Otherwise I've assumed that all
shell variables are in global scope, and that positional parameters are
stacked and restored at function call boundaries to an arbitrary nesting
limit.

Removing the returns isn't too hard, but if my other assumptions are bad, then
1.6 is in trouble :-(

Cheers,
        Gary.
- --
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://www.oranda.demon.co.uk
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFAKnwoFRMICSmD1gYRAkvBAJYgOARzhLn2hvxziSSEp4GJ1lh7AKCuz4wK
6GQ9T+KdeWA960500AHkaw==
=dWhB
-----END PGP SIGNATURE-----




reply via email to

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