This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix quoting of program-transform-name in toplevel configure


On Thu, Aug 21, 2003 at 06:44:49AM +0200, Andreas Tobler wrote:
> Geoffrey Keating wrote:
> +# Export original configure arguments for use by sub-configures.  These
> +# will be expanded once by make, and once by the shell, so they need to
> +# have '$' quoted for make, and then each argument quoted for the shell.
> +# What's more, the 'echo' below might expand backslashes.
> +cat <<\EOF_SED > conftestsed
> +s,\\,\\\\,g; s,\$,$$,g
> +EOF_SED
> +tmp="'$progname'"
> +for ac_arg ; do    <--------------------------------
> 
> Solaris native complains about unexpected ; at line 805.

Yep.  If the "no list given so assume the program args" form of 'for'
is to be used, it has to be

    for ac_arg
    do

i.e., semicolon and newline aren't equivalent.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
    - Brian W. Kernighan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]