* nlmconv.c (link_inputs): Call libiberty pexecute function.
[deliverable/binutils-gdb.git] / config.sub
1 #! /bin/sh
2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
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
6 # can handle that machine. It does not imply ALL GNU software can.
7 #
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
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
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
20 # Foundation, Inc., 59 Temple Place - Suite 330,
21 # Boston, MA 02111-1307, USA.
22
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28 # Configuration subroutine to validate and canonicalize a configuration type.
29 # Supply the specified configuration type as an argument.
30 # If it is invalid, we print an error message on stderr and exit with code 1.
31 # Otherwise, we print the canonical config type on stdout and succeed.
32
33 # This file is supposed to be the same for all GNU packages
34 # and recognize all the CPU types, system types and aliases
35 # that are meaningful with *any* GNU software.
36 # Each package is responsible for reporting which valid configurations
37 # it does not support. The user should be able to distinguish
38 # a failure to support a valid configuration from a meaningless
39 # configuration.
40
41 # The goal of this file is to map all the various variations of a given
42 # machine specification into a single specification in the form:
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
44 # or in some cases, the newer four-part form:
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46 # It is wrong to echo any other type of specification.
47
48 if [ x$1 = x ]
49 then
50 echo Configuration name missing. 1>&2
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52 echo "or $0 ALIAS" 1>&2
53 echo where ALIAS is a recognized configuration type. 1>&2
54 exit 1
55 fi
56
57 # First pass through any local machine types.
58 case $1 in
59 *local*)
60 echo $1
61 exit 0
62 ;;
63 *)
64 ;;
65 esac
66
67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
68 # Here we must recognize all the valid KERNEL-OS combinations.
69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
70 case $maybe_os in
71 linux-gnu*)
72 os=-$maybe_os
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74 ;;
75 *)
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
77 if [ $basic_machine != $1 ]
78 then os=`echo $1 | sed 's/.*-/-/'`
79 else os=; fi
80 ;;
81 esac
82
83 ### Let's recognize common machines as not being operating systems so
84 ### that things like config.sub decstation-3100 work. We also
85 ### recognize some manufacturers as not being operating systems, so we
86 ### can provide default operating systems below.
87 case $os in
88 -sun*os*)
89 # Prevent following clause from handling this invalid input.
90 ;;
91 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97 -apple)
98 os=
99 basic_machine=$1
100 ;;
101 -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL
102 os=
103 basic_machine=$1
104 ;;
105 -scout) # CYGNUS LOCAL
106 ;;
107 -wrs) # CYGNUS LOCAL
108 os=vxworks
109 basic_machine=$1
110 ;;
111 -hiuxmpp)
112 os=-hiuxmpp
113 ;;
114 -hiux*)
115 os=-hiuxwe2
116 ;;
117 -sco5)
118 os=sco3.2v5
119 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
120 ;;
121 -sco4)
122 os=-sco3.2v4
123 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
124 ;;
125 -sco3.2.[4-9]*)
126 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
127 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
128 ;;
129 -sco3.2v[4-9]*)
130 # Don't forget version if it is 3.2v4 or newer.
131 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
132 ;;
133 -sco*)
134 os=-sco3.2v2
135 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
136 ;;
137 -isc)
138 os=-isc2.2
139 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
140 ;;
141 -clix*)
142 basic_machine=clipper-intergraph
143 ;;
144 -isc*)
145 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
146 ;;
147 -lynx*)
148 os=-lynxos
149 ;;
150 -ptx*)
151 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
152 ;;
153 -windowsnt*)
154 os=`echo $os | sed -e 's/windowsnt/winnt/'`
155 ;;
156 -psos*)
157 os=-psos
158 ;;
159 esac
160
161 # Decode aliases for certain CPU-COMPANY combinations.
162 case $basic_machine in
163 # Recognize the basic CPU types without company name.
164 # Some are omitted here because they have special meanings below.
165 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arm \
166 | arme[lb] | pyramid | mn10200 | mn10300 \
167 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
168 | alpha | we32k | ns16k | clipper | i370 | sh \
169 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
170 | pdp11 | mips64el | mips64orion | mips64orionel \
171 | sparc | sparclet | sparclite | sparc64)
172 basic_machine=$basic_machine-unknown
173 ;;
174 m88110 | m680[01234]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL
175 basic_machine=$basic_machine-unknown
176 ;;
177 # CYGNUS LOCAL r3900
178 mipsr3900 | mipsr3900el)
179 basic_machine=$basic_machine-unknown
180 ;;
181 # END CYGNUS LOCAL r3900
182 mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300
183 basic_machine=$basic_machine-unknown
184 ;;
185 mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100
186 basic_machine=$basic_machine-unknown
187 ;;
188 mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000
189 basic_machine=$basic_machine-unknown
190 ;;
191 # start-sanitize-r5900
192 mips64vr5900 | mips64vr5900el) # CYGNUS LOCAL gavin/r5900
193 basic_machine=$basic_machine-unknown
194 ;;
195 # end-sanitize-r5900
196 mips16) # CYGNUS LOCAL krk/mips16
197 basic_machine=$basic_machine-unknown
198 ;;
199 # start-sanitize-tic80
200 tic80) # CYGNUS LOCAL fnf/TIc80
201 basic_machine=$basic_machine-unknown
202 ;;
203 # end-sanitize-tic80
204 # start-sanitize-v850
205 v850) # CYGNUS LOCAL jtc/v850
206 basic_machine=$basic_machine-unknown
207 ;;
208 # end-sanitize-v850
209 d10v) # CYGNUS LOCAL meissner/d10v
210 basic_machine=$basic_machine-unknown
211 ;;
212 # start-sanitize-d30v
213 d30v) # CYGNUS LOCAL hunt/d30v
214 basic_machine=$basic_machine-unknown
215 ;;
216 # end-sanitize-d30v
217 # We use `pc' rather than `unknown'
218 # because (1) that's what they normally are, and
219 # (2) the word "unknown" tends to confuse beginning users.
220 i[3456]86)
221 basic_machine=$basic_machine-pc
222 ;;
223 # Object if more than one company name word.
224 *-*-*)
225 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
226 exit 1
227 ;;
228 # Recognize the basic CPU types with company name.
229 vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
230 | m88k-* | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
231 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
232 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
233 | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
234 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
235 | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
236 | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
237 ;;
238 m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # CYGNUS LOCAL
239 ;;
240 # start-sanitize-v850
241 v850-*) # CYGNUS LOCAL
242 ;;
243 # end-sanitize-v850
244 # start-sanitize-d30v
245 d30v-*) # CYGNUS LOCAL
246 ;;
247 # end-sanitize-d30v
248 mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300
249 ;;
250 mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100
251 ;;
252 # start-sanitize-r5900
253 mips64vr5900-* | mips64vr5900el-*) # CYGNUS LOCAL gavin/r5900
254 ;;
255 # end-sanitize-r5900
256 mips16-*) # CYGNUS LOCAL krk/mips16
257 ;;
258 # CYGNUS LOCAL r3900
259 mipsr3900-* | mipsr3900el-*)
260 ;;
261 # END CYGNUS LOCAL r3900
262 # start-sanitize-tic80
263 tic80-*) # CYGNUS LOCAL fnf/TIc80
264 ;;
265 # end-sanitize-tic80
266 # Recognize the various machine names and aliases which stand
267 # for a CPU type and a company and sometimes even an OS.
268 386bsd) # CYGNUS LOCAL
269 basic_machine=i386-unknown
270 os=-bsd
271 ;;
272 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
273 basic_machine=m68000-att
274 ;;
275 3b*)
276 basic_machine=we32k-att
277 ;;
278 a29khif) # CYGNUS LOCAL
279 basic_machine=a29k-amd
280 os=-udi
281 ;;
282 adobe68k) # CYGNUS LOCAL
283 basic_machine=m68010-adobe
284 os=-scout
285 ;;
286 alliant | fx80)
287 basic_machine=fx80-alliant
288 ;;
289 altos | altos3068)
290 basic_machine=m68k-altos
291 ;;
292 am29k)
293 basic_machine=a29k-none
294 os=-bsd
295 ;;
296 amdahl)
297 basic_machine=580-amdahl
298 os=-sysv
299 ;;
300 amiga | amiga-*)
301 basic_machine=m68k-cbm
302 ;;
303 amigados)
304 basic_machine=m68k-cbm
305 os=-amigados
306 ;;
307 amigaunix | amix)
308 basic_machine=m68k-cbm
309 os=-sysv4
310 ;;
311 apollo68)
312 basic_machine=m68k-apollo
313 os=-sysv
314 ;;
315 apollo68bsd) # CYGNUS LOCAL
316 basic_machine=m68k-apollo
317 os=-bsd
318 ;;
319 # start-sanitize-arc
320 arc) # CYGNUS LOCAL
321 basic_machine=arc-unknown
322 ;;
323 arc-*) # CYGNUS LOCAL
324 ;;
325 # end-sanitize-arc
326 aux)
327 basic_machine=m68k-apple
328 os=-aux
329 ;;
330 balance)
331 basic_machine=ns32k-sequent
332 os=-dynix
333 ;;
334 convex-c1)
335 basic_machine=c1-convex
336 os=-bsd
337 ;;
338 convex-c2)
339 basic_machine=c2-convex
340 os=-bsd
341 ;;
342 convex-c32)
343 basic_machine=c32-convex
344 os=-bsd
345 ;;
346 convex-c34)
347 basic_machine=c34-convex
348 os=-bsd
349 ;;
350 convex-c38)
351 basic_machine=c38-convex
352 os=-bsd
353 ;;
354 cray | ymp)
355 basic_machine=ymp-cray
356 os=-unicos
357 ;;
358 cray2)
359 basic_machine=cray2-cray
360 os=-unicos
361 ;;
362 [ctj]90-cray)
363 basic_machine=c90-cray
364 os=-unicos
365 ;;
366 crds | unos)
367 basic_machine=m68k-crds
368 ;;
369 da30 | da30-*)
370 basic_machine=m68k-da30
371 ;;
372 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
373 basic_machine=mips-dec
374 ;;
375 delta | 3300 | motorola-3300 | motorola-delta \
376 | 3300-motorola | delta-motorola)
377 basic_machine=m68k-motorola
378 ;;
379 delta88)
380 basic_machine=m88k-motorola
381 os=-sysv3
382 ;;
383 dpx20 | dpx20-*)
384 basic_machine=rs6000-bull
385 os=-bosx
386 ;;
387 dpx2* | dpx2*-bull)
388 basic_machine=m68k-bull
389 os=-sysv3
390 ;;
391 ebmon29k)
392 basic_machine=a29k-amd
393 os=-ebmon
394 ;;
395 elxsi)
396 basic_machine=elxsi-elxsi
397 os=-bsd
398 ;;
399 encore | umax | mmax)
400 basic_machine=ns32k-encore
401 ;;
402 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL
403 basic_machine=m68k-ericsson
404 os=-ose
405 ;;
406 fx2800)
407 basic_machine=i860-alliant
408 ;;
409 genix)
410 basic_machine=ns32k-ns
411 ;;
412 gmicro)
413 basic_machine=tron-gmicro
414 os=-sysv
415 ;;
416 hiuxmpp)
417 basic_machine=hppa1.1-hitachi
418 os=-hiuxmpp
419 ;;
420 h3050r* | hiux*)
421 basic_machine=hppa1.1-hitachi
422 os=-hiuxwe2
423 ;;
424 h8300hms)
425 basic_machine=h8300-hitachi
426 os=-hms
427 ;;
428 h8300xray) # CYGNUS LOCAL
429 basic_machine=h8300-hitachi
430 os=-xray
431 ;;
432 h8500hms) # CYGNUS LOCAL
433 basic_machine=h8500-hitachi
434 os=-hms
435 ;;
436 harris)
437 basic_machine=m88k-harris
438 os=-sysv3
439 ;;
440 hp300-*)
441 basic_machine=m68k-hp
442 ;;
443 hp300bsd)
444 basic_machine=m68k-hp
445 os=-bsd
446 ;;
447 hp300hpux)
448 basic_machine=m68k-hp
449 os=-hpux
450 ;;
451 w89k-*) # CYGNUS LOCAL
452 basic_machine=hppa1.1-winbond
453 os=-proelf
454 ;;
455 op50n-*) # CYGNUS LOCAL
456 basic_machine=hppa1.1-oki
457 os=-proelf
458 ;;
459 op60c-*) # CYGNUS LOCAL
460 basic_machine=hppa1.1-oki
461 os=-proelf
462 ;;
463 hppro) # CYGNUS LOCAL
464 basic_machine=hppa1.1-hp
465 os=-proelf
466 ;;
467 hp9k2[0-9][0-9] | hp9k31[0-9])
468 basic_machine=m68000-hp
469 ;;
470 hp9k3[2-9][0-9])
471 basic_machine=m68k-hp
472 ;;
473 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
474 basic_machine=hppa1.1-hp
475 ;;
476 hp9k8[0-9][0-9] | hp8[0-9][0-9])
477 basic_machine=hppa1.0-hp
478 ;;
479 hppa-next)
480 os=-nextstep3
481 ;;
482 hppaosf) # CYGNUS LOCAL
483 basic_machine=hppa1.1-hp
484 os=-osf
485 ;;
486 i370-ibm* | ibm*)
487 basic_machine=i370-ibm
488 os=-mvs
489 ;;
490 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
491 i[3456]86v32)
492 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
493 os=-sysv32
494 ;;
495 i[3456]86v4*)
496 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
497 os=-sysv4
498 ;;
499 i[3456]86v)
500 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
501 os=-sysv
502 ;;
503 i[3456]86sol2)
504 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
505 os=-solaris2
506 ;;
507 i386mach) # CYGNUS LOCAL
508 basic_machine=i386-mach
509 os=-mach
510 ;;
511 i386-vsta | vsta) # CYGNUS LOCAL
512 basic_machine=i386-unknown
513 os=-vsta
514 ;;
515 i386-go32 | go32) # CYGNUS LOCAL
516 basic_machine=i386-unknown
517 os=-go32
518 ;;
519 iris | iris4d)
520 basic_machine=mips-sgi
521 case $os in
522 -irix*)
523 ;;
524 *)
525 os=-irix4
526 ;;
527 esac
528 ;;
529 isi68 | isi)
530 basic_machine=m68k-isi
531 os=-sysv
532 ;;
533 m88k-omron*)
534 basic_machine=m88k-omron
535 ;;
536 magnum | m3230)
537 basic_machine=mips-mips
538 os=-sysv
539 ;;
540 merlin)
541 basic_machine=ns32k-utek
542 os=-sysv
543 ;;
544 miniframe)
545 basic_machine=m68000-convergent
546 ;;
547 mipsel*-linux*)
548 basic_machine=mipsel-unknown
549 os=-linux
550 ;;
551 mips*-linux*)
552 basic_machine=mips-unknown
553 os=-linux
554 ;;
555 mips3*-*)
556 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
557 ;;
558 mips3*)
559 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
560 ;;
561 monitor) # CYGNUS LOCAL
562 basic_machine=m68k-rom68k
563 os=-coff
564 ;;
565 msdos) # CYGNUS LOCAL
566 basic_machine=i386-unknown
567 os=-msdos
568 ;;
569 ncr3000)
570 basic_machine=i486-ncr
571 os=-sysv4
572 ;;
573 netbsd386)
574 basic_machine=i386-unknown # CYGNUS LOCAL
575 os=-netbsd
576 ;;
577 news | news700 | news800 | news900)
578 basic_machine=m68k-sony
579 os=-newsos
580 ;;
581 news1000)
582 basic_machine=m68030-sony
583 os=-newsos
584 ;;
585 news-3600 | risc-news)
586 basic_machine=mips-sony
587 os=-newsos
588 ;;
589 necv70) # CYGNUS LOCAL
590 basic_machine=v70-nec
591 os=-sysv
592 ;;
593 next | m*-next )
594 basic_machine=m68k-next
595 case $os in
596 -nextstep* )
597 ;;
598 -ns2*)
599 os=-nextstep2
600 ;;
601 *)
602 os=-nextstep3
603 ;;
604 esac
605 ;;
606 nh3000)
607 basic_machine=m68k-harris
608 os=-cxux
609 ;;
610 nh[45]000)
611 basic_machine=m88k-harris
612 os=-cxux
613 ;;
614 nindy960)
615 basic_machine=i960-intel
616 os=-nindy
617 ;;
618 mon960) # CYGNUS LOCAL
619 basic_machine=i960-intel
620 os=-mon960
621 ;;
622 np1)
623 basic_machine=np1-gould
624 ;;
625 OSE68000 | ose68000) # CYGNUS LOCAL
626 basic_machine=m68000-ericsson
627 os=-ose
628 ;;
629 os68k) # CYGNUS LOCAL
630 basic_machine=m68k-none
631 os=-os68k
632 ;;
633 pa-hitachi)
634 basic_machine=hppa1.1-hitachi
635 os=-hiuxwe2
636 ;;
637 paragon)
638 basic_machine=i860-intel
639 os=-osf
640 ;;
641 pbd)
642 basic_machine=sparc-tti
643 ;;
644 pbb)
645 basic_machine=m68k-tti
646 ;;
647 pc532 | pc532-*)
648 basic_machine=ns32k-pc532
649 ;;
650 pentium | p5)
651 basic_machine=i586-intel
652 ;;
653 pentiumpro | p6)
654 basic_machine=i686-intel
655 ;;
656 pentium-* | p5-*)
657 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
658 ;;
659 pentiumpro-* | p6-*)
660 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
661 ;;
662 k5)
663 # We don't have specific support for AMD's K5 yet, so just call it a Pentium
664 basic_machine=i586-amd
665 ;;
666 nexen)
667 # We don't have specific support for Nexgen yet, so just call it a Pentium
668 basic_machine=i586-nexgen
669 ;;
670 pn)
671 basic_machine=pn-gould
672 ;;
673 power) basic_machine=rs6000-ibm
674 ;;
675 ppc) basic_machine=powerpc-unknown
676 ;;
677 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
678 ;;
679 ppcle | powerpclittle | ppc-le | powerpc-little)
680 basic_machine=powerpcle-unknown
681 ;;
682 ppcle-* | powerpclittle-*)
683 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
684 ;;
685 ps2)
686 basic_machine=i386-ibm
687 ;;
688 # CYGNUS LOCAL r3900
689 r3900) # CYGNUS LOCAL
690 basic_machine=mipsr3900-unknown
691 ;;
692 r3900el) # CYGNUS LOCAL
693 basic_machine=mipsr3900el-unknown
694 ;;
695 # END CYGNUS LOCAL r3900
696 # start-sanitize-r5900
697 r5900) # CYGNUS LOCAL
698 basic_machine=mips64vr5900el-unknown
699 ;;
700 # end-sanitize-r5900
701 rom68k) # CYGNUS LOCAL
702 basic_machine=m68k-rom68k
703 os=-coff
704 ;;
705 rm[46]00)
706 basic_machine=mips-siemens
707 ;;
708 rtpc | rtpc-*)
709 basic_machine=romp-ibm
710 ;;
711 sa29200) # CYGNUS LOCAL
712 basic_machine=a29k-amd
713 os=-udi
714 ;;
715 sequent)
716 basic_machine=i386-sequent
717 ;;
718 sh)
719 basic_machine=sh-hitachi
720 os=-hms
721 ;;
722 sparclite-wrs) # CYGNUS LOCAL
723 basic_machine=sparclite-wrs
724 os=-vxworks
725 ;;
726 sps7)
727 basic_machine=m68k-bull
728 os=-sysv2
729 ;;
730 spur)
731 basic_machine=spur-unknown
732 ;;
733 st2000) # CYGNUS LOCAL
734 basic_machine=m68k-tandem
735 ;;
736 stratus) # CYGNUS LOCAL
737 basic_machine=i860-stratus
738 os=-sysv4
739 ;;
740 sun2)
741 basic_machine=m68000-sun
742 ;;
743 sun2os3)
744 basic_machine=m68000-sun
745 os=-sunos3
746 ;;
747 sun2os4)
748 basic_machine=m68000-sun
749 os=-sunos4
750 ;;
751 sun3os3)
752 basic_machine=m68k-sun
753 os=-sunos3
754 ;;
755 sun3os4)
756 basic_machine=m68k-sun
757 os=-sunos4
758 ;;
759 sun4os3)
760 basic_machine=sparc-sun
761 os=-sunos3
762 ;;
763 sun4os4)
764 basic_machine=sparc-sun
765 os=-sunos4
766 ;;
767 sun4sol2)
768 basic_machine=sparc-sun
769 os=-solaris2
770 ;;
771 sun3 | sun3-*)
772 basic_machine=m68k-sun
773 ;;
774 sun4)
775 basic_machine=sparc-sun
776 ;;
777 sun386 | sun386i | roadrunner)
778 basic_machine=i386-sun
779 ;;
780 symmetry)
781 basic_machine=i386-sequent
782 os=-dynix
783 ;;
784 tower | tower-32)
785 basic_machine=m68k-ncr
786 ;;
787 udi29k)
788 basic_machine=a29k-amd
789 os=-udi
790 ;;
791 ultra3)
792 basic_machine=a29k-nyu
793 os=-sym1
794 ;;
795 v810 | necv810) # CYGNUS LOCAL
796 basic_machine=v810-nec
797 os=-none
798 ;;
799 vaxv)
800 basic_machine=vax-dec
801 os=-sysv
802 ;;
803 vms)
804 basic_machine=vax-dec
805 os=-vms
806 ;;
807 vpp*|vx|vx-*)
808 basic_machine=f301-fujitsu
809 ;;
810 vxworks960)
811 basic_machine=i960-wrs
812 os=-vxworks
813 ;;
814 vxworks68)
815 basic_machine=m68k-wrs
816 os=-vxworks
817 ;;
818 vxworks29k)
819 basic_machine=a29k-wrs
820 os=-vxworks
821 ;;
822 w65*) # CYGNUS LOCAL
823 basic_machine=w65-wdc
824 os=-none
825 ;;
826 xmp)
827 basic_machine=xmp-cray
828 os=-unicos
829 ;;
830 xps | xps100)
831 basic_machine=xps100-honeywell
832 ;;
833 z8k-*-coff) # CYGNUS LOCAL
834 basic_machine=z8k-unknown
835 os=-sim
836 ;;
837 none)
838 basic_machine=none-none
839 os=-none
840 ;;
841
842 # Here we handle the default manufacturer of certain CPU types. It is in
843 # some cases the only manufacturer, in others, it is the most popular.
844 w89k) # CYGNUS LOCAL
845 basic_machine=hppa1.1-winbond
846 ;;
847 op50n) # CYGNUS LOCAL
848 basic_machine=hppa1.1-oki
849 ;;
850 op60c) # CYGNUS LOCAL
851 basic_machine=hppa1.1-oki
852 ;;
853 mips)
854 if [ x$os = x-linux ]; then
855 basic_machine=mips-unknown
856 else
857 basic_machine=mips-mips
858 fi
859 ;;
860 romp)
861 basic_machine=romp-ibm
862 ;;
863 rs6000)
864 basic_machine=rs6000-ibm
865 ;;
866 vax)
867 basic_machine=vax-dec
868 ;;
869 pdp11)
870 basic_machine=pdp11-dec
871 ;;
872 we32k)
873 basic_machine=we32k-att
874 ;;
875 sparc)
876 basic_machine=sparc-sun
877 ;;
878 cydra)
879 basic_machine=cydra-cydrome
880 ;;
881 orion)
882 basic_machine=orion-highlevel
883 ;;
884 orion105)
885 basic_machine=clipper-highlevel
886 ;;
887 mac | mpw | mac-mpw) # CYGNUS LOCAL
888 basic_machine=m68k-apple
889 ;;
890 pmac | pmac-mpw) # CYGNUS LOCAL
891 basic_machine=powerpc-apple
892 ;;
893 *)
894 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
895 exit 1
896 ;;
897 esac
898
899 # Here we canonicalize certain aliases for manufacturers.
900 case $basic_machine in
901 *-digital*)
902 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
903 ;;
904 *-commodore*)
905 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
906 ;;
907 *)
908 ;;
909 esac
910
911 # Decode manufacturer-specific aliases for certain operating systems.
912
913 if [ x"$os" != x"" ]
914 then
915 case $os in
916 # First match some system type aliases
917 # that might get confused with valid system types.
918 # -solaris* is a basic system type, with this one exception.
919 -solaris1 | -solaris1.*)
920 os=`echo $os | sed -e 's|solaris1|sunos4|'`
921 ;;
922 -solaris)
923 os=-solaris2
924 ;;
925 -unixware* | svr4*)
926 os=-sysv4
927 ;;
928 -gnu/linux*)
929 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
930 ;;
931 # First accept the basic system types.
932 # The portable systems comes first.
933 # Each alternative MUST END IN A *, to match a version number.
934 # -sysv* is not here because it comes later, after sysvr4.
935 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
936 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
937 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
938 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
939 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
940 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
941 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
942 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
943 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
944 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
945 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
946 | -linux-gnu* | -uxpv*)
947 # Remember, each alternative MUST END IN *, to match a version number.
948 ;;
949 # CYGNUS LOCAL
950 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
951 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
952 | -macos* | -mpw* | -magic* | -mon960* | -lnews* )
953 ;;
954 -mac*)
955 os=`echo $os | sed -e 's|mac|macos|'`
956 ;;
957 # END CYGNUS LOCAL
958 -linux*)
959 os=`echo $os | sed -e 's|linux|linux-gnu|'`
960 ;;
961 -sunos5*)
962 os=`echo $os | sed -e 's|sunos5|solaris2|'`
963 ;;
964 -sunos6*)
965 os=`echo $os | sed -e 's|sunos6|solaris3|'`
966 ;;
967 -osfrose*)
968 os=-osfrose
969 ;;
970 -osf*)
971 os=-osf
972 ;;
973 -utek*)
974 os=-bsd
975 ;;
976 -dynix*)
977 os=-bsd
978 ;;
979 -acis*)
980 os=-aos
981 ;;
982 -386bsd) # CYGNUS LOCAL
983 os=-bsd
984 ;;
985 -ctix* | -uts*)
986 os=-sysv
987 ;;
988 -ns2 )
989 os=-nextstep2
990 ;;
991 # Preserve the version number of sinix5.
992 -sinix5.*)
993 os=`echo $os | sed -e 's|sinix|sysv|'`
994 ;;
995 -sinix*)
996 os=-sysv4
997 ;;
998 -triton*)
999 os=-sysv3
1000 ;;
1001 -oss*)
1002 os=-sysv3
1003 ;;
1004 -svr4)
1005 os=-sysv4
1006 ;;
1007 -svr3)
1008 os=-sysv3
1009 ;;
1010 -sysvr4)
1011 os=-sysv4
1012 ;;
1013 # This must come after -sysvr4.
1014 -sysv*)
1015 ;;
1016 -ose*) # CYGNUS LOCAL
1017 os=-ose
1018 ;;
1019 -es1800*) # CYGNUS LOCAL
1020 os=-ose
1021 ;;
1022 -xenix)
1023 os=-xenix
1024 ;;
1025 -none)
1026 ;;
1027 *)
1028 # Get rid of the `-' at the beginning of $os.
1029 os=`echo $os | sed 's/[^-]*-//'`
1030 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1031 exit 1
1032 ;;
1033 esac
1034 else
1035
1036 # Here we handle the default operating systems that come with various machines.
1037 # The value should be what the vendor currently ships out the door with their
1038 # machine or put another way, the most popular os provided with the machine.
1039
1040 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1041 # "-sun"), then you have to tell the case statement up towards the top
1042 # that MANUFACTURER isn't an operating system. Otherwise, code above
1043 # will signal an error saying that MANUFACTURER isn't an operating
1044 # system, and we'll never get to this point.
1045
1046 case $basic_machine in
1047 *-acorn)
1048 os=-riscix1.2
1049 ;;
1050 arm*-semi)
1051 os=-aout
1052 ;;
1053 pdp11-*)
1054 os=-none
1055 ;;
1056 *-dec | vax-*)
1057 os=-ultrix4.2
1058 ;;
1059 m68*-apollo)
1060 os=-domain
1061 ;;
1062 i386-sun)
1063 os=-sunos4.0.2
1064 ;;
1065 m68000-sun)
1066 os=-sunos3
1067 # This also exists in the configure program, but was not the
1068 # default.
1069 # os=-sunos4
1070 ;;
1071 m68*-cisco) # CYGNUS LOCAL
1072 os=-aout
1073 ;;
1074 mips*-cisco) # CYGNUS LOCAL
1075 os=-elf
1076 ;;
1077 mips*-*) # CYGNUS LOCAL
1078 os=-elf
1079 ;;
1080 *-tti) # must be before sparc entry or we get the wrong os.
1081 os=-sysv3
1082 ;;
1083 sparc-* | *-sun)
1084 os=-sunos4.1.1
1085 ;;
1086 *-be) # CYGNUS LOCAL
1087 os=-beos
1088 ;;
1089 *-ibm)
1090 os=-aix
1091 ;;
1092 *-wec) # CYGNUS LOCAL
1093 os=-proelf
1094 ;;
1095 *-winbond) # CYGNUS LOCAL
1096 os=-proelf
1097 ;;
1098 *-oki) # CYGNUS LOCAL
1099 os=-proelf
1100 ;;
1101 *-hp)
1102 os=-hpux
1103 ;;
1104 *-hitachi)
1105 os=-hiux
1106 ;;
1107 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1108 os=-sysv
1109 ;;
1110 *-cbm)
1111 os=-amigados
1112 ;;
1113 *-dg)
1114 os=-dgux
1115 ;;
1116 *-dolphin)
1117 os=-sysv3
1118 ;;
1119 m68k-ccur)
1120 os=-rtu
1121 ;;
1122 m88k-omron*)
1123 os=-luna
1124 ;;
1125 *-next )
1126 os=-nextstep
1127 ;;
1128 *-sequent)
1129 os=-ptx
1130 ;;
1131 *-crds)
1132 os=-unos
1133 ;;
1134 *-ns)
1135 os=-genix
1136 ;;
1137 i370-*)
1138 os=-mvs
1139 ;;
1140 *-next)
1141 os=-nextstep3
1142 ;;
1143 *-gould)
1144 os=-sysv
1145 ;;
1146 *-highlevel)
1147 os=-bsd
1148 ;;
1149 *-encore)
1150 os=-bsd
1151 ;;
1152 *-sgi)
1153 os=-irix
1154 ;;
1155 *-siemens)
1156 os=-sysv4
1157 ;;
1158 *-masscomp)
1159 os=-rtu
1160 ;;
1161 f301-fujitsu)
1162 os=-uxpv
1163 ;;
1164 *-rom68k) # CYGNUS LOCAL
1165 os=-coff
1166 ;;
1167 *-*bug) # CYGNUS LOCAL
1168 os=-coff
1169 ;;
1170 *-apple) # CYGNUS LOCAL
1171 os=-macos
1172 ;;
1173 *)
1174 os=-none
1175 ;;
1176 esac
1177 fi
1178
1179 # Here we handle the case where we know the os, and the CPU type, but not the
1180 # manufacturer. We pick the logical manufacturer.
1181 vendor=unknown
1182 case $basic_machine in
1183 *-unknown)
1184 case $os in
1185 -riscix*)
1186 vendor=acorn
1187 ;;
1188 -sunos*)
1189 vendor=sun
1190 ;;
1191 -aix*)
1192 vendor=ibm
1193 ;;
1194 -beos*) # CYGNUS LOCAL
1195 vendor=be
1196 ;;
1197 -hpux*)
1198 vendor=hp
1199 ;;
1200 -hiux*)
1201 vendor=hitachi
1202 ;;
1203 -unos*)
1204 vendor=crds
1205 ;;
1206 -dgux*)
1207 vendor=dg
1208 ;;
1209 -luna*)
1210 vendor=omron
1211 ;;
1212 -genix*)
1213 vendor=ns
1214 ;;
1215 -mvs*)
1216 vendor=ibm
1217 ;;
1218 -ptx*)
1219 vendor=sequent
1220 ;;
1221 -vxsim* | -vxworks*)
1222 vendor=wrs
1223 ;;
1224 -aux*)
1225 vendor=apple
1226 ;;
1227 -hms*) # CYGNUS LOCAL
1228 vendor=hitachi
1229 ;;
1230 -mpw* | -macos*) # CYGNUS LOCAL
1231 vendor=apple
1232 ;;
1233 esac
1234 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1235 ;;
1236 esac
1237
1238 echo $basic_machine$os
This page took 0.056726 seconds and 4 git commands to generate.