This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Syntax error in configure? can anyone bootstrap?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: lucier at math dot purdue dot edu (Bradley Lucier)
- Cc: lucier at math dot purdue dot edu (Bradley Lucier), gcc at gcc dot gnu dot org
- Date: Fri, 22 Aug 2003 18:22:39 -0400 (EDT)
- Subject: Re: Syntax error in configure? can anyone bootstrap?
>
> I've been getting the following message on today's 3.4 mainline on
> sparc-sun-solaris2.8 with CONFIG_SHELL=/local/bin/bash:
>
> banach-300% ../configure
> loading cache ./config.cache
> checking host system type... sparc-sun-solaris2.8
> checking target system type... sparc-sun-solaris2.8
> checking build system type... sparc-sun-solaris2.8
> checking for a BSD compatible install... ../install-sh -c
> ../configure: syntax error at line 805: `;' unexpected
>
> The offending line is here:
>
> # 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
> <<<<<<<<<<<<<<<<<<<<<<
> tmp="$tmp '"`echo "$ac_arg" | sed -fconftestsed`
> done
> rm -f conftestsed
> TOPLEVEL_CONFIGURE_ARGUMENTS="$tmp"
>
It does not matter what CONFIG_SHELL you are using, this is a bug in /usr/sh on Solaris.
This was discussed before <http://gcc.gnu.org/ml/gcc-patches/2003-08/msg01229.html>
Thanks,
Andrew Pinski