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.