comparison config.sub @ 1057:d94193f2620c

[project @ 1995-01-20 22:32:28 by jwe]
author jwe
date Fri, 20 Jan 1995 22:32:28 +0000
parents 515d970bb456
children 611d403c7f3d
comparison
equal deleted inserted replaced
1056:de34f868e388 1057:d94193f2620c
1 #!/bin/sh 1 #!/bin/sh
2 # Configuration validation subroutine script, version 1.1. 2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. 3 # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
4 # This file is (in principle) common to ALL GNU software. 4 # This file is (in principle) common to ALL GNU software.
5 # The presence of a machine in this file suggests that SOME GNU software 5 # The presence of a machine in this file suggests that SOME GNU software
6 # can handle that machine. It does not imply ALL GNU software can. 6 # can handle that machine. It does not imply ALL GNU software can.
7 7 #
8 #This file is free software; you can redistribute it and/or modify 8 # This file is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by 9 # it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2 of the License, or 10 # the Free Software Foundation; either version 2 of the License, or
11 #(at your option) any later version. 11 # (at your option) any later version.
12 12 #
13 #This program is distributed in the hope that it will be useful, 13 # This program is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details. 16 # GNU General Public License for more details.
17 17 #
18 #You should have received a copy of the GNU General Public License 18 # You should have received a copy of the GNU General Public License
19 #along with this program; if not, write to the Free Software 19 # along with this program; if not, write to the Free Software
20 #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
22 26
23 # Configuration subroutine to validate and canonicalize a configuration type. 27 # Configuration subroutine to validate and canonicalize a configuration type.
24 # Supply the specified configuration type as an argument. 28 # Supply the specified configuration type as an argument.
25 # If it is invalid, we print an error message on stderr and exit with code 1. 29 # If it is invalid, we print an error message on stderr and exit with code 1.
26 # Otherwise, we print the canonical config type on stdout and succeed. 30 # Otherwise, we print the canonical config type on stdout and succeed.
71 -sun*os*) 75 -sun*os*)
72 # Prevent following clause from handling this invalid input. 76 # Prevent following clause from handling this invalid input.
73 ;; 77 ;;
74 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 78 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
75 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 79 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
76 -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \ 80 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
77 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 81 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
78 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 82 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
79 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 83 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
80 -sim) # CYGNUS LOCAL
81 os= 84 os=
82 basic_machine=$1 85 basic_machine=$1
83 ;; 86 ;;
84 -scout) # CYGNUS LOCAL
85 ;;
86 -wrs) # CYGNUS LOCAL
87 os=vxworks
88 basic_machine=$1
89 ;;
90 -unixware) # CYGNUS LOCAL
91 os=-sysv4
92 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
93 ;;
94 -hiux*) 87 -hiux*)
95 os==-hiuxwe2 88 os=-hiuxwe2
96 ;; 89 ;;
97 -sco4) 90 -sco4)
98 os=-sco3.2v4 91 os=-sco3.2v4
99 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` 92 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
100 ;; 93 ;;
120 -isc*) 113 -isc*)
121 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` 114 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
122 ;; 115 ;;
123 -lynx) 116 -lynx)
124 os=-lynxos 117 os=-lynxos
118 ;;
119 -ptx*)
120 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
121 ;;
122 -windowsnt*)
123 os=`echo $os | sed -e 's/windowsnt/winnt/'`
125 ;; 124 ;;
126 esac 125 esac
127 126
128 # Decode aliases for certain CPU-COMPANY combinations. 127 # Decode aliases for certain CPU-COMPANY combinations.
129 case $basic_machine in 128 case $basic_machine in
130 # Recognize the basic CPU types without company name. 129 # Recognize the basic CPU types without company name.
131 # Some are omitted here because they have special meanings below. 130 # Some are omitted here because they have special meanings below.
132 tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ 131 tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
133 | tron | a29k | 580 | i960 | hppa1.0 | hppa1.1 \ 132 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
134 | alpha | we32k | ns16k | clipper | sparclite | i370 \ 133 | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
135 | powerpc \ 134 | powerpc | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
136 | h8300 | h8300h | sh \ 135 | pdp11 | mips64el | mips64orion | mips64orionel \
137 | m88110 | sparc | m680[01234]0 | m683?2 | z8k | v70 \ 136 | sparc)
138 | h8500 | mips64 | mipsel | mips64el) # CYGNUS LOCAL
139 basic_machine=$basic_machine-unknown 137 basic_machine=$basic_machine-unknown
140 ;; 138 ;;
141 # Object if more than one company name word. 139 # Object if more than one company name word.
142 *-*-*) 140 *-*-*)
143 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 141 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
144 exit 1 142 exit 1
145 ;; 143 ;;
146 # Recognize the basic CPU types with company name. 144 # Recognize the basic CPU types with company name.
147 vax-* | tahoe-* | i[34]86-* | i860-* | m68k-* | m68000-* | m88k-* \ 145 vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
148 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ 146 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
149 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 147 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
150 | none-* | 580-* | cray2-* | i960-* | xmp-* | ymp-* \ 148 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
151 | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ 149 | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
152 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ 150 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
153 | powerpc \ 151 | pdp11-* | sh-* | powerpc-* | sparc64-* | mips64-* | mipsel-* \
154 | h8300-* | h8300h-* | sh-* \ 152 | mips64el-* | mips64orion-* | mips64orionel-*)
155 | m88110-* | m680[01234]0-* | m683?2-* | z8k-* | h8500-* \
156 | mips64-* | mipsel-* | mips64el-*) # CYGNUS LOCAL
157 ;; 153 ;;
158 # Recognize the various machine names and aliases which stand 154 # Recognize the various machine names and aliases which stand
159 # for a CPU type and a company and sometimes even an OS. 155 # for a CPU type and a company and sometimes even an OS.
160 156 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
161 mips3-*) # CYGNUS LOCAL 157 basic_machine=m68000-att
162 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 158 ;;
163 ;; 159 3b*)
164 mips3) # CYGNUS LOCAL 160 basic_machine=we32k-att
165 basic_machine=mips64-unknown 161 ;;
166 ;; 162 alliant | fx80)
167 dpx20 | dpx20-*) # CYGNUS LOCAL 163 basic_machine=fx80-alliant
164 ;;
165 altos | altos3068)
166 basic_machine=m68k-altos
167 ;;
168 am29k)
169 basic_machine=a29k-none
170 os=-bsd
171 ;;
172 amdahl)
173 basic_machine=580-amdahl
174 os=-sysv
175 ;;
176 amiga | amiga-*)
177 basic_machine=m68k-cbm
178 ;;
179 amigados)
180 basic_machine=m68k-cbm
181 os=-amigados
182 ;;
183 amigaunix | amix)
184 basic_machine=m68k-cbm
185 os=-sysv4
186 ;;
187 apollo68)
188 basic_machine=m68k-apollo
189 os=-sysv
190 ;;
191 balance)
192 basic_machine=ns32k-sequent
193 os=-dynix
194 ;;
195 convex-c1)
196 basic_machine=c1-convex
197 os=-bsd
198 ;;
199 convex-c2)
200 basic_machine=c2-convex
201 os=-bsd
202 ;;
203 convex-c32)
204 basic_machine=c32-convex
205 os=-bsd
206 ;;
207 convex-c34)
208 basic_machine=c34-convex
209 os=-bsd
210 ;;
211 convex-c38)
212 basic_machine=c38-convex
213 os=-bsd
214 ;;
215 cray | ymp)
216 basic_machine=ymp-cray
217 os=-unicos
218 ;;
219 cray2)
220 basic_machine=cray2-cray
221 os=-unicos
222 ;;
223 crds | unos)
224 basic_machine=m68k-crds
225 ;;
226 da30 | da30-*)
227 basic_machine=m68k-da30
228 ;;
229 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
230 basic_machine=mips-dec
231 ;;
232 delta | 3300 | motorola-3300 | motorola-delta \
233 | 3300-motorola | delta-motorola)
234 basic_machine=m68k-motorola
235 ;;
236 delta88)
237 basic_machine=m88k-motorola
238 os=-sysv3
239 ;;
240 dpx20 | dpx20-*)
168 basic_machine=rs6000-bull 241 basic_machine=rs6000-bull
169 os=-bosx 242 os=-bosx
170 ;; 243 ;;
171 unixware) # CYGNUS LOCAL 244 dpx2* | dpx2*-bull)
172 os=-sysv4 245 basic_machine=m68k-bull
173 basic_machine=i386-unknown 246 os=-sysv3
174 ;; 247 ;;
175 vaxv) 248 ebmon29k)
176 basic_machine=vax-dec 249 basic_machine=a29k-amd
177 os=-sysv 250 os=-ebmon
178 ;; 251 ;;
179 vms) 252 elxsi)
180 basic_machine=vax-dec 253 basic_machine=elxsi-elxsi
181 os=-vms 254 os=-bsd
255 ;;
256 encore | umax | mmax)
257 basic_machine=ns32k-encore
258 ;;
259 fx2800)
260 basic_machine=i860-alliant
261 ;;
262 genix)
263 basic_machine=ns32k-ns
264 ;;
265 gmicro)
266 basic_machine=tron-gmicro
267 os=-sysv
268 ;;
269 h3050r* | hiux*)
270 basic_machine=hppa1.1-hitachi
271 os=-hiuxwe2
272 ;;
273 h8300hms)
274 basic_machine=h8300-hitachi
275 os=-hms
276 ;;
277 harris)
278 basic_machine=m88k-harris
279 os=-sysv3
280 ;;
281 hp300-*)
282 basic_machine=m68k-hp
283 ;;
284 hp300bsd)
285 basic_machine=m68k-hp
286 os=-bsd
287 ;;
288 hp300hpux)
289 basic_machine=m68k-hp
290 os=-hpux
291 ;;
292 hp9k2[0-9][0-9] | hp9k31[0-9])
293 basic_machine=m68000-hp
294 ;;
295 hp9k3[2-9][0-9])
296 basic_machine=m68k-hp
297 ;;
298 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
299 basic_machine=hppa1.1-hp
300 ;;
301 hp9k8[0-9][0-9] | hp8[0-9][0-9])
302 basic_machine=hppa1.0-hp
182 ;; 303 ;;
183 i370-ibm* | ibm*) 304 i370-ibm* | ibm*)
184 basic_machine=i370-ibm 305 basic_machine=i370-ibm
185 os=-mvs 306 os=-mvs
186 ;; 307 ;;
187 i386mach) # CYGNUS LOCAL 308 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
188 basic_machine=i386-mach 309 i[345]86v32)
189 os=-mach
190 ;;
191 i[34]86v32)
192 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` 310 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
193 os=-sysv32 311 os=-sysv32
194 ;; 312 ;;
195 i[34]86v4*) 313 i[345]86v4*)
196 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` 314 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
197 os=-sysv4 315 os=-sysv4
198 ;; 316 ;;
199 i[34]86v) 317 i[345]86v)
200 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` 318 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
201 os=-sysv 319 os=-sysv
202 ;; 320 ;;
203 i[34]86sol2) 321 i[345]86sol2)
204 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` 322 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
205 os=-solaris2 323 os=-solaris2
206 ;; 324 ;;
207 go32 | i386-go32) # CYGNUS LOCAL 325 iris | iris4d)
208 basic_machine=i386-unknown
209 os=-go32
210 ;;
211 i386-linux* | linux) # CYGNUS LOCAL
212 basic_machine=i386-unknown
213 os=-linux
214 ;;
215 i386-linux*coff | linuxcoff) # CYGNUS LOCAL
216 basic_machine=i386-unknown
217 os=-linuxcoff
218 ;;
219 i386-linux*elf | linuxelf) # CYGNUS LOCAL
220 basic_machine=i386-unknown
221 os=-linuxelf
222 ;;
223 386bsd) # CYGNUS LOCAL
224 basic_machine=i386-unknown
225 os=-bsd
226 ;;
227 netbsd386)
228 basic_machine=i386-unknown # CYGNUS LOCAL
229 os=-netbsd
230 ;;
231 spur)
232 basic_machine=spur-unknown
233 ;;
234 paragon)
235 basic_machine=i860-intel
236 os=-osf
237 ;;
238 alliant | fx80)
239 basic_machine=fx80-alliant
240 ;;
241 convex-c1)
242 basic_machine=c1-convex
243 os=-bsd
244 ;;
245 convex-c2)
246 basic_machine=c2-convex
247 os=-bsd
248 ;;
249 convex-c32)
250 basic_machine=c32-convex
251 os=-bsd
252 ;;
253 convex-c34)
254 basic_machine=c34-convex
255 os=-bsd
256 ;;
257 convex-c38)
258 basic_machine=c38-convex
259 os=-bsd
260 ;;
261 m88k-omron*)
262 basic_machine=m88k-omron
263 ;;
264 merlin)
265 basic_machine=ns32k-utek
266 os=-sysv
267 ;;
268 crds | unos)
269 basic_machine=m68k-crds
270 ;;
271 elxsi)
272 basic_machine=elxsi-elxsi
273 os=-bsd
274 ;;
275 encore | umax | mmax)
276 basic_machine=ns32k-encore
277 ;;
278 genix)
279 basic_machine=ns32k-ns
280 ;;
281 iris | iris4d | \
282 iris3 | iris4) # CYGNUS LOCAL
283 basic_machine=mips-sgi 326 basic_machine=mips-sgi
284 case $os in 327 case $os in
285 -irix*) 328 -irix*)
286 ;; 329 ;;
287 *) 330 *)
288 os=-irix4 331 os=-irix4
289 ;; 332 ;;
290 esac 333 esac
291 ;; 334 ;;
335 isi68 | isi)
336 basic_machine=m68k-isi
337 os=-sysv
338 ;;
339 m88k-omron*)
340 basic_machine=m88k-omron
341 ;;
342 magnum | m3230)
343 basic_machine=mips-mips
344 os=-sysv
345 ;;
346 merlin)
347 basic_machine=ns32k-utek
348 os=-sysv
349 ;;
350 miniframe)
351 basic_machine=m68000-convergent
352 ;;
353 mips3*-*)
354 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
355 ;;
356 mips3*)
357 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
358 ;;
359 ncr3000)
360 basic_machine=i486-ncr
361 os=-sysv4
362 ;;
292 news | news700 | news800 | news900) 363 news | news700 | news800 | news900)
293 basic_machine=m68k-sony 364 basic_machine=m68k-sony
294 os=-newsos 365 os=-newsos
295 ;; 366 ;;
296 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 367 news1000)
297 basic_machine=m68000-att 368 basic_machine=m68030-sony
298 ;; 369 os=-newsos
299 3b*) 370 ;;
300 basic_machine=we32k-att 371 news-3600 | risc-news)
301 ;; 372 basic_machine=mips-sony
302 delta | 3300 | motorola-3300 | motorola-delta \ 373 os=-newsos
303 | 3300-motorola | delta-motorola) 374 ;;
304 basic_machine=m68k-motorola 375 next | m*-next )
305 ;; 376 basic_machine=m68k-next
306 balance) 377 case $os in
307 basic_machine=ns32k-sequent 378 -nextstep* )
308 os=-dynix 379 ;;
309 ;; 380 -ns2*)
310 pc532) 381 os=-nextstep2
382 ;;
383 *)
384 os=-nextstep3
385 ;;
386 esac
387 ;;
388 nh3000)
389 basic_machine=m68k-harris
390 os=-cxux
391 ;;
392 nh[45]000)
393 basic_machine=m88k-harris
394 os=-cxux
395 ;;
396 nindy960)
397 basic_machine=i960-intel
398 os=-nindy
399 ;;
400 np1)
401 basic_machine=np1-gould
402 ;;
403 pa-hitachi)
404 basic_machine=hppa1.1-hitachi
405 os=-hiuxwe2
406 ;;
407 paragon)
408 basic_machine=i860-intel
409 os=-osf
410 ;;
411 pbd)
412 basic_machine=sparc-tti
413 ;;
414 pbb)
415 basic_machine=m68k-tti
416 ;;
417 pc532 | pc532-*)
311 basic_machine=ns32k-pc532 418 basic_machine=ns32k-pc532
419 ;;
420 pentium-*)
421 # We will change tis to say i586 once there has been
422 # time for various packages to start to recognize that.
423 basic_machine=i486-`echo $basic_machine | sed 's/^[^-]*-//'`
424 ;;
425 pn)
426 basic_machine=pn-gould
427 ;;
428 ps2)
429 basic_machine=i386-ibm
430 ;;
431 rtpc | rtpc-*)
432 basic_machine=romp-ibm
433 ;;
434 sequent)
435 basic_machine=i386-sequent
436 ;;
437 sh)
438 basic_machine=sh-hitachi
439 os=-hms
440 ;;
441 sps7)
442 basic_machine=m68k-bull
443 os=-sysv2
444 ;;
445 spur)
446 basic_machine=spur-unknown
447 ;;
448 sun2)
449 basic_machine=m68000-sun
450 ;;
451 sun2os3)
452 basic_machine=m68000-sun
453 os=-sunos3
454 ;;
455 sun2os4)
456 basic_machine=m68000-sun
457 os=-sunos4
458 ;;
459 sun3os3)
460 basic_machine=m68k-sun
461 os=-sunos3
462 ;;
463 sun3os4)
464 basic_machine=m68k-sun
465 os=-sunos4
466 ;;
467 sun4os3)
468 basic_machine=sparc-sun
469 os=-sunos3
470 ;;
471 sun4os4)
472 basic_machine=sparc-sun
473 os=-sunos4
474 ;;
475 sun3 | sun3-*)
476 basic_machine=m68k-sun
477 ;;
478 sun4)
479 basic_machine=sparc-sun
480 ;;
481 sun386 | sun386i | roadrunner)
482 basic_machine=i386-sun
312 ;; 483 ;;
313 symmetry) 484 symmetry)
314 basic_machine=i386-sequent 485 basic_machine=i386-sequent
315 os=-dynix 486 os=-dynix
316 ;; 487 ;;
317 sun2)
318 basic_machine=m68000-sun
319 ;;
320 sun2os3)
321 basic_machine=m68000-sun
322 os=-sunos3
323 ;;
324 sun2os4)
325 basic_machine=m68000-sun
326 os=-sunos4
327 ;;
328 sun3os3)
329 basic_machine=m68k-sun
330 os=-sunos3
331 ;;
332 sun3os4)
333 basic_machine=m68k-sun
334 os=-sunos4
335 ;;
336 sun4os3)
337 basic_machine=sparc-sun
338 os=-sunos3
339 ;;
340 sun4os4)
341 basic_machine=sparc-sun
342 os=-sunos4
343 ;;
344 sun4sol2) # CYGNUS LOCAL
345 basic_machine=sparc-sun
346 os=-solaris2
347 ;;
348 z8ksim) # CYGNUS LOCAL
349 basic_machine=z8k-zilog
350 os=-sim
351 ;;
352 z8k) # CYGNUS LOCAL
353 basic_machine=z8k-zilog
354 ;;
355 sun3)
356 basic_machine=m68k-sun
357 ;;
358 sun4)
359 basic_machine=sparc-sun
360 ;;
361 msdos) # CYGNUS LOCAL
362 basic_machine=i386-unknown
363 os=-msdos
364 ;;
365 pbd)
366 basic_machine=sparc-tti
367 ;;
368 pbb)
369 basic_machine=m68k-tti
370 ;;
371 sun386 | sun386i | roadrunner)
372 basic_machine=i386-sun
373 ;;
374 ps2)
375 basic_machine=i386-ibm
376 ;;
377 fx2800)
378 basic_machine=i860-alliant
379 ;;
380 next)
381 basic_machine=m68k-next
382 os=-bsd
383 ;;
384 amiga)
385 basic_machine=m68k-cbm
386 ;;
387 amigados)
388 basic_machine=m68k-cbm
389 os=-amigados
390 ;;
391 amigaunix | amix)
392 basic_machine=m68k-cbm
393 os=-sysv4
394 ;;
395 hp9k3[2-9][0-9])
396 basic_machine=m68k-hp
397 ;;
398 hp9k31[0-9] | hp9k2[0-9][0-9])
399 basic_machine=m68000-hp
400 ;;
401 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
402 basic_machine=hppa1.1-hp
403 ;;
404 hp9k8[0-9][0-9] | hp8[0-9][0-9])
405 basic_machine=hppa1.0-hp
406 ;;
407 h3050r* | hppahitachi)
408 basic_machine=hppa1.1-hitachi
409 ;;
410 isi68 | isi)
411 basic_machine=m68k-isi
412 os=-sysv
413 ;;
414 apollo68)
415 basic_machine=m68k-apollo
416 os=-sysv
417 ;;
418 apollo68bsd) # CYGNUS LOCAL
419 basic_machine=m68k-apollo
420 os=-bsd
421 ;;
422 altos | altos3068)
423 basic_machine=m68k-altos
424 ;;
425 miniframe)
426 basic_machine=m68010-convergent
427 ;;
428 tower | tower-32) 488 tower | tower-32)
429 basic_machine=m68k-ncr 489 basic_machine=m68k-ncr
430 ;; 490 ;;
431 news-3600 | risc-news) 491 udi29k)
432 basic_machine=mips-sony 492 basic_machine=a29k-amd
433 os=-newsos 493 os=-udi
434 ;; 494 ;;
435 st2000) # CYGNUS LOCAL 495 ultra3)
436 basic_machine=m68k-tandem 496 basic_machine=a29k-nyu
437 ;; 497 os=-sym1
438 m6*bug) # CYGNUS LOCAL 498 ;;
439 basic_machine=m68k-bug 499 vaxv)
440 os=-coff 500 basic_machine=vax-dec
441 ;; 501 os=-sysv
442 rom68k) # CYGNUS LOCAL 502 ;;
443 basic_machine=m68k-rom68k 503 vms)
444 os=-coff 504 basic_machine=vax-dec
445 ;; 505 os=-vms
446 monitor) # CYGNUS LOCAL 506 ;;
447 basic_machine=m68k-rom68k 507 vxworks960)
448 os=-coff 508 basic_machine=i960-wrs
449 ;; 509 os=-vxworks
450 decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn) 510 ;;
451 basic_machine=mips-dec 511 vxworks68)
452 ;; 512 basic_machine=m68k-wrs
453 magnum | m3230) 513 os=-vxworks
454 basic_machine=mips-mips
455 os=-sysv
456 ;;
457 gmicro)
458 basic_machine=tron-gmicro
459 os=-sysv
460 ;;
461 rtpc | rtpc-*)
462 basic_machine=romp-ibm
463 ;;
464 am29k)
465 basic_machine=a29k-none
466 os=-bsd
467 ;;
468 amdahl)
469 basic_machine=580-amdahl
470 os=-sysv
471 ;;
472 stratus) # CYGNUS LOCAL
473 basic_machine=i860-stratus
474 os=-sysv4
475 ;;
476 cray | ymp)
477 basic_machine=ymp-cray
478 os=-unicos
479 ;;
480 cray2)
481 basic_machine=cray2-cray
482 os=-unicos
483 ;; 514 ;;
484 xmp) 515 xmp)
485 basic_machine=xmp-cray 516 basic_machine=xmp-cray
486 os=-unicos 517 os=-unicos
487 ;; 518 ;;
488 delta88)
489 basic_machine=m88k-motorola
490 os=-sysv3
491 ;;
492 dpx2* | dpx2*-bull)
493 basic_machine=m68k-bull
494 os=-sysv3
495 ;;
496 ebmon29k)
497 basic_machine=a29k-amd
498 os=-ebmon
499 ;;
500 h8300hms) # CYGNUS LOCAL
501 basic_machine=h8300-hitachi
502 os=-hms
503 ;;
504 sh) # CYGNUS LOCAL
505 basic_machine=sh-hitachi
506 os=-hms
507 ;;
508
509 h8500hms) # CYGNUS LOCAL
510 basic_machine=h8500-hitachi
511 os=-hms
512 ;;
513 h8300xray) # CYGNUS LOCAL
514 basic_machine=h8300-hitachi
515 os=-xray
516 ;;
517 h8300hds)
518 basic_machine=h8300-hitachi
519 os=-hds
520 ;;
521 udi29k) # CYGNUS LOCAL
522 basic_machine=a29k-amd
523 os=-udi
524 ;;
525 a29khif) # CYGNUS LOCAL
526 basic_machine=a29k-amd
527 os=-udi
528 ;;
529 sa29200) # CYGNUS LOCAL
530 basic_machine=a29k-amd
531 os=-udi
532 ;;
533 harris)
534 basic_machine=m88k-harris
535 os=-sysv3
536 ;;
537 hp300bsd)
538 basic_machine=m68k-hp
539 os=-bsd
540 ;;
541 hp300hpux)
542 basic_machine=m68k-hp
543 os=-hpux
544 ;;
545 hppaosf)
546 basic_machine=hppa1.1-hp
547 os=-osf
548 ;;
549 ncr3000)
550 basic_machine=i486-ncr
551 os=-sysv4
552 ;;
553 necv70) # CYGNUS LOCAL
554 basic_machine=v70-nec
555 os=-sysv
556 ;;
557 news1000)
558 basic_machine=m68030-sony
559 os=-newsos
560 ;;
561 nindy960)
562 basic_machine=i960-intel
563 os=-nindy
564 ;;
565 pn)
566 basic_machine=pn-gould
567 ;;
568 np1)
569 basic_machine=np1-gould
570 ;;
571 ultra3)
572 basic_machine=a29k-nyu
573 os=-sym1
574 ;;
575 vxworks960)
576 basic_machine=i960-wrs
577 os=-vxworks
578 ;;
579 vxworks68)
580 basic_machine=m68k-wrs
581 os=-vxworks
582 ;;
583 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL
584 basic_machine=m68k-ericsson
585 os=-ose
586 ;;
587 OSE68000 | ose68000) # CYGNUS LOCAL
588 basic_machine=m68000-ericsson
589 os=-ose
590 ;;
591 os68k) # CYGNUS LOCAL
592 basic_machine=m68k-none
593 os=-os68k
594 ;;
595 sparclite-wrs) # CYGNUS LOCAL
596 basic_machine=sparclite-wrs
597 os=-vxworks
598 ;;
599 sparcfrw) # CYGNUS LOCAL
600 basic_machine=sparcfrw-sun
601 os=-sunos4
602 ;;
603 sparcfrwcompat) # CYGNUS LOCAL
604 basic_machine=sparcfrwcompat-sun
605 os=-sunos4
606 ;;
607 sparclitefrw) # CYGNUS LOCAL
608 basic_machine=sparclitefrw-fujitsu
609 os=-none
610 ;;
611 sparclitefrwcompat) # CYGNUS LOCAL
612 basic_machine=sparclitefrwcompat-fujitsu
613 os=-none
614 ;;
615 adobe68k) # CYGNUS LOCAL
616 basic_machine=m68010-adobe
617 os=-scout
618 ;;
619
620 xps | xps100) 519 xps | xps100)
621 basic_machine=xps100-honeywell 520 basic_machine=xps100-honeywell
622 ;; 521 ;;
623 none) 522 none)
624 basic_machine=none-none 523 basic_machine=none-none
636 rs6000) 535 rs6000)
637 basic_machine=rs6000-ibm 536 basic_machine=rs6000-ibm
638 ;; 537 ;;
639 vax) 538 vax)
640 basic_machine=vax-dec 539 basic_machine=vax-dec
540 ;;
541 pdp11)
542 basic_machine=pdp11-dec
641 ;; 543 ;;
642 we32k) 544 we32k)
643 basic_machine=we32k-att 545 basic_machine=we32k-att
644 ;; 546 ;;
645 sparc) 547 sparc)
682 os=`echo $os | sed -e 's|solaris1|sunos4|'` 584 os=`echo $os | sed -e 's|solaris1|sunos4|'`
683 ;; 585 ;;
684 -solaris) 586 -solaris)
685 os=-solaris2 587 os=-solaris2
686 ;; 588 ;;
589 -gnu/linux*)
590 os=`echo $os | sed -e 's|gnu/linux|linux|'`
591 ;;
687 # First accept the basic system types. 592 # First accept the basic system types.
688 # The portable systems comes first. 593 # The portable systems comes first.
689 # Each alternative must end in a *, to match a version number. 594 # Each alternative must end in a *, to match a version number.
690 # -sysv* is not here because it comes later, after sysvr4. 595 # -sysv* is not here because it comes later, after sysvr4.
691 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 596 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
692 | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]* | -hpux* \ 597 | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
693 | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 598 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
694 | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ 599 | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
695 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ 600 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
696 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ 601 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
697 | -hiux* | -386bsd* | -netbsd* | -riscix* | -lynxos* \ 602 | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
698 | -go32 | -sim | -es1800* | -udi | -hms* | -xray | -hds* \ 603 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
699 | -os68k* | -none* | -v88r* | -aout* | -coff | -elf* | -bosx* \ 604 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi)
700 | -abug | -ecoff* | -netware* ) 605 ;;
701 # The last three lines above are CYGNUS LOCAL
702 ;;
703 -sunos5*) 606 -sunos5*)
704 os=`echo $os | sed -e 's|sunos5|solaris2|'` 607 os=`echo $os | sed -e 's|sunos5|solaris2|'`
705 ;; 608 ;;
706 -sunos6*) 609 -sunos6*)
707 os=`echo $os | sed -e 's|sunos6|solaris3|'` 610 os=`echo $os | sed -e 's|sunos6|solaris3|'`
719 os=-bsd 622 os=-bsd
720 ;; 623 ;;
721 -acis*) 624 -acis*)
722 os=-aos 625 os=-aos
723 ;; 626 ;;
724 -386bsd) # CYGNUS LOCAL
725 os=-bsd
726 ;;
727 -ctix* | -uts*) 627 -ctix* | -uts*)
728 os=-sysv 628 os=-sysv
729 ;; 629 ;;
730 -triton*) 630 -triton*)
731 os=-sysv3 631 os=-sysv3
734 os=-sysv3 634 os=-sysv3
735 ;; 635 ;;
736 -svr4) 636 -svr4)
737 os=-sysv4 637 os=-sysv4
738 ;; 638 ;;
739 -unixware)
740 os=-sysv4
741 ;;
742 -svr3) 639 -svr3)
743 os=-sysv3 640 os=-sysv3
744 ;; 641 ;;
745 -sysvr4) 642 -sysvr4)
746 os=-sysv4 643 os=-sysv4
747 ;; 644 ;;
748 # This must come after -sysvr4. 645 # This must come after -sysvr4.
749 -sysv*) 646 -sysv*)
750 ;; 647 ;;
751 -ose*) # CYGNUS LOCAL
752 os=-ose
753 ;;
754 -es1800*) # CYGNUS LOCAL
755 os=-ose
756 ;;
757 -xenix) 648 -xenix)
758 os=-xenix 649 os=-xenix
759 ;; 650 ;;
760 -none) 651 -none)
761 ;; 652 ;;
762 *) 653 *)
763 # Get rid of the `-' at the beginning of $os. 654 # Get rid of the `-' at the beginning of $os.
764 os=`echo $1 | sed 's/[^-]*-//'` 655 os=`echo $os | sed 's/[^-]*-//'`
765 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 656 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
766 exit 1 657 exit 1
767 ;; 658 ;;
768 esac 659 esac
769 else 660 else
780 671
781 case $basic_machine in 672 case $basic_machine in
782 *-acorn) 673 *-acorn)
783 os=-riscix1.2 674 os=-riscix1.2
784 ;; 675 ;;
676 pdp11-*)
677 os=-none
678 ;;
785 *-dec | vax-*) 679 *-dec | vax-*)
786 os=-ultrix4.2 680 os=-ultrix4.2
681 ;;
682 m68*-apollo)
683 os=-domain
787 ;; 684 ;;
788 i386-sun) 685 i386-sun)
789 os=-sunos4.0.2 686 os=-sunos4.0.2
790 ;; 687 ;;
791 m68000-sun) 688 m68000-sun)
819 os=-dgux 716 os=-dgux
820 ;; 717 ;;
821 *-dolphin) 718 *-dolphin)
822 os=-sysv3 719 os=-sysv3
823 ;; 720 ;;
721 m68k-ccur)
722 os=-rtu
723 ;;
824 m88k-omron*) 724 m88k-omron*)
825 os=-luna 725 os=-luna
826 ;; 726 ;;
827 *-sequent) 727 *-sequent)
828 os=-bsd 728 os=-ptx
829 ;; 729 ;;
830 *-crds) 730 *-crds)
831 os=-unos 731 os=-unos
832 ;; 732 ;;
833 *-ns) 733 *-ns)
835 ;; 735 ;;
836 i370-*) 736 i370-*)
837 os=-mvs 737 os=-mvs
838 ;; 738 ;;
839 *-next) 739 *-next)
840 os=-bsd 740 os=-nextstep3
841 ;;
842 i[34]86-*)
843 os=-sco3.2v2
844 ;; 741 ;;
845 *-gould) 742 *-gould)
846 os=-sysv 743 os=-sysv
847 ;; 744 ;;
848 *-highlevel) 745 *-highlevel)
854 *-sgi) 751 *-sgi)
855 os=-irix 752 os=-irix
856 ;; 753 ;;
857 *-masscomp) 754 *-masscomp)
858 os=-rtu 755 os=-rtu
859 ;;
860 *-rom68k) # CYGNUS LOCAL
861 os=-coff
862 ;;
863 *-*bug) # CYGNUS LOCAL
864 os=-coff
865 ;; 756 ;;
866 *) 757 *)
867 os=-none 758 os=-none
868 ;; 759 ;;
869 esac 760 esac
879 vendor=acorn 770 vendor=acorn
880 ;; 771 ;;
881 -sunos*) 772 -sunos*)
882 vendor=sun 773 vendor=sun
883 ;; 774 ;;
884 -bosx*) # CYGNUS LOCAL
885 vendor=bull
886 ;;
887 -lynxos*) 775 -lynxos*)
888 vendor=lynx 776 vendor=lynx
889 ;; 777 ;;
890 -aix*) 778 -aix*)
891 vendor=ibm 779 vendor=ibm
909 vendor=ns 797 vendor=ns
910 ;; 798 ;;
911 -mvs*) 799 -mvs*)
912 vendor=ibm 800 vendor=ibm
913 ;; 801 ;;
802 -ptx*)
803 vendor=sequent
804 ;;
914 -vxworks*) 805 -vxworks*)
915 vendor=wrs # CYGNUS LOCAL 806 vendor=wrs
916 ;;
917 -hms*) # CYGNUS LOCAL
918 vendor=hitachi
919 ;; 807 ;;
920 esac 808 esac
921 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 809 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
922 ;; 810 ;;
923 esac 811 esac