This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Fwd: PATCH: libstd++-v3 configure script and target mingw32]
- From: Phil Edwards <phil at jaj dot com>
- To: Ranjit Mathew <rmathew at hotmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 2 Oct 2002 22:38:14 -0400
- Subject: Re: [Fwd: PATCH: libstd++-v3 configure script and target mingw32]
- References: <an99bs$in1$1@main.gmane.org> <20020930094344.499a9984.bkoz@redhat.com> <anbgol$q7h$1@main.gmane.org>
On Tue, Oct 01, 2002 at 12:23:45PM +0530, Ranjit Mathew wrote:
> 21 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
> 22 # AC 2.5x sets target_alias iff the user specified --target,
> but we use
> it
> 23 # everywhere, so we set it here just to be sure. In AC 2.13
> 24 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
> 25 AC_CANONICAL_SYSTEM
> 26 target_alias=${target_alias-$target}
> 27 AC_SUBST(target_alias)
That '-' isn't what you think it is, I think. The construct on the right
hand side of the equals means, "if target_alias is set, expand to that,
but if target_alias is not set, expand to target instead." The '-'
doesn't appear in the output.
We do this for the reason specified in the comment. :-) GCC hasn't been
updated to use autoconf 2.5x, but I suspect they'll do something similar
once they are.
What /is/ target_alias being set to on your system? The dash should
be there.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002