michael@1: #! /bin/sh michael@1: # Configuration validation subroutine script. michael@1: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, michael@1: # 2000, 2001, 2002 Free Software Foundation, Inc. michael@1: michael@1: timestamp='2002-09-05' michael@1: michael@1: # This file is (in principle) common to ALL GNU software. michael@1: # The presence of a machine in this file suggests that SOME GNU software michael@1: # can handle that machine. It does not imply ALL GNU software can. michael@1: # michael@1: # This file is free software; you can redistribute it and/or modify michael@1: # it under the terms of the GNU General Public License as published by michael@1: # the Free Software Foundation; either version 2 of the License, or michael@1: # (at your option) any later version. michael@1: # michael@1: # This program is distributed in the hope that it will be useful, michael@1: # but WITHOUT ANY WARRANTY; without even the implied warranty of michael@1: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the michael@1: # GNU General Public License for more details. michael@1: # michael@1: # You should have received a copy of the GNU General Public License michael@1: # along with this program; if not, write to the Free Software michael@1: # Foundation, Inc., 59 Temple Place - Suite 330, michael@1: # Boston, MA 02111-1307, USA. michael@1: michael@1: # As a special exception to the GNU General Public License, if you michael@1: # distribute this file as part of a program that contains a michael@1: # configuration script generated by Autoconf, you may include it under michael@1: # the same distribution terms that you use for the rest of that program. michael@1: michael@1: # Please send patches to . Submit a context michael@1: # diff and a properly formatted ChangeLog entry. michael@1: # michael@1: # Configuration subroutine to validate and canonicalize a configuration type. michael@1: # Supply the specified configuration type as an argument. michael@1: # If it is invalid, we print an error message on stderr and exit with code 1. michael@1: # Otherwise, we print the canonical config type on stdout and succeed. michael@1: michael@1: # This file is supposed to be the same for all GNU packages michael@1: # and recognize all the CPU types, system types and aliases michael@1: # that are meaningful with *any* GNU software. michael@1: # Each package is responsible for reporting which valid configurations michael@1: # it does not support. The user should be able to distinguish michael@1: # a failure to support a valid configuration from a meaningless michael@1: # configuration. michael@1: michael@1: # The goal of this file is to map all the various variations of a given michael@1: # machine specification into a single specification in the form: michael@1: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM michael@1: # or in some cases, the newer four-part form: michael@1: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM michael@1: # It is wrong to echo any other type of specification. michael@1: michael@1: me=`echo "$0" | sed -e 's,.*/,,'` michael@1: michael@1: usage="\ michael@1: Usage: $0 [OPTION] CPU-MFR-OPSYS michael@1: $0 [OPTION] ALIAS michael@1: michael@1: Canonicalize a configuration name. michael@1: michael@1: Operation modes: michael@1: -h, --help print this help, then exit michael@1: -t, --time-stamp print date of last modification, then exit michael@1: -v, --version print version number, then exit michael@1: michael@1: Report bugs and patches to ." michael@1: michael@1: version="\ michael@1: GNU config.sub ($timestamp) michael@1: michael@1: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 michael@1: Free Software Foundation, Inc. michael@1: michael@1: This is free software; see the source for copying conditions. There is NO michael@1: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." michael@1: michael@1: help=" michael@1: Try \`$me --help' for more information." michael@1: michael@1: # Parse command line michael@1: while test $# -gt 0 ; do michael@1: case $1 in michael@1: --time-stamp | --time* | -t ) michael@1: echo "$timestamp" ; exit 0 ;; michael@1: --version | -v ) michael@1: echo "$version" ; exit 0 ;; michael@1: --help | --h* | -h ) michael@1: echo "$usage"; exit 0 ;; michael@1: -- ) # Stop option processing michael@1: shift; break ;; michael@1: - ) # Use stdin as input. michael@1: break ;; michael@1: -* ) michael@1: echo "$me: invalid option $1$help" michael@1: exit 1 ;; michael@1: michael@1: *local*) michael@1: # First pass through any local machine types. michael@1: echo $1 michael@1: exit 0;; michael@1: michael@1: * ) michael@1: break ;; michael@1: esac michael@1: done michael@1: michael@1: case $# in michael@1: 0) echo "$me: missing argument$help" >&2 michael@1: exit 1;; michael@1: 1) ;; michael@1: *) echo "$me: too many arguments$help" >&2 michael@1: exit 1;; michael@1: esac michael@1: michael@1: # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). michael@1: # Here we must recognize all the valid KERNEL-OS combinations. michael@1: maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` michael@1: case $maybe_os in michael@1: nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) michael@1: os=-$maybe_os michael@1: basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` michael@1: ;; michael@1: *) michael@1: basic_machine=`echo $1 | sed 's/-[^-]*$//'` michael@1: if [ $basic_machine != $1 ] michael@1: then os=`echo $1 | sed 's/.*-/-/'` michael@1: else os=; fi michael@1: ;; michael@1: esac michael@1: michael@1: ### Let's recognize common machines as not being operating systems so michael@1: ### that things like config.sub decstation-3100 work. We also michael@1: ### recognize some manufacturers as not being operating systems, so we michael@1: ### can provide default operating systems below. michael@1: case $os in michael@1: -sun*os*) michael@1: # Prevent following clause from handling this invalid input. michael@1: ;; michael@1: -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ michael@1: -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ michael@1: -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ michael@1: -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ michael@1: -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ michael@1: -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ michael@1: -apple | -axis) michael@1: os= michael@1: basic_machine=$1 michael@1: ;; michael@1: -sim | -cisco | -oki | -wec | -winbond) michael@1: os= michael@1: basic_machine=$1 michael@1: ;; michael@1: -scout) michael@1: ;; michael@1: -wrs) michael@1: os=-vxworks michael@1: basic_machine=$1 michael@1: ;; michael@1: -chorusos*) michael@1: os=-chorusos michael@1: basic_machine=$1 michael@1: ;; michael@1: -chorusrdb) michael@1: os=-chorusrdb michael@1: basic_machine=$1 michael@1: ;; michael@1: -hiux*) michael@1: os=-hiuxwe2 michael@1: ;; michael@1: -sco5) michael@1: os=-sco3.2v5 michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -sco4) michael@1: os=-sco3.2v4 michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -sco3.2.[4-9]*) michael@1: os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -sco3.2v[4-9]*) michael@1: # Don't forget version if it is 3.2v4 or newer. michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -sco*) michael@1: os=-sco3.2v2 michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -udk*) michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -isc) michael@1: os=-isc2.2 michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -clix*) michael@1: basic_machine=clipper-intergraph michael@1: ;; michael@1: -isc*) michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` michael@1: ;; michael@1: -lynx*) michael@1: os=-lynxos michael@1: ;; michael@1: -ptx*) michael@1: basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` michael@1: ;; michael@1: -windowsnt*) michael@1: os=`echo $os | sed -e 's/windowsnt/winnt/'` michael@1: ;; michael@1: -psos*) michael@1: os=-psos michael@1: ;; michael@1: -mint | -mint[0-9]*) michael@1: basic_machine=m68k-atari michael@1: os=-mint michael@1: ;; michael@1: esac michael@1: michael@1: # Decode aliases for certain CPU-COMPANY combinations. michael@1: case $basic_machine in michael@1: # Recognize the basic CPU types without company name. michael@1: # Some are omitted here because they have special meanings below. michael@1: 1750a | 580 \ michael@1: | a29k \ michael@1: | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ michael@1: | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ michael@1: | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ michael@1: | clipper \ michael@1: | d10v | d30v | dlx | dsp16xx \ michael@1: | fr30 | frv \ michael@1: | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ michael@1: | i370 | i860 | i960 | ia64 \ michael@1: | ip2k \ michael@1: | m32r | m68000 | m68k | m88k | mcore \ michael@1: | mips | mipsbe | mipseb | mipsel | mipsle \ michael@1: | mips16 \ michael@1: | mips64 | mips64el \ michael@1: | mips64vr | mips64vrel \ michael@1: | mips64orion | mips64orionel \ michael@1: | mips64vr4100 | mips64vr4100el \ michael@1: | mips64vr4300 | mips64vr4300el \ michael@1: | mips64vr5000 | mips64vr5000el \ michael@1: | mipsisa32 | mipsisa32el \ michael@1: | mipsisa64 | mipsisa64el \ michael@1: | mipsisa64sb1 | mipsisa64sb1el \ michael@1: | mipsisa64sr71k | mipsisa64sr71kel \ michael@1: | mipstx39 | mipstx39el \ michael@1: | mn10200 | mn10300 \ michael@1: | ns16k | ns32k \ michael@1: | openrisc | or32 \ michael@1: | pdp10 | pdp11 | pj | pjl \ michael@1: | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ michael@1: | pyramid \ michael@1: | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ michael@1: | sh64 | sh64le \ michael@1: | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ michael@1: | strongarm \ michael@1: | tahoe | thumb | tic80 | tron \ michael@1: | v850 | v850e \ michael@1: | we32k \ michael@1: | x86 | xscale | xstormy16 | xtensa \ michael@1: | z8k) michael@1: basic_machine=$basic_machine-unknown michael@1: ;; michael@1: m6811 | m68hc11 | m6812 | m68hc12) michael@1: # Motorola 68HC11/12. michael@1: basic_machine=$basic_machine-unknown michael@1: os=-none michael@1: ;; michael@1: m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) michael@1: ;; michael@1: michael@1: # We use `pc' rather than `unknown' michael@1: # because (1) that's what they normally are, and michael@1: # (2) the word "unknown" tends to confuse beginning users. michael@1: i*86 | x86_64) michael@1: basic_machine=$basic_machine-pc michael@1: ;; michael@1: # Object if more than one company name word. michael@1: *-*-*) michael@1: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 michael@1: exit 1 michael@1: ;; michael@1: # Recognize the basic CPU types with company name. michael@1: 580-* \ michael@1: | a29k-* \ michael@1: | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ michael@1: | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ michael@1: | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ michael@1: | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ michael@1: | avr-* \ michael@1: | bs2000-* \ michael@1: | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ michael@1: | clipper-* | cydra-* \ michael@1: | d10v-* | d30v-* | dlx-* \ michael@1: | elxsi-* \ michael@1: | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ michael@1: | h8300-* | h8500-* \ michael@1: | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ michael@1: | i*86-* | i860-* | i960-* | ia64-* \ michael@1: | ip2k-* \ michael@1: | m32r-* \ michael@1: | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ michael@1: | m88110-* | m88k-* | mcore-* \ michael@1: | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ michael@1: | mips16-* \ michael@1: | mips64-* | mips64el-* \ michael@1: | mips64vr-* | mips64vrel-* \ michael@1: | mips64orion-* | mips64orionel-* \ michael@1: | mips64vr4100-* | mips64vr4100el-* \ michael@1: | mips64vr4300-* | mips64vr4300el-* \ michael@1: | mips64vr5000-* | mips64vr5000el-* \ michael@1: | mipsisa32-* | mipsisa32el-* \ michael@1: | mipsisa64-* | mipsisa64el-* \ michael@1: | mipsisa64sb1-* | mipsisa64sb1el-* \ michael@1: | mipsisa64sr71k-* | mipsisa64sr71kel-* \ michael@1: | mipstx39 | mipstx39el \ michael@1: | none-* | np1-* | ns16k-* | ns32k-* \ michael@1: | orion-* \ michael@1: | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ michael@1: | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ michael@1: | pyramid-* \ michael@1: | romp-* | rs6000-* \ michael@1: | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ michael@1: | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ michael@1: | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ michael@1: | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ michael@1: | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ michael@1: | v850-* | v850e-* | vax-* \ michael@1: | we32k-* \ michael@1: | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ michael@1: | xtensa-* \ michael@1: | ymp-* \ michael@1: | z8k-*) michael@1: ;; michael@1: # Recognize the various machine names and aliases which stand michael@1: # for a CPU type and a company and sometimes even an OS. michael@1: 386bsd) michael@1: basic_machine=i386-unknown michael@1: os=-bsd michael@1: ;; michael@1: 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) michael@1: basic_machine=m68000-att michael@1: ;; michael@1: 3b*) michael@1: basic_machine=we32k-att michael@1: ;; michael@1: a29khif) michael@1: basic_machine=a29k-amd michael@1: os=-udi michael@1: ;; michael@1: adobe68k) michael@1: basic_machine=m68010-adobe michael@1: os=-scout michael@1: ;; michael@1: alliant | fx80) michael@1: basic_machine=fx80-alliant michael@1: ;; michael@1: altos | altos3068) michael@1: basic_machine=m68k-altos michael@1: ;; michael@1: am29k) michael@1: basic_machine=a29k-none michael@1: os=-bsd michael@1: ;; michael@1: amdahl) michael@1: basic_machine=580-amdahl michael@1: os=-sysv michael@1: ;; michael@1: amiga | amiga-*) michael@1: basic_machine=m68k-unknown michael@1: ;; michael@1: amigaos | amigados) michael@1: basic_machine=m68k-unknown michael@1: os=-amigaos michael@1: ;; michael@1: amigaunix | amix) michael@1: basic_machine=m68k-unknown michael@1: os=-sysv4 michael@1: ;; michael@1: apollo68) michael@1: basic_machine=m68k-apollo michael@1: os=-sysv michael@1: ;; michael@1: apollo68bsd) michael@1: basic_machine=m68k-apollo michael@1: os=-bsd michael@1: ;; michael@1: aux) michael@1: basic_machine=m68k-apple michael@1: os=-aux michael@1: ;; michael@1: balance) michael@1: basic_machine=ns32k-sequent michael@1: os=-dynix michael@1: ;; michael@1: c90) michael@1: basic_machine=c90-cray michael@1: os=-unicos michael@1: ;; michael@1: convex-c1) michael@1: basic_machine=c1-convex michael@1: os=-bsd michael@1: ;; michael@1: convex-c2) michael@1: basic_machine=c2-convex michael@1: os=-bsd michael@1: ;; michael@1: convex-c32) michael@1: basic_machine=c32-convex michael@1: os=-bsd michael@1: ;; michael@1: convex-c34) michael@1: basic_machine=c34-convex michael@1: os=-bsd michael@1: ;; michael@1: convex-c38) michael@1: basic_machine=c38-convex michael@1: os=-bsd michael@1: ;; michael@1: cray | j90) michael@1: basic_machine=j90-cray michael@1: os=-unicos michael@1: ;; michael@1: crds | unos) michael@1: basic_machine=m68k-crds michael@1: ;; michael@1: cris | cris-* | etrax*) michael@1: basic_machine=cris-axis michael@1: ;; michael@1: da30 | da30-*) michael@1: basic_machine=m68k-da30 michael@1: ;; michael@1: decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) michael@1: basic_machine=mips-dec michael@1: ;; michael@1: decsystem10* | dec10*) michael@1: basic_machine=pdp10-dec michael@1: os=-tops10 michael@1: ;; michael@1: decsystem20* | dec20*) michael@1: basic_machine=pdp10-dec michael@1: os=-tops20 michael@1: ;; michael@1: delta | 3300 | motorola-3300 | motorola-delta \ michael@1: | 3300-motorola | delta-motorola) michael@1: basic_machine=m68k-motorola michael@1: ;; michael@1: delta88) michael@1: basic_machine=m88k-motorola michael@1: os=-sysv3 michael@1: ;; michael@1: dpx20 | dpx20-*) michael@1: basic_machine=rs6000-bull michael@1: os=-bosx michael@1: ;; michael@1: dpx2* | dpx2*-bull) michael@1: basic_machine=m68k-bull michael@1: os=-sysv3 michael@1: ;; michael@1: ebmon29k) michael@1: basic_machine=a29k-amd michael@1: os=-ebmon michael@1: ;; michael@1: elxsi) michael@1: basic_machine=elxsi-elxsi michael@1: os=-bsd michael@1: ;; michael@1: encore | umax | mmax) michael@1: basic_machine=ns32k-encore michael@1: ;; michael@1: es1800 | OSE68k | ose68k | ose | OSE) michael@1: basic_machine=m68k-ericsson michael@1: os=-ose michael@1: ;; michael@1: fx2800) michael@1: basic_machine=i860-alliant michael@1: ;; michael@1: genix) michael@1: basic_machine=ns32k-ns michael@1: ;; michael@1: gmicro) michael@1: basic_machine=tron-gmicro michael@1: os=-sysv michael@1: ;; michael@1: go32) michael@1: basic_machine=i386-pc michael@1: os=-go32 michael@1: ;; michael@1: h3050r* | hiux*) michael@1: basic_machine=hppa1.1-hitachi michael@1: os=-hiuxwe2 michael@1: ;; michael@1: h8300hms) michael@1: basic_machine=h8300-hitachi michael@1: os=-hms michael@1: ;; michael@1: h8300xray) michael@1: basic_machine=h8300-hitachi michael@1: os=-xray michael@1: ;; michael@1: h8500hms) michael@1: basic_machine=h8500-hitachi michael@1: os=-hms michael@1: ;; michael@1: harris) michael@1: basic_machine=m88k-harris michael@1: os=-sysv3 michael@1: ;; michael@1: hp300-*) michael@1: basic_machine=m68k-hp michael@1: ;; michael@1: hp300bsd) michael@1: basic_machine=m68k-hp michael@1: os=-bsd michael@1: ;; michael@1: hp300hpux) michael@1: basic_machine=m68k-hp michael@1: os=-hpux michael@1: ;; michael@1: hp3k9[0-9][0-9] | hp9[0-9][0-9]) michael@1: basic_machine=hppa1.0-hp michael@1: ;; michael@1: hp9k2[0-9][0-9] | hp9k31[0-9]) michael@1: basic_machine=m68000-hp michael@1: ;; michael@1: hp9k3[2-9][0-9]) michael@1: basic_machine=m68k-hp michael@1: ;; michael@1: hp9k6[0-9][0-9] | hp6[0-9][0-9]) michael@1: basic_machine=hppa1.0-hp michael@1: ;; michael@1: hp9k7[0-79][0-9] | hp7[0-79][0-9]) michael@1: basic_machine=hppa1.1-hp michael@1: ;; michael@1: hp9k78[0-9] | hp78[0-9]) michael@1: # FIXME: really hppa2.0-hp michael@1: basic_machine=hppa1.1-hp michael@1: ;; michael@1: hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) michael@1: # FIXME: really hppa2.0-hp michael@1: basic_machine=hppa1.1-hp michael@1: ;; michael@1: hp9k8[0-9][13679] | hp8[0-9][13679]) michael@1: basic_machine=hppa1.1-hp michael@1: ;; michael@1: hp9k8[0-9][0-9] | hp8[0-9][0-9]) michael@1: basic_machine=hppa1.0-hp michael@1: ;; michael@1: hppa-next) michael@1: os=-nextstep3 michael@1: ;; michael@1: hppaosf) michael@1: basic_machine=hppa1.1-hp michael@1: os=-osf michael@1: ;; michael@1: hppro) michael@1: basic_machine=hppa1.1-hp michael@1: os=-proelf michael@1: ;; michael@1: i370-ibm* | ibm*) michael@1: basic_machine=i370-ibm michael@1: ;; michael@1: # I'm not sure what "Sysv32" means. Should this be sysv3.2? michael@1: i*86v32) michael@1: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` michael@1: os=-sysv32 michael@1: ;; michael@1: i*86v4*) michael@1: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` michael@1: os=-sysv4 michael@1: ;; michael@1: i*86v) michael@1: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` michael@1: os=-sysv michael@1: ;; michael@1: i*86sol2) michael@1: basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` michael@1: os=-solaris2 michael@1: ;; michael@1: i386mach) michael@1: basic_machine=i386-mach michael@1: os=-mach michael@1: ;; michael@1: i386-vsta | vsta) michael@1: basic_machine=i386-unknown michael@1: os=-vsta michael@1: ;; michael@1: iris | iris4d) michael@1: basic_machine=mips-sgi michael@1: case $os in michael@1: -irix*) michael@1: ;; michael@1: *) michael@1: os=-irix4 michael@1: ;; michael@1: esac michael@1: ;; michael@1: isi68 | isi) michael@1: basic_machine=m68k-isi michael@1: os=-sysv michael@1: ;; michael@1: m88k-omron*) michael@1: basic_machine=m88k-omron michael@1: ;; michael@1: magnum | m3230) michael@1: basic_machine=mips-mips michael@1: os=-sysv michael@1: ;; michael@1: merlin) michael@1: basic_machine=ns32k-utek michael@1: os=-sysv michael@1: ;; michael@1: mingw32) michael@1: basic_machine=i386-pc michael@1: os=-mingw32 michael@1: ;; michael@1: miniframe) michael@1: basic_machine=m68000-convergent michael@1: ;; michael@1: *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) michael@1: basic_machine=m68k-atari michael@1: os=-mint michael@1: ;; michael@1: mips3*-*) michael@1: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` michael@1: ;; michael@1: mips3*) michael@1: basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown michael@1: ;; michael@1: mmix*) michael@1: basic_machine=mmix-knuth michael@1: os=-mmixware michael@1: ;; michael@1: monitor) michael@1: basic_machine=m68k-rom68k michael@1: os=-coff michael@1: ;; michael@1: morphos) michael@1: basic_machine=powerpc-unknown michael@1: os=-morphos michael@1: ;; michael@1: msdos) michael@1: basic_machine=i386-pc michael@1: os=-msdos michael@1: ;; michael@1: mvs) michael@1: basic_machine=i370-ibm michael@1: os=-mvs michael@1: ;; michael@1: ncr3000) michael@1: basic_machine=i486-ncr michael@1: os=-sysv4 michael@1: ;; michael@1: netbsd386) michael@1: basic_machine=i386-unknown michael@1: os=-netbsd michael@1: ;; michael@1: netwinder) michael@1: basic_machine=armv4l-rebel michael@1: os=-linux michael@1: ;; michael@1: news | news700 | news800 | news900) michael@1: basic_machine=m68k-sony michael@1: os=-newsos michael@1: ;; michael@1: news1000) michael@1: basic_machine=m68030-sony michael@1: os=-newsos michael@1: ;; michael@1: news-3600 | risc-news) michael@1: basic_machine=mips-sony michael@1: os=-newsos michael@1: ;; michael@1: necv70) michael@1: basic_machine=v70-nec michael@1: os=-sysv michael@1: ;; michael@1: next | m*-next ) michael@1: basic_machine=m68k-next michael@1: case $os in michael@1: -nextstep* ) michael@1: ;; michael@1: -ns2*) michael@1: os=-nextstep2 michael@1: ;; michael@1: *) michael@1: os=-nextstep3 michael@1: ;; michael@1: esac michael@1: ;; michael@1: nh3000) michael@1: basic_machine=m68k-harris michael@1: os=-cxux michael@1: ;; michael@1: nh[45]000) michael@1: basic_machine=m88k-harris michael@1: os=-cxux michael@1: ;; michael@1: nindy960) michael@1: basic_machine=i960-intel michael@1: os=-nindy michael@1: ;; michael@1: mon960) michael@1: basic_machine=i960-intel michael@1: os=-mon960 michael@1: ;; michael@1: nonstopux) michael@1: basic_machine=mips-compaq michael@1: os=-nonstopux michael@1: ;; michael@1: np1) michael@1: basic_machine=np1-gould michael@1: ;; michael@1: nsr-tandem) michael@1: basic_machine=nsr-tandem michael@1: ;; michael@1: op50n-* | op60c-*) michael@1: basic_machine=hppa1.1-oki michael@1: os=-proelf michael@1: ;; michael@1: or32 | or32-*) michael@1: basic_machine=or32-unknown michael@1: os=-coff michael@1: ;; michael@1: OSE68000 | ose68000) michael@1: basic_machine=m68000-ericsson michael@1: os=-ose michael@1: ;; michael@1: os68k) michael@1: basic_machine=m68k-none michael@1: os=-os68k michael@1: ;; michael@1: pa-hitachi) michael@1: basic_machine=hppa1.1-hitachi michael@1: os=-hiuxwe2 michael@1: ;; michael@1: paragon) michael@1: basic_machine=i860-intel michael@1: os=-osf michael@1: ;; michael@1: pbd) michael@1: basic_machine=sparc-tti michael@1: ;; michael@1: pbb) michael@1: basic_machine=m68k-tti michael@1: ;; michael@1: pc532 | pc532-*) michael@1: basic_machine=ns32k-pc532 michael@1: ;; michael@1: pentium | p5 | k5 | k6 | nexgen | viac3) michael@1: basic_machine=i586-pc michael@1: ;; michael@1: pentiumpro | p6 | 6x86 | athlon | athlon_*) michael@1: basic_machine=i686-pc michael@1: ;; michael@1: pentiumii | pentium2) michael@1: basic_machine=i686-pc michael@1: ;; michael@1: pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) michael@1: basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: pentiumpro-* | p6-* | 6x86-* | athlon-*) michael@1: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: pentiumii-* | pentium2-*) michael@1: basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: pn) michael@1: basic_machine=pn-gould michael@1: ;; michael@1: power) basic_machine=power-ibm michael@1: ;; michael@1: ppc) basic_machine=powerpc-unknown michael@1: ;; michael@1: ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: ppcle | powerpclittle | ppc-le | powerpc-little) michael@1: basic_machine=powerpcle-unknown michael@1: ;; michael@1: ppcle-* | powerpclittle-*) michael@1: basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: ppc64) basic_machine=powerpc64-unknown michael@1: ;; michael@1: ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: ppc64le | powerpc64little | ppc64-le | powerpc64-little) michael@1: basic_machine=powerpc64le-unknown michael@1: ;; michael@1: ppc64le-* | powerpc64little-*) michael@1: basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` michael@1: ;; michael@1: ps2) michael@1: basic_machine=i386-ibm michael@1: ;; michael@1: pw32) michael@1: basic_machine=i586-unknown michael@1: os=-pw32 michael@1: ;; michael@1: rom68k) michael@1: basic_machine=m68k-rom68k michael@1: os=-coff michael@1: ;; michael@1: rm[46]00) michael@1: basic_machine=mips-siemens michael@1: ;; michael@1: rtpc | rtpc-*) michael@1: basic_machine=romp-ibm michael@1: ;; michael@1: s390 | s390-*) michael@1: basic_machine=s390-ibm michael@1: ;; michael@1: s390x | s390x-*) michael@1: basic_machine=s390x-ibm michael@1: ;; michael@1: sa29200) michael@1: basic_machine=a29k-amd michael@1: os=-udi michael@1: ;; michael@1: sb1) michael@1: basic_machine=mipsisa64sb1-unknown michael@1: ;; michael@1: sb1el) michael@1: basic_machine=mipsisa64sb1el-unknown michael@1: ;; michael@1: sequent) michael@1: basic_machine=i386-sequent michael@1: ;; michael@1: sh) michael@1: basic_machine=sh-hitachi michael@1: os=-hms michael@1: ;; michael@1: sparclite-wrs | simso-wrs) michael@1: basic_machine=sparclite-wrs michael@1: os=-vxworks michael@1: ;; michael@1: sps7) michael@1: basic_machine=m68k-bull michael@1: os=-sysv2 michael@1: ;; michael@1: spur) michael@1: basic_machine=spur-unknown michael@1: ;; michael@1: st2000) michael@1: basic_machine=m68k-tandem michael@1: ;; michael@1: stratus) michael@1: basic_machine=i860-stratus michael@1: os=-sysv4 michael@1: ;; michael@1: sun2) michael@1: basic_machine=m68000-sun michael@1: ;; michael@1: sun2os3) michael@1: basic_machine=m68000-sun michael@1: os=-sunos3 michael@1: ;; michael@1: sun2os4) michael@1: basic_machine=m68000-sun michael@1: os=-sunos4 michael@1: ;; michael@1: sun3os3) michael@1: basic_machine=m68k-sun michael@1: os=-sunos3 michael@1: ;; michael@1: sun3os4) michael@1: basic_machine=m68k-sun michael@1: os=-sunos4 michael@1: ;; michael@1: sun4os3) michael@1: basic_machine=sparc-sun michael@1: os=-sunos3 michael@1: ;; michael@1: sun4os4) michael@1: basic_machine=sparc-sun michael@1: os=-sunos4 michael@1: ;; michael@1: sun4sol2) michael@1: basic_machine=sparc-sun michael@1: os=-solaris2 michael@1: ;; michael@1: sun3 | sun3-*) michael@1: basic_machine=m68k-sun michael@1: ;; michael@1: sun4) michael@1: basic_machine=sparc-sun michael@1: ;; michael@1: sun386 | sun386i | roadrunner) michael@1: basic_machine=i386-sun michael@1: ;; michael@1: sv1) michael@1: basic_machine=sv1-cray michael@1: os=-unicos michael@1: ;; michael@1: symmetry) michael@1: basic_machine=i386-sequent michael@1: os=-dynix michael@1: ;; michael@1: t3d) michael@1: basic_machine=alpha-cray michael@1: os=-unicos michael@1: ;; michael@1: t3e) michael@1: basic_machine=alphaev5-cray michael@1: os=-unicos michael@1: ;; michael@1: t90) michael@1: basic_machine=t90-cray michael@1: os=-unicos michael@1: ;; michael@1: tic4x | c4x*) michael@1: basic_machine=tic4x-unknown michael@1: os=-coff michael@1: ;; michael@1: tic54x | c54x*) michael@1: basic_machine=tic54x-unknown michael@1: os=-coff michael@1: ;; michael@1: tx39) michael@1: basic_machine=mipstx39-unknown michael@1: ;; michael@1: tx39el) michael@1: basic_machine=mipstx39el-unknown michael@1: ;; michael@1: toad1) michael@1: basic_machine=pdp10-xkl michael@1: os=-tops20 michael@1: ;; michael@1: tower | tower-32) michael@1: basic_machine=m68k-ncr michael@1: ;; michael@1: udi29k) michael@1: basic_machine=a29k-amd michael@1: os=-udi michael@1: ;; michael@1: ultra3) michael@1: basic_machine=a29k-nyu michael@1: os=-sym1 michael@1: ;; michael@1: v810 | necv810) michael@1: basic_machine=v810-nec michael@1: os=-none michael@1: ;; michael@1: vaxv) michael@1: basic_machine=vax-dec michael@1: os=-sysv michael@1: ;; michael@1: vms) michael@1: basic_machine=vax-dec michael@1: os=-vms michael@1: ;; michael@1: vpp*|vx|vx-*) michael@1: basic_machine=f301-fujitsu michael@1: ;; michael@1: vxworks960) michael@1: basic_machine=i960-wrs michael@1: os=-vxworks michael@1: ;; michael@1: vxworks68) michael@1: basic_machine=m68k-wrs michael@1: os=-vxworks michael@1: ;; michael@1: vxworks29k) michael@1: basic_machine=a29k-wrs michael@1: os=-vxworks michael@1: ;; michael@1: w65*) michael@1: basic_machine=w65-wdc michael@1: os=-none michael@1: ;; michael@1: w89k-*) michael@1: basic_machine=hppa1.1-winbond michael@1: os=-proelf michael@1: ;; michael@1: windows32) michael@1: basic_machine=i386-pc michael@1: os=-windows32-msvcrt michael@1: ;; michael@1: xps | xps100) michael@1: basic_machine=xps100-honeywell michael@1: ;; michael@1: ymp) michael@1: basic_machine=ymp-cray michael@1: os=-unicos michael@1: ;; michael@1: z8k-*-coff) michael@1: basic_machine=z8k-unknown michael@1: os=-sim michael@1: ;; michael@1: none) michael@1: basic_machine=none-none michael@1: os=-none michael@1: ;; michael@1: michael@1: # Here we handle the default manufacturer of certain CPU types. It is in michael@1: # some cases the only manufacturer, in others, it is the most popular. michael@1: w89k) michael@1: basic_machine=hppa1.1-winbond michael@1: ;; michael@1: op50n) michael@1: basic_machine=hppa1.1-oki michael@1: ;; michael@1: op60c) michael@1: basic_machine=hppa1.1-oki michael@1: ;; michael@1: romp) michael@1: basic_machine=romp-ibm michael@1: ;; michael@1: rs6000) michael@1: basic_machine=rs6000-ibm michael@1: ;; michael@1: vax) michael@1: basic_machine=vax-dec michael@1: ;; michael@1: pdp10) michael@1: # there are many clones, so DEC is not a safe bet michael@1: basic_machine=pdp10-unknown michael@1: ;; michael@1: pdp11) michael@1: basic_machine=pdp11-dec michael@1: ;; michael@1: we32k) michael@1: basic_machine=we32k-att michael@1: ;; michael@1: sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) michael@1: basic_machine=sh-unknown michael@1: ;; michael@1: sh64) michael@1: basic_machine=sh64-unknown michael@1: ;; michael@1: sparc | sparcv9 | sparcv9b) michael@1: basic_machine=sparc-sun michael@1: ;; michael@1: cydra) michael@1: basic_machine=cydra-cydrome michael@1: ;; michael@1: orion) michael@1: basic_machine=orion-highlevel michael@1: ;; michael@1: orion105) michael@1: basic_machine=clipper-highlevel michael@1: ;; michael@1: mac | mpw | mac-mpw) michael@1: basic_machine=m68k-apple michael@1: ;; michael@1: pmac | pmac-mpw) michael@1: basic_machine=powerpc-apple michael@1: ;; michael@1: *-unknown) michael@1: # Make sure to match an already-canonicalized machine name. michael@1: ;; michael@1: *) michael@1: echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 michael@1: exit 1 michael@1: ;; michael@1: esac michael@1: michael@1: # Here we canonicalize certain aliases for manufacturers. michael@1: case $basic_machine in michael@1: *-digital*) michael@1: basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` michael@1: ;; michael@1: *-commodore*) michael@1: basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` michael@1: ;; michael@1: *) michael@1: ;; michael@1: esac michael@1: michael@1: # Decode manufacturer-specific aliases for certain operating systems. michael@1: michael@1: if [ x"$os" != x"" ] michael@1: then michael@1: case $os in michael@1: # First match some system type aliases michael@1: # that might get confused with valid system types. michael@1: # -solaris* is a basic system type, with this one exception. michael@1: -solaris1 | -solaris1.*) michael@1: os=`echo $os | sed -e 's|solaris1|sunos4|'` michael@1: ;; michael@1: -solaris) michael@1: os=-solaris2 michael@1: ;; michael@1: -svr4*) michael@1: os=-sysv4 michael@1: ;; michael@1: -unixware*) michael@1: os=-sysv4.2uw michael@1: ;; michael@1: -gnu/linux*) michael@1: os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` michael@1: ;; michael@1: # First accept the basic system types. michael@1: # The portable systems comes first. michael@1: # Each alternative MUST END IN A *, to match a version number. michael@1: # -sysv* is not here because it comes later, after sysvr4. michael@1: -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ michael@1: | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ michael@1: | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ michael@1: | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ michael@1: | -aos* \ michael@1: | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ michael@1: | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ michael@1: | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ michael@1: | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ michael@1: | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ michael@1: | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ michael@1: | -chorusos* | -chorusrdb* \ michael@1: | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ michael@1: | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ michael@1: | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ michael@1: | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ michael@1: | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ michael@1: | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ michael@1: | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) michael@1: # Remember, each alternative MUST END IN *, to match a version number. michael@1: ;; michael@1: -qnx*) michael@1: case $basic_machine in michael@1: x86-* | i*86-*) michael@1: ;; michael@1: *) michael@1: os=-nto$os michael@1: ;; michael@1: esac michael@1: ;; michael@1: -nto*) michael@1: os=-nto-qnx michael@1: ;; michael@1: -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ michael@1: | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ michael@1: | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) michael@1: ;; michael@1: -mac*) michael@1: os=`echo $os | sed -e 's|mac|macos|'` michael@1: ;; michael@1: -linux*) michael@1: os=`echo $os | sed -e 's|linux|linux-gnu|'` michael@1: ;; michael@1: -sunos5*) michael@1: os=`echo $os | sed -e 's|sunos5|solaris2|'` michael@1: ;; michael@1: -sunos6*) michael@1: os=`echo $os | sed -e 's|sunos6|solaris3|'` michael@1: ;; michael@1: -opened*) michael@1: os=-openedition michael@1: ;; michael@1: -wince*) michael@1: os=-wince michael@1: ;; michael@1: -osfrose*) michael@1: os=-osfrose michael@1: ;; michael@1: -osf*) michael@1: os=-osf michael@1: ;; michael@1: -utek*) michael@1: os=-bsd michael@1: ;; michael@1: -dynix*) michael@1: os=-bsd michael@1: ;; michael@1: -acis*) michael@1: os=-aos michael@1: ;; michael@1: -atheos*) michael@1: os=-atheos michael@1: ;; michael@1: -386bsd) michael@1: os=-bsd michael@1: ;; michael@1: -ctix* | -uts*) michael@1: os=-sysv michael@1: ;; michael@1: -nova*) michael@1: os=-rtmk-nova michael@1: ;; michael@1: -ns2 ) michael@1: os=-nextstep2 michael@1: ;; michael@1: -nsk*) michael@1: os=-nsk michael@1: ;; michael@1: # Preserve the version number of sinix5. michael@1: -sinix5.*) michael@1: os=`echo $os | sed -e 's|sinix|sysv|'` michael@1: ;; michael@1: -sinix*) michael@1: os=-sysv4 michael@1: ;; michael@1: -triton*) michael@1: os=-sysv3 michael@1: ;; michael@1: -oss*) michael@1: os=-sysv3 michael@1: ;; michael@1: -svr4) michael@1: os=-sysv4 michael@1: ;; michael@1: -svr3) michael@1: os=-sysv3 michael@1: ;; michael@1: -sysvr4) michael@1: os=-sysv4 michael@1: ;; michael@1: # This must come after -sysvr4. michael@1: -sysv*) michael@1: ;; michael@1: -ose*) michael@1: os=-ose michael@1: ;; michael@1: -es1800*) michael@1: os=-ose michael@1: ;; michael@1: -xenix) michael@1: os=-xenix michael@1: ;; michael@1: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) michael@1: os=-mint michael@1: ;; michael@1: -none) michael@1: ;; michael@1: *) michael@1: # Get rid of the `-' at the beginning of $os. michael@1: os=`echo $os | sed 's/[^-]*-//'` michael@1: echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 michael@1: exit 1 michael@1: ;; michael@1: esac michael@1: else michael@1: michael@1: # Here we handle the default operating systems that come with various machines. michael@1: # The value should be what the vendor currently ships out the door with their michael@1: # machine or put another way, the most popular os provided with the machine. michael@1: michael@1: # Note that if you're going to try to match "-MANUFACTURER" here (say, michael@1: # "-sun"), then you have to tell the case statement up towards the top michael@1: # that MANUFACTURER isn't an operating system. Otherwise, code above michael@1: # will signal an error saying that MANUFACTURER isn't an operating michael@1: # system, and we'll never get to this point. michael@1: michael@1: case $basic_machine in michael@1: *-acorn) michael@1: os=-riscix1.2 michael@1: ;; michael@1: arm*-rebel) michael@1: os=-linux michael@1: ;; michael@1: arm*-semi) michael@1: os=-aout michael@1: ;; michael@1: # This must come before the *-dec entry. michael@1: pdp10-*) michael@1: os=-tops20 michael@1: ;; michael@1: pdp11-*) michael@1: os=-none michael@1: ;; michael@1: *-dec | vax-*) michael@1: os=-ultrix4.2 michael@1: ;; michael@1: m68*-apollo) michael@1: os=-domain michael@1: ;; michael@1: i386-sun) michael@1: os=-sunos4.0.2 michael@1: ;; michael@1: m68000-sun) michael@1: os=-sunos3 michael@1: # This also exists in the configure program, but was not the michael@1: # default. michael@1: # os=-sunos4 michael@1: ;; michael@1: m68*-cisco) michael@1: os=-aout michael@1: ;; michael@1: mips*-cisco) michael@1: os=-elf michael@1: ;; michael@1: mips*-*) michael@1: os=-elf michael@1: ;; michael@1: or32-*) michael@1: os=-coff michael@1: ;; michael@1: *-tti) # must be before sparc entry or we get the wrong os. michael@1: os=-sysv3 michael@1: ;; michael@1: sparc-* | *-sun) michael@1: os=-sunos4.1.1 michael@1: ;; michael@1: *-be) michael@1: os=-beos michael@1: ;; michael@1: *-ibm) michael@1: os=-aix michael@1: ;; michael@1: *-wec) michael@1: os=-proelf michael@1: ;; michael@1: *-winbond) michael@1: os=-proelf michael@1: ;; michael@1: *-oki) michael@1: os=-proelf michael@1: ;; michael@1: *-hp) michael@1: os=-hpux michael@1: ;; michael@1: *-hitachi) michael@1: os=-hiux michael@1: ;; michael@1: i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) michael@1: os=-sysv michael@1: ;; michael@1: *-cbm) michael@1: os=-amigaos michael@1: ;; michael@1: *-dg) michael@1: os=-dgux michael@1: ;; michael@1: *-dolphin) michael@1: os=-sysv3 michael@1: ;; michael@1: m68k-ccur) michael@1: os=-rtu michael@1: ;; michael@1: m88k-omron*) michael@1: os=-luna michael@1: ;; michael@1: *-next ) michael@1: os=-nextstep michael@1: ;; michael@1: *-sequent) michael@1: os=-ptx michael@1: ;; michael@1: *-crds) michael@1: os=-unos michael@1: ;; michael@1: *-ns) michael@1: os=-genix michael@1: ;; michael@1: i370-*) michael@1: os=-mvs michael@1: ;; michael@1: *-next) michael@1: os=-nextstep3 michael@1: ;; michael@1: *-gould) michael@1: os=-sysv michael@1: ;; michael@1: *-highlevel) michael@1: os=-bsd michael@1: ;; michael@1: *-encore) michael@1: os=-bsd michael@1: ;; michael@1: *-sgi) michael@1: os=-irix michael@1: ;; michael@1: *-siemens) michael@1: os=-sysv4 michael@1: ;; michael@1: *-masscomp) michael@1: os=-rtu michael@1: ;; michael@1: f30[01]-fujitsu | f700-fujitsu) michael@1: os=-uxpv michael@1: ;; michael@1: *-rom68k) michael@1: os=-coff michael@1: ;; michael@1: *-*bug) michael@1: os=-coff michael@1: ;; michael@1: *-apple) michael@1: os=-macos michael@1: ;; michael@1: *-atari*) michael@1: os=-mint michael@1: ;; michael@1: *) michael@1: os=-none michael@1: ;; michael@1: esac michael@1: fi michael@1: michael@1: # Here we handle the case where we know the os, and the CPU type, but not the michael@1: # manufacturer. We pick the logical manufacturer. michael@1: vendor=unknown michael@1: case $basic_machine in michael@1: *-unknown) michael@1: case $os in michael@1: -riscix*) michael@1: vendor=acorn michael@1: ;; michael@1: -sunos*) michael@1: vendor=sun michael@1: ;; michael@1: -aix*) michael@1: vendor=ibm michael@1: ;; michael@1: -beos*) michael@1: vendor=be michael@1: ;; michael@1: -hpux*) michael@1: vendor=hp michael@1: ;; michael@1: -mpeix*) michael@1: vendor=hp michael@1: ;; michael@1: -hiux*) michael@1: vendor=hitachi michael@1: ;; michael@1: -unos*) michael@1: vendor=crds michael@1: ;; michael@1: -dgux*) michael@1: vendor=dg michael@1: ;; michael@1: -luna*) michael@1: vendor=omron michael@1: ;; michael@1: -genix*) michael@1: vendor=ns michael@1: ;; michael@1: -mvs* | -opened*) michael@1: vendor=ibm michael@1: ;; michael@1: -ptx*) michael@1: vendor=sequent michael@1: ;; michael@1: -vxsim* | -vxworks* | -windiss*) michael@1: vendor=wrs michael@1: ;; michael@1: -aux*) michael@1: vendor=apple michael@1: ;; michael@1: -hms*) michael@1: vendor=hitachi michael@1: ;; michael@1: -mpw* | -macos*) michael@1: vendor=apple michael@1: ;; michael@1: -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) michael@1: vendor=atari michael@1: ;; michael@1: -vos*) michael@1: vendor=stratus michael@1: ;; michael@1: esac michael@1: basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` michael@1: ;; michael@1: esac michael@1: michael@1: echo $basic_machine$os michael@1: exit 0 michael@1: michael@1: # Local variables: michael@1: # eval: (add-hook 'write-file-hooks 'time-stamp) michael@1: # time-stamp-start: "timestamp='" michael@1: # time-stamp-format: "%:y-%02m-%02d" michael@1: # time-stamp-end: "'" michael@1: # End: