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