2 # This is mostly redundant.
3 # These days I use the pseudo machine "host" when building for host
4 # and $TARGET_HOST for its objdir
7 # $Id: machine.sh,v 1.19 2023/01/17 18:30:21 sjg Exp $
9 # @(#) Copyright (c) 1994-2023 Simon J. Gerraty
11 # This file is provided in the hope that it will
12 # be of use. There is absolutely NO WARRANTY.
13 # Permission to copy, redistribute or otherwise
14 # use this file is hereby granted provided that
15 # the above copyright notice and this notice are
18 # Please send copies of changes and bug-fixes to:
26 # some further overrides - mostly for MACHINE_ACH
28 AIX) # from http://gnats.netbsd.org/29386
29 MACHINE_ARCH=`bootinfo -T`
32 MACHINE_ARCH=$MACHINE;
35 MACHINE_ARCH=`IFS="/-."; set $MACHINE; echo $1`
41 arch*) echo $MACHINE_ARCH;;
45 *) echo $MACHINE_ARCH;;