autoconf
[Top][All Lists]
Advanced

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

Re: iterating over arguments


From: Eric Blake
Subject: Re: iterating over arguments
Date: Mon, 14 Sep 2009 06:07:48 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

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

According to Sam Steingold on 9/12/2009 10:16 PM:
> 
> replacing "m4_toupper" with "upcase" resulted in a "good" configure with,
> e.g., "upcase(ffi)" instead of "FFI".

Where is upcase defined?  It isn't provided by autoconf.

> replacing it with "m4_upcase" resulted in
> 
> configure:4249: error: possibly undefined macro: m4_upcase
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> 

That's because there isn't a macro m4_upcase; it is spelled m4_toupper.

But I do see an issue with using m4_toupper - it does not quote its
result, so if the result resembles a macro name, that macro will be
expanded before anything else gets a chance to use the result of the
upper-casing.  I don't think we can change the semantics of this (there
may be existing code relying on this), but we probably need to add safer
counterparts that return a quoted string.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkquMhQACgkQ84KuGfSFAYCwGwCfbcBIlsYJEgaMRcBwg6W3Q5AS
QFcAnjIM4PZohogf/k2Q4XvFrpz8oRNS
=bxgp
-----END PGP SIGNATURE-----




reply via email to

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