autoconf-patches
[Top][All Lists]
Advanced

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

Re: 2.52, current: Don't set program_prefix when target = host


From: Maciej W. Rozycki
Subject: Re: 2.52, current: Don't set program_prefix when target = host
Date: Thu, 22 Nov 2001 19:39:41 +0100 (MET)

On 22 Nov 2001, Akim Demaille wrote:

> | 2001-11-19  Maciej W. Rozycki  <address@hidden>
> | 
> |     * lib/autoconf/general.m4 (AC_CANONICAL_HOST):  Don't set
> |     program_prefix if target_alias equals host_alias.
[...]
> Sorry, but this is meant.  I you have target=host, don't specify
> target, it defaults to host.  If you want to enable the program_prefix
> anyway, then specify the target.

 If I don't specify $target_alias then it defaults to $target.  As a
result $tooldir (aka $exec_prefix/$target_alias) will be set incorrectly
for native tools.  What's the point in pretending to build cross-tools
when both the host and the target are the same? 

 Also I believe it is more consistent to select the configuration by
argument values and not their presence -- this way you may specify a
template for passing $build_alias, $host_alias and $target_alias in the
same manner, regardless of actual values, with no special cases. 

 Hmm, after a bit of thinking, I believe the script should even check if
$target equals $host.  After all that's a native configuration as well
even if $host_alias and $target_alias differ. 

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: address@hidden, PGP key available        +




reply via email to

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