annotate config.sub @ 45:4fd5f0d51144

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