config.sub revision 5c526acb82c882e41b655c31f5fa4425c87b671c
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Configuration validation subroutine script.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Free Software Foundation, Inc.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is (in principle) common to ALL GNU software.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The presence of a machine in this file suggests that SOME GNU software
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# can handle that machine. It does not imply ALL GNU software can.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is free software; you can redistribute it and/or modify
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# it under the terms of the GNU General Public License as published by
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the Free Software Foundation; either version 2 of the License, or
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# (at your option) any later version.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This program is distributed in the hope that it will be useful,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# but WITHOUT ANY WARRANTY; without even the implied warranty of
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# GNU General Public License for more details.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# You should have received a copy of the GNU General Public License
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# along with this program; if not, write to the Free Software
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Foundation, Inc., 59 Temple Place - Suite 330,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Boston, MA 02111-1307, USA.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# As a special exception to the GNU General Public License, if you
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# distribute this file as part of a program that contains a
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configuration script generated by Autoconf, you may include it under
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# the same distribution terms that you use for the rest of that program.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Please send patches to <config-patches@gnu.org>.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Configuration subroutine to validate and canonicalize a configuration type.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Supply the specified configuration type as an argument.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# If it is invalid, we print an error message on stderr and exit with code 1.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Otherwise, we print the canonical config type on stdout and succeed.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# This file is supposed to be the same for all GNU packages
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# and recognize all the CPU types, system types and aliases
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# that are meaningful with *any* GNU software.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Each package is responsible for reporting which valid configurations
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# it does not support. The user should be able to distinguish
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# a failure to support a valid configuration from a meaningless
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# configuration.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The goal of this file is to map all the various variations of a given
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# machine specification into a single specification in the form:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# or in some cases, the newer four-part form:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# It is wrong to echo any other type of specification.
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsUsage: $0 [OPTION] CPU-MFR-OPSYS
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews $0 [OPTION] ALIAS
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCanonicalize a configuration name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsOperation modes:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -h, --help print this help, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -t, --time-stamp print date of last modification, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -v, --version print version number, then exit
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsReport bugs and patches to <config-patches@gnu.org>."
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsFree Software Foundation, Inc.
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThis is free software; see the source for copying conditions. There is NO
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewswarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsTry \`$me --help' for more information."
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Parse command line
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --time-stamp | --time* | -t )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews --help | --h* | -h )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -- ) # Stop option processing
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews shift; break ;;
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - ) # Use stdin as input.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo "$me: invalid option $1$help"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First pass through any local machine types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we must recognize all the valid KERNEL-OS combinations.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### Let's recognize common machines as not being operating systems so
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### that things like config.sub decstation-3100 work. We also
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### recognize some manufacturers as not being operating systems, so we
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews### can provide default operating systems below.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Prevent following clause from handling this invalid input.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Don't forget version if it is 3.2v4 or newer.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Decode aliases for certain CPU-COMPANY combinations.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the basic CPU types without company name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Some are omitted here because they have special meanings below.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4100 | mips64vr4100el | mips64vr4300 \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4300el | mips64vr5000 | mips64vr5000el \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Motorola 68HC11/12.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # We use `pc' rather than `unknown'
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # because (1) that's what they normally are, and
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # (2) the word "unknown" tends to confuse beginning users.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Object if more than one company name word.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the basic CPU types with company name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Recognize the various machine names and aliases which stand
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # for a CPU type and a company and sometimes even an OS.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews delta | 3300 | motorola-3300 | motorola-delta \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # FIXME: really hppa2.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # FIXME: really hppa2.0-hp
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# I'm not sure what "Sysv32" means. Should this be sysv3.2?
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews next | m*-next )
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppcle | powerpclittle | ppc-le | powerpc-little)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews ppc64le | powerpc64little | ppc64-le | powerpc64-little)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the default manufacturer of certain CPU types. It is in
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# some cases the only manufacturer, in others, it is the most popular.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # there are many clones, so DEC is not a safe bet
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Make sure to match an already-canonicalized machine name.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we canonicalize certain aliases for manufacturers.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Decode manufacturer-specific aliases for certain operating systems.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First match some system type aliases
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # that might get confused with valid system types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # -solaris* is a basic system type, with this one exception.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # First accept the basic system types.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # The portable systems comes first.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Each alternative MUST END IN A *, to match a version number.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # -sysv* is not here because it comes later, after sysvr4.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Remember, each alternative MUST END IN *, to match a version number.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Preserve the version number of sinix5.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This must come after -sysvr4.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # Get rid of the `-' at the beginning of $os.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the default operating systems that come with various machines.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# The value should be what the vendor currently ships out the door with their
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# machine or put another way, the most popular os provided with the machine.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Note that if you're going to try to match "-MANUFACTURER" here (say,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# "-sun"), then you have to tell the case statement up towards the top
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# that MANUFACTURER isn't an operating system. Otherwise, code above
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# will signal an error saying that MANUFACTURER isn't an operating
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# system, and we'll never get to this point.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # This also exists in the configure program, but was not the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews # os=-sunos4
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews *-tti) # must be before sparc entry or we get the wrong os.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Here we handle the case where we know the os, and the CPU type, but not the
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# manufacturer. We pick the logical manufacturer.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# Local variables:
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# eval: (add-hook 'write-file-hooks 'time-stamp)
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-start: "timestamp='"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-format: "%:y-%02m-%02d"
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews# time-stamp-end: "'"