annotate config.sub @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 74fd4e045ea6
children 697ef44129c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #! /bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 # Configuration validation subroutine script, version 1.1.
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
4 # Free Software Foundation, Inc.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
6 version='2000-05-31'
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # This file is (in principle) common to ALL GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 # The presence of a machine in this file suggests that SOME GNU software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 # can handle that machine. It does not imply ALL GNU software can.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 # This file is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 # it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 # the Free Software Foundation; either version 2 of the License, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 # (at your option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 # This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 # GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 # You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 # along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 # Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # As a special exception to the GNU General Public License, if you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 # distribute this file as part of a program that contains a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 # configuration script generated by Autoconf, you may include it under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 # the same distribution terms that you use for the rest of that program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
32 # Written by Per Bothner <bothner@cygnus.com>.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
33 # Please send patches to <config-patches@gnu.org>.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
34 #
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 # Configuration subroutine to validate and canonicalize a configuration type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # Supply the specified configuration type as an argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 # If it is invalid, we print an error message on stderr and exit with code 1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 # Otherwise, we print the canonical config type on stdout and succeed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 # This file is supposed to be the same for all GNU packages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 # and recognize all the CPU types, system types and aliases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 # that are meaningful with *any* GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 # Each package is responsible for reporting which valid configurations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 # it does not support. The user should be able to distinguish
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 # a failure to support a valid configuration from a meaningless
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 # configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 # The goal of this file is to map all the various variations of a given
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 # machine specification into a single specification in the form:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
51 # or in some cases, the newer four-part form:
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 # It is wrong to echo any other type of specification.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
55 me=`echo "$0" | sed -e 's,.*/,,'`
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
56
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
57 usage="\
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
58 Usage: $0 [OPTION] CPU-MFR-OPSYS
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
59 $0 [OPTION] ALIAS
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
60
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
61 Canonicalize a configuration name.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
62
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
63 Operation modes:
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
64 -h, --help print this help, then exit
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
65 -V, --version print version number, then exit"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
66
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
67 help="
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
68 Try \`$me --help' for more information."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
70 # Parse command line
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
71 while test $# -gt 0 ; do
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
72 case "$1" in
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
73 --version | --vers* | -V )
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
74 echo "$version" ; exit 0 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
75 --help | --h* | -h )
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
76 echo "$usage"; exit 0 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
77 -- ) # Stop option processing
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
78 shift; break ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
79 - ) # Use stdin as input.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
80 break ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
81 -* )
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
82 exec >&2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
83 echo "$me: invalid option $1"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
84 echo "$help"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
85 exit 1 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
86
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
87 *local*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
88 # First pass through any local machine types.
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
89 echo $1
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
90 exit 0;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
91
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
92 * )
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
93 break ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
94 esac
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
95 done
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
96
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
97 case $# in
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
98 0) echo "$me: missing argument$help" >&2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
99 exit 1;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
100 1) ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
101 *) echo "$me: too many arguments$help" >&2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
102 exit 1;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
105 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
106 # Here we must recognize all the valid KERNEL-OS combinations.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
107 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
108 case $maybe_os in
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
109 nto-qnx* | linux-gnu*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
110 os=-$maybe_os
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
111 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
112 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
113 *)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
114 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
115 if [ $basic_machine != $1 ]
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
116 then os=`echo $1 | sed 's/.*-/-/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
117 else os=; fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
118 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
119 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ### Let's recognize common machines as not being operating systems so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ### that things like config.sub decstation-3100 work. We also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ### recognize some manufacturers as not being operating systems, so we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 ### can provide default operating systems below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 -sun*os*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 # Prevent following clause from handling this invalid input.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 -apple)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 os=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 basic_machine=$1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
139 -sim | -cisco | -oki | -wec | -winbond)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
140 os=
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
141 basic_machine=$1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
142 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
143 -scout)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
144 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
145 -wrs)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
146 os=-vxworks
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
147 basic_machine=$1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
148 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 -sco5)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
153 os=-sco3.2v5
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
154 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 -sco4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 os=-sco3.2v4
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
158 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 -sco3.2.[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
162 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 -sco3.2v[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 # Don't forget version if it is 3.2v4 or newer.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
166 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 -sco*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 os=-sco3.2v2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
170 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
172 -udk*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
173 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
174 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 -isc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 os=-isc2.2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 -clix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 basic_machine=clipper-intergraph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 -isc*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 -lynx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 os=-lynxos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 -windowsnt*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 os=`echo $os | sed -e 's/windowsnt/winnt/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 -psos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 os=-psos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
197 -mint | -mint[0-9]*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
198 basic_machine=m68k-atari
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
199 os=-mint
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
200 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 # Decode aliases for certain CPU-COMPANY combinations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 # Recognize the basic CPU types without company name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 # Some are omitted here because they have special meanings below.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
207 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
208 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
209 | 580 | i960 | h8300 \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
210 | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
211 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
212 | hppa64 \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
213 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
214 | alphaev6[78] \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
215 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
216 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
217 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
218 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
219 | mips64vr5000 | miprs64vr5000el | mcore \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
220 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
221 | thumb | d10v | fr30 | avr)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 basic_machine=$basic_machine-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
224 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
225 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
226
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
227 # We use `pc' rather than `unknown'
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
228 # because (1) that's what they normally are, and
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
229 # (2) the word "unknown" tends to confuse beginning users.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
230 i[34567]86)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
231 basic_machine=$basic_machine-pc
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
232 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 # Object if more than one company name word.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 *-*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 # Recognize the basic CPU types with company name.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
239 # FIXME: clean up the formatting here.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
240 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
241 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
242 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
243 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
244 | xmp-* | ymp-* \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
245 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
246 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
247 | hppa2.0n-* | hppa64-* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
248 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
249 | alphaev6[78]-* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
250 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
251 | clipper-* | orion-* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
252 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
253 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
254 | mips64el-* | mips64orion-* | mips64orionel-* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
255 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
256 | mipstx39-* | mipstx39el-* | mcore-* \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
257 | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
258 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
259 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
260 | bs2000-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 # Recognize the various machine names and aliases which stand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 # for a CPU type and a company and sometimes even an OS.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
264 386bsd)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
265 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
266 os=-bsd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
267 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 basic_machine=m68000-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 3b*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
274 a29khif)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
275 basic_machine=a29k-amd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
276 os=-udi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
277 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
278 adobe68k)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
279 basic_machine=m68010-adobe
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
280 os=-scout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
281 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 alliant | fx80)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 basic_machine=fx80-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 altos | altos3068)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 basic_machine=m68k-altos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 am29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 basic_machine=a29k-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 amdahl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 basic_machine=580-amdahl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 amiga | amiga-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 basic_machine=m68k-cbm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
299 amigaos | amigados)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 basic_machine=m68k-cbm
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
301 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 amigaunix | amix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 basic_machine=m68k-cbm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 apollo68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 basic_machine=m68k-apollo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
311 apollo68bsd)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
312 basic_machine=m68k-apollo
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
313 os=-bsd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
314 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 aux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 basic_machine=m68k-apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 os=-aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 balance)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 basic_machine=ns32k-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 convex-c1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 basic_machine=c1-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 convex-c2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 basic_machine=c2-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 convex-c32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 basic_machine=c32-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 convex-c34)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 basic_machine=c34-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 convex-c38)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 basic_machine=c38-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 cray | ymp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 basic_machine=ymp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 cray2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 basic_machine=cray2-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 [ctj]90-cray)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 basic_machine=c90-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 crds | unos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 basic_machine=m68k-crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 da30 | da30-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 basic_machine=m68k-da30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 basic_machine=mips-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 delta | 3300 | motorola-3300 | motorola-delta \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 | 3300-motorola | delta-motorola)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 basic_machine=m68k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 delta88)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 basic_machine=m88k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 dpx20 | dpx20-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 basic_machine=rs6000-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 os=-bosx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 dpx2* | dpx2*-bull)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 ebmon29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 os=-ebmon
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 elxsi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 basic_machine=elxsi-elxsi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 encore | umax | mmax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 basic_machine=ns32k-encore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
391 es1800 | OSE68k | ose68k | ose | OSE)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
392 basic_machine=m68k-ericsson
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
393 os=-ose
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
394 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 fx2800)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 basic_machine=i860-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 genix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 basic_machine=ns32k-ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 gmicro)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 basic_machine=tron-gmicro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 h3050r* | hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 h8300hms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 basic_machine=h8300-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
413 h8300xray)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
414 basic_machine=h8300-hitachi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
415 os=-xray
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
416 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
417 h8500hms)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
418 basic_machine=h8500-hitachi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
419 os=-hms
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
420 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 harris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 hp300-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 hp300bsd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 hp300hpux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
436 hp3k9[0-9][0-9] | hp9[0-9][0-9])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
437 basic_machine=hppa1.0-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
438 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 hp9k2[0-9][0-9] | hp9k31[0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 basic_machine=m68000-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 hp9k3[2-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
445 hp9k6[0-9][0-9] | hp6[0-9][0-9])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
446 basic_machine=hppa1.0-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
447 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
448 hp9k7[0-79][0-9] | hp7[0-79][0-9])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
449 basic_machine=hppa1.1-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
450 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
451 hp9k78[0-9] | hp78[0-9])
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
452 # FIXME: really hppa2.0-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
453 basic_machine=hppa1.1-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
454 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
455 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
456 # FIXME: really hppa2.0-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
457 basic_machine=hppa1.1-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
458 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
459 hp9k8[0-9][13679] | hp8[0-9][13679])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 basic_machine=hppa1.1-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 hp9k8[0-9][0-9] | hp8[0-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 basic_machine=hppa1.0-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
465 hppa-next)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
466 os=-nextstep3
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
467 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
468 hppaosf)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
469 basic_machine=hppa1.1-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
470 os=-osf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
471 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
472 hppro)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
473 basic_machine=hppa1.1-hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
474 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
475 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 i370-ibm* | ibm*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 basic_machine=i370-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
480 i[34567]86v32)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
481 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 os=-sysv32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
484 i[34567]86v4*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
485 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
488 i[34567]86v)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
489 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
492 i[34567]86sol2)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
493 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
496 i386mach)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
497 basic_machine=i386-mach
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
498 os=-mach
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
499 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
500 i386-vsta | vsta)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
501 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
502 os=-vsta
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
503 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
504 i386-go32 | go32)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
505 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
506 os=-go32
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
507 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
508 i386-mingw32 | mingw32)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
509 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
510 os=-mingw32
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
511 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 iris | iris4d)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 basic_machine=mips-sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 -irix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 os=-irix4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 isi68 | isi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 basic_machine=m68k-isi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 basic_machine=m88k-omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 magnum | m3230)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 basic_machine=mips-mips
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 merlin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 basic_machine=ns32k-utek
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 miniframe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 basic_machine=m68000-convergent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
540 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
541 basic_machine=m68k-atari
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
542 os=-mint
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
543 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
544 mipsel*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
545 basic_machine=mipsel-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
546 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
547 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
548 mips*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
549 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
550 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
551 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 mips3*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 mips3*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
558 mmix*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
559 basic_machine=mmix-knuth
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
560 os=-mmixware
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
561 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
562 monitor)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
563 basic_machine=m68k-rom68k
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
564 os=-coff
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
565 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
566 msdos)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
567 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
568 os=-msdos
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
569 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
570 mvs)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
571 basic_machine=i370-ibm
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
572 os=-mvs
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
573 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 ncr3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 basic_machine=i486-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
578 netbsd386)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
579 basic_machine=i386-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
580 os=-netbsd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
581 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
582 netwinder)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
583 basic_machine=armv4l-rebel
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
584 os=-linux
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
585 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 news | news700 | news800 | news900)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 basic_machine=m68k-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 news1000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 basic_machine=m68030-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 news-3600 | risc-news)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 basic_machine=mips-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
598 necv70)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
599 basic_machine=v70-nec
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
600 os=-sysv
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
601 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 next | m*-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 basic_machine=m68k-next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 -nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 -ns2*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 nh3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 basic_machine=m68k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 nh[45]000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 nindy960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 basic_machine=i960-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 os=-nindy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
627 mon960)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
628 basic_machine=i960-intel
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
629 os=-mon960
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
630 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 np1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 basic_machine=np1-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
634 nsr-tandem)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
635 basic_machine=nsr-tandem
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
636 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
637 op50n-* | op60c-*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
638 basic_machine=hppa1.1-oki
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
639 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
640 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
641 OSE68000 | ose68000)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
642 basic_machine=m68000-ericsson
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
643 os=-ose
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
644 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
645 os68k)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
646 basic_machine=m68k-none
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
647 os=-os68k
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
648 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 pa-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 paragon)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 basic_machine=i860-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 pbd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 basic_machine=sparc-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 pbb)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 basic_machine=m68k-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 pc532 | pc532-*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
664 basic_machine=ns32k-pc532
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
665 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
666 pentium | p5 | k5 | k6 | nexen)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
667 basic_machine=i586-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
669 pentiumpro | p6 | 6x86 | athlon)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
670 basic_machine=i686-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
672 pentiumii | pentium2)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
673 basic_machine=i786-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
675 pentium-* | p5-* | k5-* | k6-* | nexen-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
678 pentiumpro-* | p6-* | 6x86-* | athlon-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
681 pentiumii-* | pentium2-*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
682 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 pn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 basic_machine=pn-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 power) basic_machine=rs6000-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 ppc) basic_machine=powerpc-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 ppcle | powerpclittle | ppc-le | powerpc-little)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 basic_machine=powerpcle-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 ppcle-* | powerpclittle-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 ps2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 basic_machine=i386-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
702 rom68k)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
703 basic_machine=m68k-rom68k
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
704 os=-coff
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
705 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 rm[46]00)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 basic_machine=mips-siemens
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 rtpc | rtpc-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
712 sa29200)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
713 basic_machine=a29k-amd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
714 os=-udi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
715 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 sh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 basic_machine=sh-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
723 sparclite-wrs)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
724 basic_machine=sparclite-wrs
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
725 os=-vxworks
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
726 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 sps7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 os=-sysv2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 spur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 basic_machine=spur-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
734 st2000)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
735 basic_machine=m68k-tandem
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
736 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
737 stratus)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
738 basic_machine=i860-stratus
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
739 os=-sysv4
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
740 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 sun2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 sun2os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 sun2os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 sun3os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 sun3os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 sun4os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 sun4os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 sun4sol2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 sun3 | sun3-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 sun4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 sun386 | sun386i | roadrunner)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 basic_machine=i386-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
781 sv1)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
782 basic_machine=sv1-cray
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
783 os=-unicos
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
784 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 symmetry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
789 t3e)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
790 basic_machine=t3e-cray
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
791 os=-unicos
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
792 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
793 tx39)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
794 basic_machine=mipstx39-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
795 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
796 tx39el)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
797 basic_machine=mipstx39el-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
798 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 tower | tower-32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 basic_machine=m68k-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 udi29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 os=-udi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 ultra3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 basic_machine=a29k-nyu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 os=-sym1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
810 v810 | necv810)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
811 basic_machine=v810-nec
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
812 os=-none
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
813 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 vaxv)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 vms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 os=-vms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
822 vpp*|vx|vx-*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
823 basic_machine=f301-fujitsu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
824 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 vxworks960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 basic_machine=i960-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 vxworks68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 basic_machine=m68k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 vxworks29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 basic_machine=a29k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
837 w65*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
838 basic_machine=w65-wdc
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
839 os=-none
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
840 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
841 w89k-*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
842 basic_machine=hppa1.1-winbond
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
843 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
844 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 xmp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 basic_machine=xmp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 xps | xps100)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 basic_machine=xps100-honeywell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
852 z8k-*-coff)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
853 basic_machine=z8k-unknown
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
854 os=-sim
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
855 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 basic_machine=none-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 # Here we handle the default manufacturer of certain CPU types. It is in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 # some cases the only manufacturer, in others, it is the most popular.
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
863 w89k)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
864 basic_machine=hppa1.1-winbond
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
865 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
866 op50n)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
867 basic_machine=hppa1.1-oki
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
868 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
869 op60c)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
870 basic_machine=hppa1.1-oki
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
871 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 mips)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
873 if [ x$os = x-linux-gnu ]; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
874 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
875 else
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
876 basic_machine=mips-mips
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
877 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 romp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 rs6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 basic_machine=rs6000-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 vax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 pdp11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889 basic_machine=pdp11-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 we32k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
894 sparc | sparcv9)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 cydra)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 basic_machine=cydra-cydrome
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 orion)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 basic_machine=orion-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 orion105)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 basic_machine=clipper-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
906 mac | mpw | mac-mpw)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
907 basic_machine=m68k-apple
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
908 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
909 pmac | pmac-mpw)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
910 basic_machine=powerpc-apple
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
911 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
912 c4x*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
913 basic_machine=c4x-none
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
914 os=-coff
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
915 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 # Here we canonicalize certain aliases for manufacturers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 *-digital*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 *-commodore*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 # Decode manufacturer-specific aliases for certain operating systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 if [ x"$os" != x"" ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 case $os in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
939 # First match some system type aliases
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
940 # that might get confused with valid system types.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 # -solaris* is a basic system type, with this one exception.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 -solaris1 | -solaris1.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 os=`echo $os | sed -e 's|solaris1|sunos4|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 -solaris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
948 -svr4*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
951 -unixware*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
952 os=-sysv4.2uw
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
953 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 -gnu/linux*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
955 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 # First accept the basic system types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 # The portable systems comes first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 # Each alternative MUST END IN A *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 # -sysv* is not here because it comes later, after sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
962 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
964 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
965 | -aos* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
966 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
967 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
968 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
969 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
972 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
973 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
974 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
975 | -openstep* | -oskit*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 # Remember, each alternative MUST END IN *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
978 -qnx*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
979 case $basic_machine in
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
980 x86-* | i[34567]86-*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
981 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
982 *)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
983 os=-nto$os
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
984 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
985 esac
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
986 ;;
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
987 -nto*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
988 os=-nto-qnx
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
989 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
990 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
991 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
992 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
993 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
994 -mac*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
995 os=`echo $os | sed -e 's|mac|macos|'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
996 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
997 -linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
998 os=`echo $os | sed -e 's|linux|linux-gnu|'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
999 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 -sunos5*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 os=`echo $os | sed -e 's|sunos5|solaris2|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 -sunos6*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004 os=`echo $os | sed -e 's|sunos6|solaris3|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1006 -opened*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1007 os=-openedition
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1008 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1009 -wince*)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1010 os=-wince
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1011 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 -osfrose*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 os=-osfrose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 -osf*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1016 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018 -utek*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1021 -dynix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1022 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1023 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1024 -acis*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025 os=-aos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1027 -386bsd)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1028 os=-bsd
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1029 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 -ctix* | -uts*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033 -ns2 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 ;;
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1036 -nsk)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1037 os=-nsk
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1038 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 # Preserve the version number of sinix5.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 -sinix5.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 os=`echo $os | sed -e 's|sinix|sysv|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 -sinix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 -triton*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 -oss*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 -svr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 -svr3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 -sysvr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 # This must come after -sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 -sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1064 -ose*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1065 os=-ose
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1066 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1067 -es1800*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1068 os=-ose
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1069 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070 -xenix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071 os=-xenix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1073 -*mint | -*MiNT)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1074 os=-mint
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1075 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 -none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 # Get rid of the `-' at the beginning of $os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 os=`echo $os | sed 's/[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 # Here we handle the default operating systems that come with various machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 # The value should be what the vendor currently ships out the door with their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 # machine or put another way, the most popular os provided with the machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 # Note that if you're going to try to match "-MANUFACTURER" here (say,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 # "-sun"), then you have to tell the case statement up towards the top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 # that MANUFACTURER isn't an operating system. Otherwise, code above
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 # will signal an error saying that MANUFACTURER isn't an operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 # system, and we'll never get to this point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 *-acorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 os=-riscix1.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1101 arm*-rebel)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1102 os=-linux
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1103 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 arm*-semi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 os=-aout
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 pdp11-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1108 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 *-dec | vax-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1111 os=-ultrix4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1112 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113 m68*-apollo)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 os=-domain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 i386-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117 os=-sunos4.0.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1118 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 m68000-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 # This also exists in the configure program, but was not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 # default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 # os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1125 m68*-cisco)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1126 os=-aout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1127 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1128 mips*-cisco)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1129 os=-elf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1130 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1131 mips*-*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1132 os=-elf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1133 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 *-tti) # must be before sparc entry or we get the wrong os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 sparc-* | *-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138 os=-sunos4.1.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1140 *-be)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1141 os=-beos
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1142 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143 *-ibm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144 os=-aix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1145 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1146 *-wec)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1147 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1148 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1149 *-winbond)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1150 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1151 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1152 *-oki)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1153 os=-proelf
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1154 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 *-hp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 *-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 os=-hiux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 *-cbm)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1165 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 *-dg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 os=-dgux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 *-dolphin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 m68k-ccur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1176 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177 os=-luna
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1179 *-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1180 os=-nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1181 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 *-sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1183 os=-ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185 *-crds)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1186 os=-unos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1187 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188 *-ns)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189 os=-genix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191 i370-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1192 os=-mvs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1193 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194 *-next)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1197 *-gould)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1198 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 *-highlevel)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203 *-encore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1204 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 *-sgi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 os=-irix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 *-siemens)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1211 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212 *-masscomp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1214 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1215 f301-fujitsu)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1216 os=-uxpv
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1217 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1218 *-rom68k)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1219 os=-coff
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1220 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1221 *-*bug)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1222 os=-coff
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1223 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1224 *-apple)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1225 os=-macos
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1226 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1227 *-atari*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1228 os=-mint
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1229 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236 # Here we handle the case where we know the os, and the CPU type, but not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 # manufacturer. We pick the logical manufacturer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 vendor=unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240 *-unknown)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1242 -riscix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243 vendor=acorn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 -sunos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246 vendor=sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1247 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1248 -aix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1251 -beos*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1252 vendor=be
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1253 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254 -hpux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 vendor=hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1257 -mpeix*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1258 vendor=hp
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1259 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1261 vendor=hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 -unos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 vendor=crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 -dgux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267 vendor=dg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1268 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1269 -luna*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1270 vendor=omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1271 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272 -genix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 vendor=ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1274 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1275 -mvs* | -opened*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1276 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1277 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279 vendor=sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1281 -vxsim* | -vxworks*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282 vendor=wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1284 -aux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285 vendor=apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1287 -hms*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1288 vendor=hitachi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1289 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1290 -mpw* | -macos*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1291 vendor=apple
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1292 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1293 -*mint | -*MiNT)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1294 vendor=atari
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 380
diff changeset
1295 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 echo $basic_machine$os
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1302 exit 0
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1303
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1304 # Local variables:
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1305 # eval: (add-hook 'write-file-hooks 'time-stamp)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1306 # time-stamp-start: "version='"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1307 # time-stamp-format: "%:y-%02m-%02d"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1308 # time-stamp-end: "'"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 398
diff changeset
1309 # End: