annotate config.sub @ 13:a05bf0823154

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