On Wednesday 17 April 2002 23:37, Franz Sirl wrote:
> Hi,
>
> I've read thru this thread in the archives, but I don't understand one
> thing, how can I set $target_alias for a native build now?
>
> AFAICS this does not happen with the suggested --host --build setup, or?
> So, to replace the commonly used "configure nativealias" I now have to use
> "configure --host=nativealias --build=nativealias --target=nativealias
> --program-prefix=NONE" (I think).
>
> Is this also intentional? Or is this a bug? Am I overlooking something?
>
> BTW, it would be nice if one would be notified during configure what
> happens to $program_prefix, like:
> checking for program prefix to use.. none
Well, nobody cares to answer, so I'm suggesting the appended patch, so one can
set $target_alias again without triggering a cross-compile.
Franz.
* lib/autoconf/general.m4: Only default $program_prefix to $target_alias if
we have some kind of crosscompile.
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.797
diff -u -p -r1.797 general.m4
--- lib/autoconf/general.m4 25 Apr 2002 08:54:47 -0000 1.797
+++ lib/autoconf/general.m4 13 May 2002 21:09:00 -0000
@@ -1640,6 +1640,7 @@ _AC_CANONICAL_SPLIT([target])
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
+ test "$host$build$target" != "$target$target$target" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-[]dnl