|
|
1.1.1.8 root 1: #! /bin/sh
1.1.1.3 root 2: # Configuration validation subroutine script, version 1.1.
1.1.1.8 root 3: # Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
1.1.1.3 root 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.
1.1.1.7 root 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
1.1.1.8 root 20: # Foundation, Inc., 59 Temple Place - Suite 330,
21: # Boston, MA 02111-1307, USA.
1.1.1.7 root 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.
1.1 root 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
1.1.1.4 root 44: # It is wrong to echo any other type of specification.
1.1 root 45:
1.1.1.8 root 46: if [ x$1 = x ]
47: then
48: echo Configuration name missing. 1>&2
49: echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
50: echo "or $0 ALIAS" 1>&2
51: echo where ALIAS is a recognized configuration type. 1>&2
52: exit 1
53: fi
54:
1.1 root 55: # First pass through any local machine types.
56: case $1 in
57: *local*)
58: echo $1
59: exit 0
60: ;;
61: *)
62: ;;
63: esac
64:
1.1.1.9 ! root 65: # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
! 66: # Here we must recognize all the valid KERNEL-OS combinations.
! 67: maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
! 68: case $maybe_os in
! 69: linux-gnu*)
! 70: os=-$maybe_os
! 71: basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
! 72: ;;
! 73: *)
! 74: basic_machine=`echo $1 | sed 's/-[^-]*$//'`
! 75: if [ $basic_machine != $1 ]
! 76: then os=`echo $1 | sed 's/.*-/-/'`
! 77: else os=; fi
! 78: ;;
! 79: esac
1.1 root 80:
1.1.1.4 root 81: ### Let's recognize common machines as not being operating systems so
82: ### that things like config.sub decstation-3100 work. We also
83: ### recognize some manufacturers as not being operating systems, so we
84: ### can provide default operating systems below.
1.1 root 85: case $os in
1.1.1.5 root 86: -sun*os*)
87: # Prevent following clause from handling this invalid input.
88: ;;
1.1 root 89: -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
90: -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1.1.1.7 root 91: -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
1.1.1.6 root 92: -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1.1 root 93: -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1.1.1.4 root 94: -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
1.1 root 95: os=
96: basic_machine=$1
97: ;;
1.1.1.6 root 98: -hiux*)
99: os=-hiuxwe2
100: ;;
101: -sco4)
102: os=-sco3.2v4
103: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
104: ;;
105: -sco3.2.[4-9]*)
106: os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
107: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
108: ;;
1.1.1.4 root 109: -sco3.2v[4-9]*)
110: # Don't forget version if it is 3.2v4 or newer.
1.1.1.5 root 111: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1.1.1.4 root 112: ;;
1.1 root 113: -sco*)
1.1.1.3 root 114: os=-sco3.2v2
1.1.1.5 root 115: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1.1 root 116: ;;
1.1.1.4 root 117: -isc)
118: os=-isc2.2
1.1.1.5 root 119: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
120: ;;
121: -clix*)
122: basic_machine=clipper-intergraph
1.1.1.4 root 123: ;;
1.1 root 124: -isc*)
1.1.1.5 root 125: basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
1.1 root 126: ;;
1.1.1.8 root 127: -lynx*)
1.1.1.6 root 128: os=-lynxos
129: ;;
1.1.1.7 root 130: -ptx*)
131: basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
132: ;;
133: -windowsnt*)
134: os=`echo $os | sed -e 's/windowsnt/winnt/'`
135: ;;
1.1 root 136: esac
137:
138: # Decode aliases for certain CPU-COMPANY combinations.
139: case $basic_machine in
1.1.1.6 root 140: # Recognize the basic CPU types without company name.
1.1 root 141: # Some are omitted here because they have special meanings below.
1.1.1.9 ! root 142: tahoe | i[3456]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
1.1.1.8 root 143: | arme[lb] | pyramid \
1.1.1.4 root 144: | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
1.1.1.6 root 145: | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
1.1.1.8 root 146: | powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
147: | pdp11 | mips64el | mips64orion | mips64orionel \
148: | sparc)
1.1 root 149: basic_machine=$basic_machine-unknown
150: ;;
1.1.1.5 root 151: # Object if more than one company name word.
152: *-*-*)
153: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
154: exit 1
155: ;;
1.1.1.6 root 156: # Recognize the basic CPU types with company name.
1.1.1.9 ! root 157: vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
1.1 root 158: | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
1.1.1.8 root 159: | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
1.1 root 160: | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
1.1.1.4 root 161: | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
1.1.1.5 root 162: | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
1.1.1.8 root 163: | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
164: | mips64el-* | mips64orion-* | mips64orionel-*)
1.1 root 165: ;;
166: # Recognize the various machine names and aliases which stand
167: # for a CPU type and a company and sometimes even an OS.
1.1.1.7 root 168: 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
169: basic_machine=m68000-att
1.1 root 170: ;;
1.1.1.7 root 171: 3b*)
172: basic_machine=we32k-att
1.1 root 173: ;;
1.1.1.7 root 174: alliant | fx80)
175: basic_machine=fx80-alliant
1.1.1.5 root 176: ;;
1.1.1.7 root 177: altos | altos3068)
178: basic_machine=m68k-altos
1.1 root 179: ;;
1.1.1.7 root 180: am29k)
181: basic_machine=a29k-none
182: os=-bsd
1.1.1.3 root 183: ;;
1.1.1.7 root 184: amdahl)
185: basic_machine=580-amdahl
1.1 root 186: os=-sysv
187: ;;
1.1.1.7 root 188: amiga | amiga-*)
189: basic_machine=m68k-cbm
1.1.1.4 root 190: ;;
1.1.1.7 root 191: amigados)
192: basic_machine=m68k-cbm
193: os=-amigados
1.1 root 194: ;;
1.1.1.7 root 195: amigaunix | amix)
196: basic_machine=m68k-cbm
197: os=-sysv4
1.1.1.6 root 198: ;;
1.1.1.7 root 199: apollo68)
200: basic_machine=m68k-apollo
201: os=-sysv
202: ;;
203: balance)
204: basic_machine=ns32k-sequent
205: os=-dynix
1.1 root 206: ;;
207: convex-c1)
208: basic_machine=c1-convex
209: os=-bsd
210: ;;
211: convex-c2)
212: basic_machine=c2-convex
213: os=-bsd
214: ;;
215: convex-c32)
216: basic_machine=c32-convex
217: os=-bsd
218: ;;
219: convex-c34)
220: basic_machine=c34-convex
221: os=-bsd
222: ;;
223: convex-c38)
224: basic_machine=c38-convex
225: os=-bsd
226: ;;
1.1.1.7 root 227: cray | ymp)
228: basic_machine=ymp-cray
229: os=-unicos
1.1 root 230: ;;
1.1.1.7 root 231: cray2)
232: basic_machine=cray2-cray
233: os=-unicos
1.1 root 234: ;;
235: crds | unos)
236: basic_machine=m68k-crds
237: ;;
1.1.1.7 root 238: da30 | da30-*)
239: basic_machine=m68k-da30
1.1.1.4 root 240: ;;
1.1.1.7 root 241: decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
242: basic_machine=mips-dec
1.1.1.3 root 243: ;;
1.1 root 244: delta | 3300 | motorola-3300 | motorola-delta \
245: | 3300-motorola | delta-motorola)
246: basic_machine=m68k-motorola
247: ;;
1.1.1.7 root 248: delta88)
249: basic_machine=m88k-motorola
250: os=-sysv3
1.1 root 251: ;;
1.1.1.7 root 252: dpx20 | dpx20-*)
253: basic_machine=rs6000-bull
254: os=-bosx
1.1 root 255: ;;
1.1.1.7 root 256: dpx2* | dpx2*-bull)
257: basic_machine=m68k-bull
258: os=-sysv3
1.1 root 259: ;;
1.1.1.7 root 260: ebmon29k)
261: basic_machine=a29k-amd
262: os=-ebmon
1.1 root 263: ;;
1.1.1.7 root 264: elxsi)
265: basic_machine=elxsi-elxsi
266: os=-bsd
1.1 root 267: ;;
1.1.1.7 root 268: encore | umax | mmax)
269: basic_machine=ns32k-encore
1.1 root 270: ;;
1.1.1.7 root 271: fx2800)
272: basic_machine=i860-alliant
1.1 root 273: ;;
1.1.1.7 root 274: genix)
275: basic_machine=ns32k-ns
1.1 root 276: ;;
1.1.1.7 root 277: gmicro)
278: basic_machine=tron-gmicro
279: os=-sysv
1.1.1.2 root 280: ;;
1.1.1.7 root 281: h3050r* | hiux*)
282: basic_machine=hppa1.1-hitachi
283: os=-hiuxwe2
1.1 root 284: ;;
1.1.1.7 root 285: h8300hms)
286: basic_machine=h8300-hitachi
287: os=-hms
1.1 root 288: ;;
1.1.1.7 root 289: harris)
290: basic_machine=m88k-harris
291: os=-sysv3
1.1 root 292: ;;
1.1.1.7 root 293: hp300-*)
294: basic_machine=m68k-hp
1.1.1.3 root 295: ;;
1.1.1.7 root 296: hp300bsd)
297: basic_machine=m68k-hp
1.1.1.3 root 298: os=-bsd
1.1 root 299: ;;
1.1.1.7 root 300: hp300hpux)
301: basic_machine=m68k-hp
302: os=-hpux
1.1.1.4 root 303: ;;
1.1.1.7 root 304: hp9k2[0-9][0-9] | hp9k31[0-9])
305: basic_machine=m68000-hp
1.1.1.4 root 306: ;;
1.1 root 307: hp9k3[2-9][0-9])
308: basic_machine=m68k-hp
309: ;;
1.1.1.3 root 310: hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
311: basic_machine=hppa1.1-hp
312: ;;
313: hp9k8[0-9][0-9] | hp8[0-9][0-9])
314: basic_machine=hppa1.0-hp
1.1 root 315: ;;
1.1.1.7 root 316: i370-ibm* | ibm*)
317: basic_machine=i370-ibm
318: os=-mvs
1.1.1.6 root 319: ;;
1.1.1.7 root 320: # I'm not sure what "Sysv32" means. Should this be sysv3.2?
1.1.1.9 ! root 321: i[3456]86v32)
1.1.1.7 root 322: basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
323: os=-sysv32
324: ;;
1.1.1.9 ! root 325: i[3456]86v4*)
1.1.1.7 root 326: basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
327: os=-sysv4
328: ;;
1.1.1.9 ! root 329: i[3456]86v)
1.1.1.7 root 330: basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
331: os=-sysv
332: ;;
1.1.1.9 ! root 333: i[3456]86sol2)
1.1.1.7 root 334: basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
335: os=-solaris2
336: ;;
337: iris | iris4d)
338: basic_machine=mips-sgi
339: case $os in
340: -irix*)
341: ;;
342: *)
343: os=-irix4
344: ;;
345: esac
1.1.1.6 root 346: ;;
1.1 root 347: isi68 | isi)
348: basic_machine=m68k-isi
349: os=-sysv
350: ;;
1.1.1.7 root 351: m88k-omron*)
352: basic_machine=m88k-omron
353: ;;
354: magnum | m3230)
355: basic_machine=mips-mips
1.1 root 356: os=-sysv
357: ;;
1.1.1.7 root 358: merlin)
359: basic_machine=ns32k-utek
360: os=-sysv
1.1 root 361: ;;
362: miniframe)
363: basic_machine=m68000-convergent
364: ;;
1.1.1.7 root 365: mips3*-*)
366: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
367: ;;
368: mips3*)
369: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
370: ;;
371: ncr3000)
372: basic_machine=i486-ncr
373: os=-sysv4
374: ;;
375: news | news700 | news800 | news900)
376: basic_machine=m68k-sony
377: os=-newsos
378: ;;
379: news1000)
380: basic_machine=m68030-sony
381: os=-newsos
1.1 root 382: ;;
383: news-3600 | risc-news)
384: basic_machine=mips-sony
385: os=-newsos
386: ;;
1.1.1.7 root 387: next | m*-next )
388: basic_machine=m68k-next
389: case $os in
390: -nextstep* )
391: ;;
392: -ns2*)
393: os=-nextstep2
394: ;;
395: *)
396: os=-nextstep3
397: ;;
398: esac
1.1 root 399: ;;
1.1.1.7 root 400: nh3000)
401: basic_machine=m68k-harris
402: os=-cxux
1.1 root 403: ;;
1.1.1.7 root 404: nh[45]000)
405: basic_machine=m88k-harris
406: os=-cxux
1.1 root 407: ;;
1.1.1.7 root 408: nindy960)
409: basic_machine=i960-intel
410: os=-nindy
1.1 root 411: ;;
1.1.1.7 root 412: np1)
413: basic_machine=np1-gould
1.1 root 414: ;;
1.1.1.7 root 415: pa-hitachi)
416: basic_machine=hppa1.1-hitachi
417: os=-hiuxwe2
1.1 root 418: ;;
1.1.1.7 root 419: paragon)
420: basic_machine=i860-intel
421: os=-osf
1.1 root 422: ;;
1.1.1.7 root 423: pbd)
424: basic_machine=sparc-tti
1.1 root 425: ;;
1.1.1.7 root 426: pbb)
427: basic_machine=m68k-tti
1.1 root 428: ;;
1.1.1.7 root 429: pc532 | pc532-*)
430: basic_machine=ns32k-pc532
1.1 root 431: ;;
1.1.1.8 root 432: pentium | p5 | p6)
433: # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
434: basic_machine=i586-intel
435: ;;
436: pentium-* | p5-* | p6-*)
437: # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
438: basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
439: ;;
440: k5)
441: # We don't have specific support for AMD's K5 yet, so just call it a Pentium
442: basic_machine=i586-amd
443: ;;
444: nexen)
445: # We don't have specific support for Nexgen yet, so just call it a Pentium
446: basic_machine=i586-nexgen
1.1.1.6 root 447: ;;
1.1.1.7 root 448: pn)
449: basic_machine=pn-gould
1.1 root 450: ;;
1.1.1.8 root 451: power) basic_machine=rs6000-ibm
452: ;;
453: ppc) basic_machine=powerpc-unknown
454: ;;
455: ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
456: ;;
457: ppcle | powerpclittle | ppc-le | powerpc-little)
458: basic_machine=powerpcle-unknown
459: ;;
460: ppcle-* | powerpclittle-*)
461: basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
462: ;;
1.1.1.7 root 463: ps2)
464: basic_machine=i386-ibm
1.1 root 465: ;;
1.1.1.8 root 466: rm[46]00)
467: basic_machine=mips-siemens
468: ;;
1.1.1.7 root 469: rtpc | rtpc-*)
470: basic_machine=romp-ibm
471: ;;
472: sequent)
473: basic_machine=i386-sequent
1.1.1.5 root 474: ;;
475: sh)
476: basic_machine=sh-hitachi
477: os=-hms
1.1 root 478: ;;
1.1.1.7 root 479: sps7)
480: basic_machine=m68k-bull
481: os=-sysv2
1.1 root 482: ;;
1.1.1.7 root 483: spur)
484: basic_machine=spur-unknown
1.1 root 485: ;;
1.1.1.7 root 486: sun2)
487: basic_machine=m68000-sun
1.1 root 488: ;;
1.1.1.7 root 489: sun2os3)
490: basic_machine=m68000-sun
491: os=-sunos3
1.1 root 492: ;;
1.1.1.7 root 493: sun2os4)
494: basic_machine=m68000-sun
495: os=-sunos4
1.1 root 496: ;;
1.1.1.7 root 497: sun3os3)
498: basic_machine=m68k-sun
499: os=-sunos3
1.1 root 500: ;;
1.1.1.7 root 501: sun3os4)
502: basic_machine=m68k-sun
503: os=-sunos4
1.1 root 504: ;;
1.1.1.7 root 505: sun4os3)
506: basic_machine=sparc-sun
507: os=-sunos3
1.1 root 508: ;;
1.1.1.7 root 509: sun4os4)
510: basic_machine=sparc-sun
511: os=-sunos4
1.1 root 512: ;;
1.1.1.8 root 513: sun4sol2)
514: basic_machine=sparc-sun
515: os=-solaris2
516: ;;
1.1.1.7 root 517: sun3 | sun3-*)
518: basic_machine=m68k-sun
519: ;;
520: sun4)
521: basic_machine=sparc-sun
522: ;;
523: sun386 | sun386i | roadrunner)
524: basic_machine=i386-sun
525: ;;
526: symmetry)
527: basic_machine=i386-sequent
528: os=-dynix
529: ;;
530: tower | tower-32)
531: basic_machine=m68k-ncr
1.1 root 532: ;;
1.1.1.8 root 533: udi29k)
534: basic_machine=a29k-amd
535: os=-udi
536: ;;
1.1 root 537: ultra3)
538: basic_machine=a29k-nyu
539: os=-sym1
540: ;;
1.1.1.7 root 541: vaxv)
542: basic_machine=vax-dec
543: os=-sysv
544: ;;
545: vms)
546: basic_machine=vax-dec
547: os=-vms
548: ;;
1.1 root 549: vxworks960)
550: basic_machine=i960-wrs
551: os=-vxworks
552: ;;
553: vxworks68)
554: basic_machine=m68k-wrs
555: os=-vxworks
556: ;;
1.1.1.8 root 557: vxworks29k)
558: basic_machine=a29k-wrs
559: os=-vxworks
560: ;;
1.1.1.7 root 561: xmp)
562: basic_machine=xmp-cray
563: os=-unicos
564: ;;
1.1.1.4 root 565: xps | xps100)
566: basic_machine=xps100-honeywell
567: ;;
1.1 root 568: none)
569: basic_machine=none-none
570: os=-none
571: ;;
572:
573: # Here we handle the default manufacturer of certain CPU types. It is in
574: # some cases the only manufacturer, in others, it is the most popular.
575: mips)
576: basic_machine=mips-mips
577: ;;
578: romp)
579: basic_machine=romp-ibm
580: ;;
581: rs6000)
582: basic_machine=rs6000-ibm
583: ;;
584: vax)
585: basic_machine=vax-dec
586: ;;
1.1.1.7 root 587: pdp11)
588: basic_machine=pdp11-dec
589: ;;
1.1.1.3 root 590: we32k)
591: basic_machine=we32k-att
592: ;;
1.1 root 593: sparc)
594: basic_machine=sparc-sun
595: ;;
1.1.1.4 root 596: cydra)
597: basic_machine=cydra-cydrome
598: ;;
599: orion)
600: basic_machine=orion-highlevel
601: ;;
602: orion105)
603: basic_machine=clipper-highlevel
604: ;;
1.1 root 605: *)
606: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
607: exit 1
608: ;;
609: esac
610:
611: # Here we canonicalize certain aliases for manufacturers.
612: case $basic_machine in
613: *-digital*)
614: basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
615: ;;
616: *-commodore*)
617: basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
618: ;;
619: *)
620: ;;
621: esac
622:
623: # Decode manufacturer-specific aliases for certain operating systems.
624:
1.1.1.6 root 625: if [ x"$os" != x"" ]
1.1 root 626: then
627: case $os in
1.1.1.5 root 628: # -solaris* is a basic system type, with this one exception.
629: -solaris1 | -solaris1.*)
630: os=`echo $os | sed -e 's|solaris1|sunos4|'`
631: ;;
1.1.1.6 root 632: -solaris)
633: os=-solaris2
634: ;;
1.1.1.8 root 635: -unixware* | svr4*)
636: os=-sysv4
637: ;;
1.1.1.7 root 638: -gnu/linux*)
639: os=`echo $os | sed -e 's|gnu/linux|linux|'`
640: ;;
1.1 root 641: # First accept the basic system types.
642: # The portable systems comes first.
1.1.1.8 root 643: # Each alternative MUST END IN A *, to match a version number.
1.1.1.6 root 644: # -sysv* is not here because it comes later, after sysvr4.
645: -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1.1.1.7 root 646: | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
647: | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1.1.1.3 root 648: | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
1.1.1.5 root 649: | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
650: | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
1.1.1.7 root 651: | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
652: | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
1.1.1.8 root 653: | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
654: | -udi* | -eabi* | -lites* )
655: # Remember, each alternative MUST END IN *, to match a version number.
1.1.1.5 root 656: ;;
657: -sunos5*)
658: os=`echo $os | sed -e 's|sunos5|solaris2|'`
659: ;;
660: -sunos6*)
661: os=`echo $os | sed -e 's|sunos6|solaris3|'`
1.1 root 662: ;;
663: -osfrose*)
1.1.1.3 root 664: os=-osfrose
1.1 root 665: ;;
666: -osf*)
1.1.1.3 root 667: os=-osf
1.1 root 668: ;;
1.1.1.4 root 669: -utek*)
670: os=-bsd
671: ;;
1.1 root 672: -dynix*)
673: os=-bsd
674: ;;
1.1.1.2 root 675: -acis*)
676: os=-aos
1.1 root 677: ;;
678: -ctix* | -uts*)
679: os=-sysv
680: ;;
1.1.1.8 root 681: # Preserve the version number of sinix5.
682: -sinix5.*)
683: os=`echo $os | sed -e 's|sinix|sysv|'`
684: ;;
685: -sinix*)
686: os=-sysv4
687: ;;
1.1.1.2 root 688: -triton*)
689: os=-sysv3
690: ;;
691: -oss*)
692: os=-sysv3
693: ;;
1.1 root 694: -svr4)
695: os=-sysv4
696: ;;
697: -svr3)
698: os=-sysv3
699: ;;
1.1.1.6 root 700: -sysvr4)
701: os=-sysv4
702: ;;
703: # This must come after -sysvr4.
704: -sysv*)
705: ;;
1.1.1.4 root 706: -xenix)
707: os=-xenix
708: ;;
1.1.1.3 root 709: -none)
710: ;;
1.1 root 711: *)
712: # Get rid of the `-' at the beginning of $os.
1.1.1.7 root 713: os=`echo $os | sed 's/[^-]*-//'`
1.1 root 714: echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
715: exit 1
716: ;;
717: esac
718: else
719:
720: # Here we handle the default operating systems that come with various machines.
721: # The value should be what the vendor currently ships out the door with their
722: # machine or put another way, the most popular os provided with the machine.
1.1.1.4 root 723:
724: # Note that if you're going to try to match "-MANUFACTURER" here (say,
725: # "-sun"), then you have to tell the case statement up towards the top
726: # that MANUFACTURER isn't an operating system. Otherwise, code above
727: # will signal an error saying that MANUFACTURER isn't an operating
728: # system, and we'll never get to this point.
729:
1.1 root 730: case $basic_machine in
1.1.1.6 root 731: *-acorn)
732: os=-riscix1.2
733: ;;
1.1.1.8 root 734: arm*-semi)
735: os=-aout
736: ;;
1.1.1.7 root 737: pdp11-*)
738: os=-none
739: ;;
1.1 root 740: *-dec | vax-*)
1.1.1.3 root 741: os=-ultrix4.2
1.1 root 742: ;;
1.1.1.8 root 743: m68*-apollo)
744: os=-domain
745: ;;
1.1 root 746: i386-sun)
1.1.1.3 root 747: os=-sunos4.0.2
1.1 root 748: ;;
749: m68000-sun)
750: os=-sunos3
751: # This also exists in the configure program, but was not the
752: # default.
753: # os=-sunos4
754: ;;
1.1.1.2 root 755: *-tti) # must be before sparc entry or we get the wrong os.
756: os=-sysv3
757: ;;
1.1 root 758: sparc-* | *-sun)
1.1.1.3 root 759: os=-sunos4.1.1
1.1 root 760: ;;
761: *-ibm)
762: os=-aix
763: ;;
764: *-hp)
765: os=-hpux
766: ;;
1.1.1.6 root 767: *-hitachi)
768: os=-hiux
769: ;;
1.1.1.4 root 770: i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1.1 root 771: os=-sysv
772: ;;
773: *-cbm)
774: os=-amigados
775: ;;
776: *-dg)
777: os=-dgux
778: ;;
1.1.1.2 root 779: *-dolphin)
780: os=-sysv3
781: ;;
1.1.1.7 root 782: m68k-ccur)
783: os=-rtu
784: ;;
1.1 root 785: m88k-omron*)
786: os=-luna
787: ;;
1.1.1.5 root 788: *-sequent)
1.1.1.7 root 789: os=-ptx
1.1.1.5 root 790: ;;
1.1 root 791: *-crds)
792: os=-unos
793: ;;
794: *-ns)
795: os=-genix
796: ;;
1.1.1.5 root 797: i370-*)
798: os=-mvs
799: ;;
800: *-next)
1.1.1.7 root 801: os=-nextstep3
1.1 root 802: ;;
1.1.1.4 root 803: *-gould)
804: os=-sysv
805: ;;
806: *-highlevel)
807: os=-bsd
808: ;;
809: *-encore)
810: os=-bsd
811: ;;
812: *-sgi)
813: os=-irix
814: ;;
1.1.1.8 root 815: *-siemens)
816: os=-sysv4
817: ;;
1.1.1.4 root 818: *-masscomp)
819: os=-rtu
820: ;;
1.1 root 821: *)
822: os=-none
823: ;;
824: esac
825: fi
826:
827: # Here we handle the case where we know the os, and the CPU type, but not the
828: # manufacturer. We pick the logical manufacturer.
829: vendor=unknown
830: case $basic_machine in
831: *-unknown)
832: case $os in
1.1.1.6 root 833: -riscix*)
834: vendor=acorn
835: ;;
1.1 root 836: -sunos*)
837: vendor=sun
838: ;;
1.1.1.6 root 839: -lynxos*)
840: vendor=lynx
841: ;;
1.1 root 842: -aix*)
843: vendor=ibm
844: ;;
845: -hpux*)
846: vendor=hp
847: ;;
1.1.1.6 root 848: -hiux*)
849: vendor=hitachi
850: ;;
1.1 root 851: -unos*)
852: vendor=crds
853: ;;
854: -dgux*)
855: vendor=dg
856: ;;
857: -luna*)
858: vendor=omron
859: ;;
860: -genix*)
861: vendor=ns
862: ;;
1.1.1.5 root 863: -mvs*)
864: vendor=ibm
865: ;;
1.1.1.7 root 866: -ptx*)
867: vendor=sequent
868: ;;
1.1.1.8 root 869: -vxworks*)
870: vendor=wrs
871: ;;
1.1 root 872: esac
873: basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
874: ;;
875: esac
876:
877: echo $basic_machine$os
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.