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