Home | History | Annotate | Line # | Download | only in build
config.sub revision 1.1.1.4.6.1
      1          1.1     lukem #! /bin/sh
      2          1.1     lukem # Configuration validation subroutine script.
      3  1.1.1.4.6.1  pgoyette #   Copyright 1992-2017 Free Software Foundation, Inc.
      4  1.1.1.4.6.1  pgoyette 
      5  1.1.1.4.6.1  pgoyette timestamp='2017-01-01'
      6  1.1.1.4.6.1  pgoyette 
      7  1.1.1.4.6.1  pgoyette # This file is free software; you can redistribute it and/or modify it
      8  1.1.1.4.6.1  pgoyette # under the terms of the GNU General Public License as published by
      9  1.1.1.4.6.1  pgoyette # the Free Software Foundation; either version 3 of the License, or
     10          1.1     lukem # (at your option) any later version.
     11          1.1     lukem #
     12  1.1.1.4.6.1  pgoyette # This program is distributed in the hope that it will be useful, but
     13  1.1.1.4.6.1  pgoyette # WITHOUT ANY WARRANTY; without even the implied warranty of
     14  1.1.1.4.6.1  pgoyette # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  1.1.1.4.6.1  pgoyette # General Public License for more details.
     16          1.1     lukem #
     17          1.1     lukem # You should have received a copy of the GNU General Public License
     18  1.1.1.4.6.1  pgoyette # along with this program; if not, see <http://www.gnu.org/licenses/>.
     19      1.1.1.4      tron #
     20          1.1     lukem # As a special exception to the GNU General Public License, if you
     21          1.1     lukem # distribute this file as part of a program that contains a
     22          1.1     lukem # configuration script generated by Autoconf, you may include it under
     23  1.1.1.4.6.1  pgoyette # the same distribution terms that you use for the rest of that
     24  1.1.1.4.6.1  pgoyette # program.  This Exception is an additional permission under section 7
     25  1.1.1.4.6.1  pgoyette # of the GNU General Public License, version 3 ("GPLv3").
     26          1.1     lukem 
     27          1.1     lukem 
     28  1.1.1.4.6.1  pgoyette # Please send patches to <config-patches (at] gnu.org>.
     29          1.1     lukem #
     30          1.1     lukem # Configuration subroutine to validate and canonicalize a configuration type.
     31          1.1     lukem # Supply the specified configuration type as an argument.
     32          1.1     lukem # If it is invalid, we print an error message on stderr and exit with code 1.
     33          1.1     lukem # Otherwise, we print the canonical config type on stdout and succeed.
     34          1.1     lukem 
     35      1.1.1.4      tron # You can get the latest version of this script from:
     36  1.1.1.4.6.1  pgoyette # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     37      1.1.1.4      tron 
     38          1.1     lukem # This file is supposed to be the same for all GNU packages
     39          1.1     lukem # and recognize all the CPU types, system types and aliases
     40          1.1     lukem # that are meaningful with *any* GNU software.
     41          1.1     lukem # Each package is responsible for reporting which valid configurations
     42          1.1     lukem # it does not support.  The user should be able to distinguish
     43          1.1     lukem # a failure to support a valid configuration from a meaningless
     44          1.1     lukem # configuration.
     45          1.1     lukem 
     46          1.1     lukem # The goal of this file is to map all the various variations of a given
     47          1.1     lukem # machine specification into a single specification in the form:
     48          1.1     lukem #	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
     49          1.1     lukem # or in some cases, the newer four-part form:
     50          1.1     lukem #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
     51          1.1     lukem # It is wrong to echo any other type of specification.
     52          1.1     lukem 
     53          1.1     lukem me=`echo "$0" | sed -e 's,.*/,,'`
     54          1.1     lukem 
     55          1.1     lukem usage="\
     56  1.1.1.4.6.1  pgoyette Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
     57          1.1     lukem 
     58          1.1     lukem Canonicalize a configuration name.
     59          1.1     lukem 
     60          1.1     lukem Operation modes:
     61          1.1     lukem   -h, --help         print this help, then exit
     62          1.1     lukem   -t, --time-stamp   print date of last modification, then exit
     63          1.1     lukem   -v, --version      print version number, then exit
     64          1.1     lukem 
     65          1.1     lukem Report bugs and patches to <config-patches (at] gnu.org>."
     66          1.1     lukem 
     67          1.1     lukem version="\
     68          1.1     lukem GNU config.sub ($timestamp)
     69          1.1     lukem 
     70  1.1.1.4.6.1  pgoyette Copyright 1992-2017 Free Software Foundation, Inc.
     71          1.1     lukem 
     72          1.1     lukem This is free software; see the source for copying conditions.  There is NO
     73          1.1     lukem warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     74          1.1     lukem 
     75          1.1     lukem help="
     76          1.1     lukem Try \`$me --help' for more information."
     77          1.1     lukem 
     78          1.1     lukem # Parse command line
     79          1.1     lukem while test $# -gt 0 ; do
     80          1.1     lukem   case $1 in
     81          1.1     lukem     --time-stamp | --time* | -t )
     82      1.1.1.4      tron        echo "$timestamp" ; exit ;;
     83          1.1     lukem     --version | -v )
     84      1.1.1.4      tron        echo "$version" ; exit ;;
     85          1.1     lukem     --help | --h* | -h )
     86      1.1.1.4      tron        echo "$usage"; exit ;;
     87          1.1     lukem     -- )     # Stop option processing
     88          1.1     lukem        shift; break ;;
     89          1.1     lukem     - )	# Use stdin as input.
     90          1.1     lukem        break ;;
     91          1.1     lukem     -* )
     92          1.1     lukem        echo "$me: invalid option $1$help"
     93          1.1     lukem        exit 1 ;;
     94          1.1     lukem 
     95          1.1     lukem     *local*)
     96          1.1     lukem        # First pass through any local machine types.
     97          1.1     lukem        echo $1
     98      1.1.1.4      tron        exit ;;
     99          1.1     lukem 
    100          1.1     lukem     * )
    101          1.1     lukem        break ;;
    102          1.1     lukem   esac
    103          1.1     lukem done
    104          1.1     lukem 
    105          1.1     lukem case $# in
    106          1.1     lukem  0) echo "$me: missing argument$help" >&2
    107          1.1     lukem     exit 1;;
    108          1.1     lukem  1) ;;
    109          1.1     lukem  *) echo "$me: too many arguments$help" >&2
    110          1.1     lukem     exit 1;;
    111          1.1     lukem esac
    112          1.1     lukem 
    113          1.1     lukem # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    114          1.1     lukem # Here we must recognize all the valid KERNEL-OS combinations.
    115          1.1     lukem maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    116          1.1     lukem case $maybe_os in
    117      1.1.1.4      tron   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
    118  1.1.1.4.6.1  pgoyette   linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
    119  1.1.1.4.6.1  pgoyette   knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
    120  1.1.1.4.6.1  pgoyette   kopensolaris*-gnu* | cloudabi*-eabi* | \
    121      1.1.1.4      tron   storm-chaos* | os2-emx* | rtmk-nova*)
    122          1.1     lukem     os=-$maybe_os
    123          1.1     lukem     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    124          1.1     lukem     ;;
    125  1.1.1.4.6.1  pgoyette   android-linux)
    126  1.1.1.4.6.1  pgoyette     os=-linux-android
    127  1.1.1.4.6.1  pgoyette     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    128  1.1.1.4.6.1  pgoyette     ;;
    129          1.1     lukem   *)
    130          1.1     lukem     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    131          1.1     lukem     if [ $basic_machine != $1 ]
    132          1.1     lukem     then os=`echo $1 | sed 's/.*-/-/'`
    133          1.1     lukem     else os=; fi
    134          1.1     lukem     ;;
    135          1.1     lukem esac
    136          1.1     lukem 
    137          1.1     lukem ### Let's recognize common machines as not being operating systems so
    138          1.1     lukem ### that things like config.sub decstation-3100 work.  We also
    139          1.1     lukem ### recognize some manufacturers as not being operating systems, so we
    140          1.1     lukem ### can provide default operating systems below.
    141          1.1     lukem case $os in
    142          1.1     lukem 	-sun*os*)
    143          1.1     lukem 		# Prevent following clause from handling this invalid input.
    144          1.1     lukem 		;;
    145          1.1     lukem 	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
    146          1.1     lukem 	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
    147          1.1     lukem 	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
    148          1.1     lukem 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    149          1.1     lukem 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    150          1.1     lukem 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    151  1.1.1.4.6.1  pgoyette 	-apple | -axis | -knuth | -cray | -microblaze*)
    152          1.1     lukem 		os=
    153          1.1     lukem 		basic_machine=$1
    154          1.1     lukem 		;;
    155  1.1.1.4.6.1  pgoyette 	-bluegene*)
    156  1.1.1.4.6.1  pgoyette 		os=-cnk
    157      1.1.1.4      tron 		;;
    158          1.1     lukem 	-sim | -cisco | -oki | -wec | -winbond)
    159          1.1     lukem 		os=
    160          1.1     lukem 		basic_machine=$1
    161          1.1     lukem 		;;
    162          1.1     lukem 	-scout)
    163          1.1     lukem 		;;
    164          1.1     lukem 	-wrs)
    165          1.1     lukem 		os=-vxworks
    166          1.1     lukem 		basic_machine=$1
    167          1.1     lukem 		;;
    168          1.1     lukem 	-chorusos*)
    169          1.1     lukem 		os=-chorusos
    170          1.1     lukem 		basic_machine=$1
    171          1.1     lukem 		;;
    172  1.1.1.4.6.1  pgoyette 	-chorusrdb)
    173  1.1.1.4.6.1  pgoyette 		os=-chorusrdb
    174          1.1     lukem 		basic_machine=$1
    175  1.1.1.4.6.1  pgoyette 		;;
    176          1.1     lukem 	-hiux*)
    177          1.1     lukem 		os=-hiuxwe2
    178          1.1     lukem 		;;
    179      1.1.1.4      tron 	-sco6)
    180      1.1.1.4      tron 		os=-sco5v6
    181      1.1.1.4      tron 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    182      1.1.1.4      tron 		;;
    183          1.1     lukem 	-sco5)
    184          1.1     lukem 		os=-sco3.2v5
    185          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    186          1.1     lukem 		;;
    187          1.1     lukem 	-sco4)
    188          1.1     lukem 		os=-sco3.2v4
    189          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    190          1.1     lukem 		;;
    191          1.1     lukem 	-sco3.2.[4-9]*)
    192          1.1     lukem 		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
    193          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    194          1.1     lukem 		;;
    195          1.1     lukem 	-sco3.2v[4-9]*)
    196          1.1     lukem 		# Don't forget version if it is 3.2v4 or newer.
    197          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    198          1.1     lukem 		;;
    199      1.1.1.4      tron 	-sco5v6*)
    200      1.1.1.4      tron 		# Don't forget version if it is 3.2v4 or newer.
    201      1.1.1.4      tron 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    202      1.1.1.4      tron 		;;
    203          1.1     lukem 	-sco*)
    204          1.1     lukem 		os=-sco3.2v2
    205          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    206          1.1     lukem 		;;
    207          1.1     lukem 	-udk*)
    208          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    209          1.1     lukem 		;;
    210          1.1     lukem 	-isc)
    211          1.1     lukem 		os=-isc2.2
    212          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    213          1.1     lukem 		;;
    214          1.1     lukem 	-clix*)
    215          1.1     lukem 		basic_machine=clipper-intergraph
    216          1.1     lukem 		;;
    217          1.1     lukem 	-isc*)
    218          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    219          1.1     lukem 		;;
    220  1.1.1.4.6.1  pgoyette 	-lynx*178)
    221  1.1.1.4.6.1  pgoyette 		os=-lynxos178
    222  1.1.1.4.6.1  pgoyette 		;;
    223  1.1.1.4.6.1  pgoyette 	-lynx*5)
    224  1.1.1.4.6.1  pgoyette 		os=-lynxos5
    225  1.1.1.4.6.1  pgoyette 		;;
    226          1.1     lukem 	-lynx*)
    227          1.1     lukem 		os=-lynxos
    228          1.1     lukem 		;;
    229          1.1     lukem 	-ptx*)
    230          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
    231          1.1     lukem 		;;
    232          1.1     lukem 	-windowsnt*)
    233          1.1     lukem 		os=`echo $os | sed -e 's/windowsnt/winnt/'`
    234          1.1     lukem 		;;
    235          1.1     lukem 	-psos*)
    236          1.1     lukem 		os=-psos
    237          1.1     lukem 		;;
    238          1.1     lukem 	-mint | -mint[0-9]*)
    239          1.1     lukem 		basic_machine=m68k-atari
    240          1.1     lukem 		os=-mint
    241          1.1     lukem 		;;
    242          1.1     lukem esac
    243          1.1     lukem 
    244          1.1     lukem # Decode aliases for certain CPU-COMPANY combinations.
    245          1.1     lukem case $basic_machine in
    246          1.1     lukem 	# Recognize the basic CPU types without company name.
    247          1.1     lukem 	# Some are omitted here because they have special meanings below.
    248          1.1     lukem 	1750a | 580 \
    249          1.1     lukem 	| a29k \
    250  1.1.1.4.6.1  pgoyette 	| aarch64 | aarch64_be \
    251          1.1     lukem 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    252          1.1     lukem 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    253      1.1.1.4      tron 	| am33_2.0 \
    254  1.1.1.4.6.1  pgoyette 	| arc | arceb \
    255  1.1.1.4.6.1  pgoyette 	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
    256  1.1.1.4.6.1  pgoyette 	| avr | avr32 \
    257  1.1.1.4.6.1  pgoyette 	| ba \
    258  1.1.1.4.6.1  pgoyette 	| be32 | be64 \
    259      1.1.1.4      tron 	| bfin \
    260  1.1.1.4.6.1  pgoyette 	| c4x | c8051 | clipper \
    261          1.1     lukem 	| d10v | d30v | dlx | dsp16xx \
    262  1.1.1.4.6.1  pgoyette 	| e2k | epiphany \
    263  1.1.1.4.6.1  pgoyette 	| fido | fr30 | frv | ft32 \
    264          1.1     lukem 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    265  1.1.1.4.6.1  pgoyette 	| hexagon \
    266          1.1     lukem 	| i370 | i860 | i960 | ia64 \
    267      1.1.1.4      tron 	| ip2k | iq2000 \
    268  1.1.1.4.6.1  pgoyette 	| k1om \
    269  1.1.1.4.6.1  pgoyette 	| le32 | le64 \
    270      1.1.1.4      tron 	| lm32 \
    271      1.1.1.4      tron 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
    272  1.1.1.4.6.1  pgoyette 	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
    273          1.1     lukem 	| mips | mipsbe | mipseb | mipsel | mipsle \
    274          1.1     lukem 	| mips16 \
    275          1.1     lukem 	| mips64 | mips64el \
    276      1.1.1.4      tron 	| mips64octeon | mips64octeonel \
    277          1.1     lukem 	| mips64orion | mips64orionel \
    278      1.1.1.4      tron 	| mips64r5900 | mips64r5900el \
    279      1.1.1.4      tron 	| mips64vr | mips64vrel \
    280          1.1     lukem 	| mips64vr4100 | mips64vr4100el \
    281          1.1     lukem 	| mips64vr4300 | mips64vr4300el \
    282          1.1     lukem 	| mips64vr5000 | mips64vr5000el \
    283      1.1.1.4      tron 	| mips64vr5900 | mips64vr5900el \
    284          1.1     lukem 	| mipsisa32 | mipsisa32el \
    285          1.1     lukem 	| mipsisa32r2 | mipsisa32r2el \
    286  1.1.1.4.6.1  pgoyette 	| mipsisa32r6 | mipsisa32r6el \
    287          1.1     lukem 	| mipsisa64 | mipsisa64el \
    288      1.1.1.4      tron 	| mipsisa64r2 | mipsisa64r2el \
    289  1.1.1.4.6.1  pgoyette 	| mipsisa64r6 | mipsisa64r6el \
    290          1.1     lukem 	| mipsisa64sb1 | mipsisa64sb1el \
    291          1.1     lukem 	| mipsisa64sr71k | mipsisa64sr71kel \
    292  1.1.1.4.6.1  pgoyette 	| mipsr5900 | mipsr5900el \
    293          1.1     lukem 	| mipstx39 | mipstx39el \
    294          1.1     lukem 	| mn10200 | mn10300 \
    295      1.1.1.4      tron 	| moxie \
    296      1.1.1.4      tron 	| mt \
    297          1.1     lukem 	| msp430 \
    298      1.1.1.4      tron 	| nds32 | nds32le | nds32be \
    299  1.1.1.4.6.1  pgoyette 	| nios | nios2 | nios2eb | nios2el \
    300          1.1     lukem 	| ns16k | ns32k \
    301  1.1.1.4.6.1  pgoyette 	| open8 | or1k | or1knd | or32 \
    302          1.1     lukem 	| pdp10 | pdp11 | pj | pjl \
    303  1.1.1.4.6.1  pgoyette 	| powerpc | powerpc64 | powerpc64le | powerpcle \
    304  1.1.1.4.6.1  pgoyette 	| pru \
    305          1.1     lukem 	| pyramid \
    306  1.1.1.4.6.1  pgoyette 	| riscv32 | riscv64 \
    307  1.1.1.4.6.1  pgoyette 	| rl78 | rx \
    308      1.1.1.4      tron 	| score \
    309  1.1.1.4.6.1  pgoyette 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    310          1.1     lukem 	| sh64 | sh64le \
    311      1.1.1.4      tron 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    312      1.1.1.4      tron 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    313  1.1.1.4.6.1  pgoyette 	| spu \
    314  1.1.1.4.6.1  pgoyette 	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
    315      1.1.1.4      tron 	| ubicom32 \
    316  1.1.1.4.6.1  pgoyette 	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
    317  1.1.1.4.6.1  pgoyette 	| visium \
    318          1.1     lukem 	| we32k \
    319  1.1.1.4.6.1  pgoyette 	| x86 | xc16x | xstormy16 | xtensa \
    320      1.1.1.4      tron 	| z8k | z80)
    321          1.1     lukem 		basic_machine=$basic_machine-unknown
    322          1.1     lukem 		;;
    323      1.1.1.4      tron 	c54x)
    324      1.1.1.4      tron 		basic_machine=tic54x-unknown
    325      1.1.1.4      tron 		;;
    326      1.1.1.4      tron 	c55x)
    327      1.1.1.4      tron 		basic_machine=tic55x-unknown
    328      1.1.1.4      tron 		;;
    329      1.1.1.4      tron 	c6x)
    330      1.1.1.4      tron 		basic_machine=tic6x-unknown
    331      1.1.1.4      tron 		;;
    332  1.1.1.4.6.1  pgoyette 	leon|leon[3-9])
    333  1.1.1.4.6.1  pgoyette 		basic_machine=sparc-$basic_machine
    334  1.1.1.4.6.1  pgoyette 		;;
    335  1.1.1.4.6.1  pgoyette 	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
    336          1.1     lukem 		basic_machine=$basic_machine-unknown
    337          1.1     lukem 		os=-none
    338          1.1     lukem 		;;
    339          1.1     lukem 	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
    340          1.1     lukem 		;;
    341      1.1.1.4      tron 	ms1)
    342      1.1.1.4      tron 		basic_machine=mt-unknown
    343      1.1.1.4      tron 		;;
    344          1.1     lukem 
    345  1.1.1.4.6.1  pgoyette 	strongarm | thumb | xscale)
    346  1.1.1.4.6.1  pgoyette 		basic_machine=arm-unknown
    347  1.1.1.4.6.1  pgoyette 		;;
    348  1.1.1.4.6.1  pgoyette 	xgate)
    349  1.1.1.4.6.1  pgoyette 		basic_machine=$basic_machine-unknown
    350  1.1.1.4.6.1  pgoyette 		os=-none
    351  1.1.1.4.6.1  pgoyette 		;;
    352  1.1.1.4.6.1  pgoyette 	xscaleeb)
    353  1.1.1.4.6.1  pgoyette 		basic_machine=armeb-unknown
    354  1.1.1.4.6.1  pgoyette 		;;
    355  1.1.1.4.6.1  pgoyette 
    356  1.1.1.4.6.1  pgoyette 	xscaleel)
    357  1.1.1.4.6.1  pgoyette 		basic_machine=armel-unknown
    358  1.1.1.4.6.1  pgoyette 		;;
    359  1.1.1.4.6.1  pgoyette 
    360          1.1     lukem 	# We use `pc' rather than `unknown'
    361          1.1     lukem 	# because (1) that's what they normally are, and
    362          1.1     lukem 	# (2) the word "unknown" tends to confuse beginning users.
    363          1.1     lukem 	i*86 | x86_64)
    364          1.1     lukem 	  basic_machine=$basic_machine-pc
    365          1.1     lukem 	  ;;
    366          1.1     lukem 	# Object if more than one company name word.
    367          1.1     lukem 	*-*-*)
    368          1.1     lukem 		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
    369          1.1     lukem 		exit 1
    370          1.1     lukem 		;;
    371          1.1     lukem 	# Recognize the basic CPU types with company name.
    372          1.1     lukem 	580-* \
    373          1.1     lukem 	| a29k-* \
    374  1.1.1.4.6.1  pgoyette 	| aarch64-* | aarch64_be-* \
    375          1.1     lukem 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
    376          1.1     lukem 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
    377  1.1.1.4.6.1  pgoyette 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
    378          1.1     lukem 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    379      1.1.1.4      tron 	| avr-* | avr32-* \
    380  1.1.1.4.6.1  pgoyette 	| ba-* \
    381  1.1.1.4.6.1  pgoyette 	| be32-* | be64-* \
    382      1.1.1.4      tron 	| bfin-* | bs2000-* \
    383      1.1.1.4      tron 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
    384  1.1.1.4.6.1  pgoyette 	| c8051-* | clipper-* | craynv-* | cydra-* \
    385          1.1     lukem 	| d10v-* | d30v-* | dlx-* \
    386  1.1.1.4.6.1  pgoyette 	| e2k-* | elxsi-* \
    387      1.1.1.4      tron 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
    388          1.1     lukem 	| h8300-* | h8500-* \
    389          1.1     lukem 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    390  1.1.1.4.6.1  pgoyette 	| hexagon-* \
    391          1.1     lukem 	| i*86-* | i860-* | i960-* | ia64-* \
    392      1.1.1.4      tron 	| ip2k-* | iq2000-* \
    393  1.1.1.4.6.1  pgoyette 	| k1om-* \
    394  1.1.1.4.6.1  pgoyette 	| le32-* | le64-* \
    395      1.1.1.4      tron 	| lm32-* \
    396      1.1.1.4      tron 	| m32c-* | m32r-* | m32rle-* \
    397          1.1     lukem 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    398  1.1.1.4.6.1  pgoyette 	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
    399  1.1.1.4.6.1  pgoyette 	| microblaze-* | microblazeel-* \
    400          1.1     lukem 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    401          1.1     lukem 	| mips16-* \
    402          1.1     lukem 	| mips64-* | mips64el-* \
    403      1.1.1.4      tron 	| mips64octeon-* | mips64octeonel-* \
    404          1.1     lukem 	| mips64orion-* | mips64orionel-* \
    405      1.1.1.4      tron 	| mips64r5900-* | mips64r5900el-* \
    406      1.1.1.4      tron 	| mips64vr-* | mips64vrel-* \
    407          1.1     lukem 	| mips64vr4100-* | mips64vr4100el-* \
    408          1.1     lukem 	| mips64vr4300-* | mips64vr4300el-* \
    409          1.1     lukem 	| mips64vr5000-* | mips64vr5000el-* \
    410      1.1.1.4      tron 	| mips64vr5900-* | mips64vr5900el-* \
    411          1.1     lukem 	| mipsisa32-* | mipsisa32el-* \
    412          1.1     lukem 	| mipsisa32r2-* | mipsisa32r2el-* \
    413  1.1.1.4.6.1  pgoyette 	| mipsisa32r6-* | mipsisa32r6el-* \
    414          1.1     lukem 	| mipsisa64-* | mipsisa64el-* \
    415      1.1.1.4      tron 	| mipsisa64r2-* | mipsisa64r2el-* \
    416  1.1.1.4.6.1  pgoyette 	| mipsisa64r6-* | mipsisa64r6el-* \
    417          1.1     lukem 	| mipsisa64sb1-* | mipsisa64sb1el-* \
    418          1.1     lukem 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
    419  1.1.1.4.6.1  pgoyette 	| mipsr5900-* | mipsr5900el-* \
    420          1.1     lukem 	| mipstx39-* | mipstx39el-* \
    421      1.1.1.4      tron 	| mmix-* \
    422      1.1.1.4      tron 	| mt-* \
    423          1.1     lukem 	| msp430-* \
    424      1.1.1.4      tron 	| nds32-* | nds32le-* | nds32be-* \
    425  1.1.1.4.6.1  pgoyette 	| nios-* | nios2-* | nios2eb-* | nios2el-* \
    426      1.1.1.4      tron 	| none-* | np1-* | ns16k-* | ns32k-* \
    427  1.1.1.4.6.1  pgoyette 	| open8-* \
    428  1.1.1.4.6.1  pgoyette 	| or1k*-* \
    429          1.1     lukem 	| orion-* \
    430          1.1     lukem 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    431  1.1.1.4.6.1  pgoyette 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
    432  1.1.1.4.6.1  pgoyette 	| pru-* \
    433          1.1     lukem 	| pyramid-* \
    434  1.1.1.4.6.1  pgoyette 	| riscv32-* | riscv64-* \
    435  1.1.1.4.6.1  pgoyette 	| rl78-* | romp-* | rs6000-* | rx-* \
    436      1.1.1.4      tron 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
    437          1.1     lukem 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    438      1.1.1.4      tron 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
    439      1.1.1.4      tron 	| sparclite-* \
    440  1.1.1.4.6.1  pgoyette 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
    441  1.1.1.4.6.1  pgoyette 	| tahoe-* \
    442          1.1     lukem 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    443  1.1.1.4.6.1  pgoyette 	| tile*-* \
    444          1.1     lukem 	| tron-* \
    445      1.1.1.4      tron 	| ubicom32-* \
    446  1.1.1.4.6.1  pgoyette 	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
    447  1.1.1.4.6.1  pgoyette 	| vax-* \
    448  1.1.1.4.6.1  pgoyette 	| visium-* \
    449          1.1     lukem 	| we32k-* \
    450  1.1.1.4.6.1  pgoyette 	| x86-* | x86_64-* | xc16x-* | xps100-* \
    451      1.1.1.4      tron 	| xstormy16-* | xtensa*-* \
    452          1.1     lukem 	| ymp-* \
    453      1.1.1.4      tron 	| z8k-* | z80-*)
    454      1.1.1.4      tron 		;;
    455      1.1.1.4      tron 	# Recognize the basic CPU types without company name, with glob match.
    456      1.1.1.4      tron 	xtensa*)
    457      1.1.1.4      tron 		basic_machine=$basic_machine-unknown
    458          1.1     lukem 		;;
    459          1.1     lukem 	# Recognize the various machine names and aliases which stand
    460          1.1     lukem 	# for a CPU type and a company and sometimes even an OS.
    461          1.1     lukem 	386bsd)
    462          1.1     lukem 		basic_machine=i386-unknown
    463          1.1     lukem 		os=-bsd
    464          1.1     lukem 		;;
    465          1.1     lukem 	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
    466          1.1     lukem 		basic_machine=m68000-att
    467          1.1     lukem 		;;
    468          1.1     lukem 	3b*)
    469          1.1     lukem 		basic_machine=we32k-att
    470          1.1     lukem 		;;
    471          1.1     lukem 	a29khif)
    472          1.1     lukem 		basic_machine=a29k-amd
    473          1.1     lukem 		os=-udi
    474          1.1     lukem 		;;
    475  1.1.1.4.6.1  pgoyette 	abacus)
    476      1.1.1.4      tron 		basic_machine=abacus-unknown
    477      1.1.1.4      tron 		;;
    478          1.1     lukem 	adobe68k)
    479          1.1     lukem 		basic_machine=m68010-adobe
    480          1.1     lukem 		os=-scout
    481          1.1     lukem 		;;
    482          1.1     lukem 	alliant | fx80)
    483          1.1     lukem 		basic_machine=fx80-alliant
    484          1.1     lukem 		;;
    485          1.1     lukem 	altos | altos3068)
    486          1.1     lukem 		basic_machine=m68k-altos
    487          1.1     lukem 		;;
    488          1.1     lukem 	am29k)
    489          1.1     lukem 		basic_machine=a29k-none
    490          1.1     lukem 		os=-bsd
    491          1.1     lukem 		;;
    492          1.1     lukem 	amd64)
    493          1.1     lukem 		basic_machine=x86_64-pc
    494          1.1     lukem 		;;
    495      1.1.1.4      tron 	amd64-*)
    496      1.1.1.4      tron 		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
    497      1.1.1.4      tron 		;;
    498          1.1     lukem 	amdahl)
    499          1.1     lukem 		basic_machine=580-amdahl
    500          1.1     lukem 		os=-sysv
    501          1.1     lukem 		;;
    502          1.1     lukem 	amiga | amiga-*)
    503          1.1     lukem 		basic_machine=m68k-unknown
    504          1.1     lukem 		;;
    505          1.1     lukem 	amigaos | amigados)
    506          1.1     lukem 		basic_machine=m68k-unknown
    507          1.1     lukem 		os=-amigaos
    508          1.1     lukem 		;;
    509          1.1     lukem 	amigaunix | amix)
    510          1.1     lukem 		basic_machine=m68k-unknown
    511          1.1     lukem 		os=-sysv4
    512          1.1     lukem 		;;
    513          1.1     lukem 	apollo68)
    514          1.1     lukem 		basic_machine=m68k-apollo
    515          1.1     lukem 		os=-sysv
    516          1.1     lukem 		;;
    517          1.1     lukem 	apollo68bsd)
    518          1.1     lukem 		basic_machine=m68k-apollo
    519          1.1     lukem 		os=-bsd
    520          1.1     lukem 		;;
    521      1.1.1.4      tron 	aros)
    522      1.1.1.4      tron 		basic_machine=i386-pc
    523      1.1.1.4      tron 		os=-aros
    524      1.1.1.4      tron 		;;
    525  1.1.1.4.6.1  pgoyette 	asmjs)
    526  1.1.1.4.6.1  pgoyette 		basic_machine=asmjs-unknown
    527  1.1.1.4.6.1  pgoyette 		;;
    528          1.1     lukem 	aux)
    529          1.1     lukem 		basic_machine=m68k-apple
    530          1.1     lukem 		os=-aux
    531          1.1     lukem 		;;
    532          1.1     lukem 	balance)
    533          1.1     lukem 		basic_machine=ns32k-sequent
    534          1.1     lukem 		os=-dynix
    535          1.1     lukem 		;;
    536      1.1.1.4      tron 	blackfin)
    537      1.1.1.4      tron 		basic_machine=bfin-unknown
    538      1.1.1.4      tron 		os=-linux
    539      1.1.1.4      tron 		;;
    540      1.1.1.4      tron 	blackfin-*)
    541      1.1.1.4      tron 		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
    542      1.1.1.4      tron 		os=-linux
    543      1.1.1.4      tron 		;;
    544      1.1.1.4      tron 	bluegene*)
    545      1.1.1.4      tron 		basic_machine=powerpc-ibm
    546      1.1.1.4      tron 		os=-cnk
    547      1.1.1.4      tron 		;;
    548      1.1.1.4      tron 	c54x-*)
    549      1.1.1.4      tron 		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
    550      1.1.1.4      tron 		;;
    551      1.1.1.4      tron 	c55x-*)
    552      1.1.1.4      tron 		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
    553      1.1.1.4      tron 		;;
    554      1.1.1.4      tron 	c6x-*)
    555      1.1.1.4      tron 		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
    556      1.1.1.4      tron 		;;
    557          1.1     lukem 	c90)
    558          1.1     lukem 		basic_machine=c90-cray
    559          1.1     lukem 		os=-unicos
    560          1.1     lukem 		;;
    561  1.1.1.4.6.1  pgoyette 	cegcc)
    562      1.1.1.4      tron 		basic_machine=arm-unknown
    563      1.1.1.4      tron 		os=-cegcc
    564      1.1.1.4      tron 		;;
    565          1.1     lukem 	convex-c1)
    566          1.1     lukem 		basic_machine=c1-convex
    567          1.1     lukem 		os=-bsd
    568          1.1     lukem 		;;
    569          1.1     lukem 	convex-c2)
    570          1.1     lukem 		basic_machine=c2-convex
    571          1.1     lukem 		os=-bsd
    572          1.1     lukem 		;;
    573          1.1     lukem 	convex-c32)
    574          1.1     lukem 		basic_machine=c32-convex
    575          1.1     lukem 		os=-bsd
    576          1.1     lukem 		;;
    577          1.1     lukem 	convex-c34)
    578          1.1     lukem 		basic_machine=c34-convex
    579          1.1     lukem 		os=-bsd
    580          1.1     lukem 		;;
    581          1.1     lukem 	convex-c38)
    582          1.1     lukem 		basic_machine=c38-convex
    583          1.1     lukem 		os=-bsd
    584          1.1     lukem 		;;
    585          1.1     lukem 	cray | j90)
    586          1.1     lukem 		basic_machine=j90-cray
    587          1.1     lukem 		os=-unicos
    588          1.1     lukem 		;;
    589      1.1.1.4      tron 	craynv)
    590      1.1.1.4      tron 		basic_machine=craynv-cray
    591      1.1.1.4      tron 		os=-unicosmp
    592      1.1.1.4      tron 		;;
    593      1.1.1.4      tron 	cr16 | cr16-*)
    594      1.1.1.4      tron 		basic_machine=cr16-unknown
    595      1.1.1.4      tron 		os=-elf
    596      1.1.1.4      tron 		;;
    597          1.1     lukem 	crds | unos)
    598          1.1     lukem 		basic_machine=m68k-crds
    599          1.1     lukem 		;;
    600      1.1.1.4      tron 	crisv32 | crisv32-* | etraxfs*)
    601      1.1.1.4      tron 		basic_machine=crisv32-axis
    602      1.1.1.4      tron 		;;
    603          1.1     lukem 	cris | cris-* | etrax*)
    604          1.1     lukem 		basic_machine=cris-axis
    605          1.1     lukem 		;;
    606      1.1.1.4      tron 	crx)
    607      1.1.1.4      tron 		basic_machine=crx-unknown
    608      1.1.1.4      tron 		os=-elf
    609      1.1.1.4      tron 		;;
    610          1.1     lukem 	da30 | da30-*)
    611          1.1     lukem 		basic_machine=m68k-da30
    612          1.1     lukem 		;;
    613          1.1     lukem 	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    614          1.1     lukem 		basic_machine=mips-dec
    615          1.1     lukem 		;;
    616          1.1     lukem 	decsystem10* | dec10*)
    617          1.1     lukem 		basic_machine=pdp10-dec
    618          1.1     lukem 		os=-tops10
    619          1.1     lukem 		;;
    620          1.1     lukem 	decsystem20* | dec20*)
    621          1.1     lukem 		basic_machine=pdp10-dec
    622          1.1     lukem 		os=-tops20
    623          1.1     lukem 		;;
    624          1.1     lukem 	delta | 3300 | motorola-3300 | motorola-delta \
    625          1.1     lukem 	      | 3300-motorola | delta-motorola)
    626          1.1     lukem 		basic_machine=m68k-motorola
    627          1.1     lukem 		;;
    628          1.1     lukem 	delta88)
    629          1.1     lukem 		basic_machine=m88k-motorola
    630          1.1     lukem 		os=-sysv3
    631          1.1     lukem 		;;
    632      1.1.1.4      tron 	dicos)
    633      1.1.1.4      tron 		basic_machine=i686-pc
    634      1.1.1.4      tron 		os=-dicos
    635      1.1.1.4      tron 		;;
    636      1.1.1.4      tron 	djgpp)
    637      1.1.1.4      tron 		basic_machine=i586-pc
    638      1.1.1.4      tron 		os=-msdosdjgpp
    639      1.1.1.4      tron 		;;
    640          1.1     lukem 	dpx20 | dpx20-*)
    641          1.1     lukem 		basic_machine=rs6000-bull
    642          1.1     lukem 		os=-bosx
    643          1.1     lukem 		;;
    644          1.1     lukem 	dpx2* | dpx2*-bull)
    645          1.1     lukem 		basic_machine=m68k-bull
    646          1.1     lukem 		os=-sysv3
    647          1.1     lukem 		;;
    648  1.1.1.4.6.1  pgoyette 	e500v[12])
    649  1.1.1.4.6.1  pgoyette 		basic_machine=powerpc-unknown
    650  1.1.1.4.6.1  pgoyette 		os=$os"spe"
    651  1.1.1.4.6.1  pgoyette 		;;
    652  1.1.1.4.6.1  pgoyette 	e500v[12]-*)
    653  1.1.1.4.6.1  pgoyette 		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    654  1.1.1.4.6.1  pgoyette 		os=$os"spe"
    655  1.1.1.4.6.1  pgoyette 		;;
    656          1.1     lukem 	ebmon29k)
    657          1.1     lukem 		basic_machine=a29k-amd
    658          1.1     lukem 		os=-ebmon
    659          1.1     lukem 		;;
    660          1.1     lukem 	elxsi)
    661          1.1     lukem 		basic_machine=elxsi-elxsi
    662          1.1     lukem 		os=-bsd
    663          1.1     lukem 		;;
    664          1.1     lukem 	encore | umax | mmax)
    665          1.1     lukem 		basic_machine=ns32k-encore
    666          1.1     lukem 		;;
    667          1.1     lukem 	es1800 | OSE68k | ose68k | ose | OSE)
    668          1.1     lukem 		basic_machine=m68k-ericsson
    669          1.1     lukem 		os=-ose
    670          1.1     lukem 		;;
    671          1.1     lukem 	fx2800)
    672          1.1     lukem 		basic_machine=i860-alliant
    673          1.1     lukem 		;;
    674          1.1     lukem 	genix)
    675          1.1     lukem 		basic_machine=ns32k-ns
    676          1.1     lukem 		;;
    677          1.1     lukem 	gmicro)
    678          1.1     lukem 		basic_machine=tron-gmicro
    679          1.1     lukem 		os=-sysv
    680          1.1     lukem 		;;
    681          1.1     lukem 	go32)
    682          1.1     lukem 		basic_machine=i386-pc
    683          1.1     lukem 		os=-go32
    684          1.1     lukem 		;;
    685          1.1     lukem 	h3050r* | hiux*)
    686          1.1     lukem 		basic_machine=hppa1.1-hitachi
    687          1.1     lukem 		os=-hiuxwe2
    688          1.1     lukem 		;;
    689          1.1     lukem 	h8300hms)
    690          1.1     lukem 		basic_machine=h8300-hitachi
    691          1.1     lukem 		os=-hms
    692          1.1     lukem 		;;
    693          1.1     lukem 	h8300xray)
    694          1.1     lukem 		basic_machine=h8300-hitachi
    695          1.1     lukem 		os=-xray
    696          1.1     lukem 		;;
    697          1.1     lukem 	h8500hms)
    698          1.1     lukem 		basic_machine=h8500-hitachi
    699          1.1     lukem 		os=-hms
    700          1.1     lukem 		;;
    701          1.1     lukem 	harris)
    702          1.1     lukem 		basic_machine=m88k-harris
    703          1.1     lukem 		os=-sysv3
    704          1.1     lukem 		;;
    705          1.1     lukem 	hp300-*)
    706          1.1     lukem 		basic_machine=m68k-hp
    707          1.1     lukem 		;;
    708          1.1     lukem 	hp300bsd)
    709          1.1     lukem 		basic_machine=m68k-hp
    710          1.1     lukem 		os=-bsd
    711          1.1     lukem 		;;
    712          1.1     lukem 	hp300hpux)
    713          1.1     lukem 		basic_machine=m68k-hp
    714          1.1     lukem 		os=-hpux
    715          1.1     lukem 		;;
    716          1.1     lukem 	hp3k9[0-9][0-9] | hp9[0-9][0-9])
    717          1.1     lukem 		basic_machine=hppa1.0-hp
    718          1.1     lukem 		;;
    719          1.1     lukem 	hp9k2[0-9][0-9] | hp9k31[0-9])
    720          1.1     lukem 		basic_machine=m68000-hp
    721          1.1     lukem 		;;
    722          1.1     lukem 	hp9k3[2-9][0-9])
    723          1.1     lukem 		basic_machine=m68k-hp
    724          1.1     lukem 		;;
    725          1.1     lukem 	hp9k6[0-9][0-9] | hp6[0-9][0-9])
    726          1.1     lukem 		basic_machine=hppa1.0-hp
    727          1.1     lukem 		;;
    728          1.1     lukem 	hp9k7[0-79][0-9] | hp7[0-79][0-9])
    729          1.1     lukem 		basic_machine=hppa1.1-hp
    730          1.1     lukem 		;;
    731          1.1     lukem 	hp9k78[0-9] | hp78[0-9])
    732          1.1     lukem 		# FIXME: really hppa2.0-hp
    733          1.1     lukem 		basic_machine=hppa1.1-hp
    734          1.1     lukem 		;;
    735          1.1     lukem 	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
    736          1.1     lukem 		# FIXME: really hppa2.0-hp
    737          1.1     lukem 		basic_machine=hppa1.1-hp
    738          1.1     lukem 		;;
    739          1.1     lukem 	hp9k8[0-9][13679] | hp8[0-9][13679])
    740          1.1     lukem 		basic_machine=hppa1.1-hp
    741          1.1     lukem 		;;
    742          1.1     lukem 	hp9k8[0-9][0-9] | hp8[0-9][0-9])
    743          1.1     lukem 		basic_machine=hppa1.0-hp
    744          1.1     lukem 		;;
    745          1.1     lukem 	hppa-next)
    746          1.1     lukem 		os=-nextstep3
    747          1.1     lukem 		;;
    748          1.1     lukem 	hppaosf)
    749          1.1     lukem 		basic_machine=hppa1.1-hp
    750          1.1     lukem 		os=-osf
    751          1.1     lukem 		;;
    752          1.1     lukem 	hppro)
    753          1.1     lukem 		basic_machine=hppa1.1-hp
    754          1.1     lukem 		os=-proelf
    755          1.1     lukem 		;;
    756          1.1     lukem 	i370-ibm* | ibm*)
    757          1.1     lukem 		basic_machine=i370-ibm
    758          1.1     lukem 		;;
    759          1.1     lukem 	i*86v32)
    760          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    761          1.1     lukem 		os=-sysv32
    762          1.1     lukem 		;;
    763          1.1     lukem 	i*86v4*)
    764          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    765          1.1     lukem 		os=-sysv4
    766          1.1     lukem 		;;
    767          1.1     lukem 	i*86v)
    768          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    769          1.1     lukem 		os=-sysv
    770          1.1     lukem 		;;
    771          1.1     lukem 	i*86sol2)
    772          1.1     lukem 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    773          1.1     lukem 		os=-solaris2
    774          1.1     lukem 		;;
    775          1.1     lukem 	i386mach)
    776          1.1     lukem 		basic_machine=i386-mach
    777          1.1     lukem 		os=-mach
    778          1.1     lukem 		;;
    779          1.1     lukem 	i386-vsta | vsta)
    780          1.1     lukem 		basic_machine=i386-unknown
    781          1.1     lukem 		os=-vsta
    782          1.1     lukem 		;;
    783          1.1     lukem 	iris | iris4d)
    784          1.1     lukem 		basic_machine=mips-sgi
    785          1.1     lukem 		case $os in
    786          1.1     lukem 		    -irix*)
    787          1.1     lukem 			;;
    788          1.1     lukem 		    *)
    789          1.1     lukem 			os=-irix4
    790          1.1     lukem 			;;
    791          1.1     lukem 		esac
    792          1.1     lukem 		;;
    793          1.1     lukem 	isi68 | isi)
    794          1.1     lukem 		basic_machine=m68k-isi
    795          1.1     lukem 		os=-sysv
    796          1.1     lukem 		;;
    797  1.1.1.4.6.1  pgoyette 	leon-*|leon[3-9]-*)
    798  1.1.1.4.6.1  pgoyette 		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
    799  1.1.1.4.6.1  pgoyette 		;;
    800      1.1.1.4      tron 	m68knommu)
    801      1.1.1.4      tron 		basic_machine=m68k-unknown
    802      1.1.1.4      tron 		os=-linux
    803      1.1.1.4      tron 		;;
    804      1.1.1.4      tron 	m68knommu-*)
    805      1.1.1.4      tron 		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
    806      1.1.1.4      tron 		os=-linux
    807      1.1.1.4      tron 		;;
    808          1.1     lukem 	m88k-omron*)
    809          1.1     lukem 		basic_machine=m88k-omron
    810          1.1     lukem 		;;
    811          1.1     lukem 	magnum | m3230)
    812          1.1     lukem 		basic_machine=mips-mips
    813          1.1     lukem 		os=-sysv
    814          1.1     lukem 		;;
    815          1.1     lukem 	merlin)
    816          1.1     lukem 		basic_machine=ns32k-utek
    817          1.1     lukem 		os=-sysv
    818          1.1     lukem 		;;
    819  1.1.1.4.6.1  pgoyette 	microblaze*)
    820      1.1.1.4      tron 		basic_machine=microblaze-xilinx
    821      1.1.1.4      tron 		;;
    822  1.1.1.4.6.1  pgoyette 	mingw64)
    823  1.1.1.4.6.1  pgoyette 		basic_machine=x86_64-pc
    824  1.1.1.4.6.1  pgoyette 		os=-mingw64
    825  1.1.1.4.6.1  pgoyette 		;;
    826          1.1     lukem 	mingw32)
    827  1.1.1.4.6.1  pgoyette 		basic_machine=i686-pc
    828          1.1     lukem 		os=-mingw32
    829          1.1     lukem 		;;
    830      1.1.1.4      tron 	mingw32ce)
    831      1.1.1.4      tron 		basic_machine=arm-unknown
    832      1.1.1.4      tron 		os=-mingw32ce
    833      1.1.1.4      tron 		;;
    834          1.1     lukem 	miniframe)
    835          1.1     lukem 		basic_machine=m68000-convergent
    836          1.1     lukem 		;;
    837          1.1     lukem 	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
    838          1.1     lukem 		basic_machine=m68k-atari
    839          1.1     lukem 		os=-mint
    840          1.1     lukem 		;;
    841          1.1     lukem 	mips3*-*)
    842          1.1     lukem 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
    843          1.1     lukem 		;;
    844          1.1     lukem 	mips3*)
    845          1.1     lukem 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    846          1.1     lukem 		;;
    847          1.1     lukem 	monitor)
    848          1.1     lukem 		basic_machine=m68k-rom68k
    849          1.1     lukem 		os=-coff
    850          1.1     lukem 		;;
    851          1.1     lukem 	morphos)
    852          1.1     lukem 		basic_machine=powerpc-unknown
    853          1.1     lukem 		os=-morphos
    854          1.1     lukem 		;;
    855  1.1.1.4.6.1  pgoyette 	moxiebox)
    856  1.1.1.4.6.1  pgoyette 		basic_machine=moxie-unknown
    857  1.1.1.4.6.1  pgoyette 		os=-moxiebox
    858  1.1.1.4.6.1  pgoyette 		;;
    859          1.1     lukem 	msdos)
    860          1.1     lukem 		basic_machine=i386-pc
    861          1.1     lukem 		os=-msdos
    862          1.1     lukem 		;;
    863      1.1.1.4      tron 	ms1-*)
    864      1.1.1.4      tron 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
    865      1.1.1.4      tron 		;;
    866  1.1.1.4.6.1  pgoyette 	msys)
    867  1.1.1.4.6.1  pgoyette 		basic_machine=i686-pc
    868  1.1.1.4.6.1  pgoyette 		os=-msys
    869  1.1.1.4.6.1  pgoyette 		;;
    870          1.1     lukem 	mvs)
    871          1.1     lukem 		basic_machine=i370-ibm
    872          1.1     lukem 		os=-mvs
    873          1.1     lukem 		;;
    874  1.1.1.4.6.1  pgoyette 	nacl)
    875  1.1.1.4.6.1  pgoyette 		basic_machine=le32-unknown
    876  1.1.1.4.6.1  pgoyette 		os=-nacl
    877  1.1.1.4.6.1  pgoyette 		;;
    878          1.1     lukem 	ncr3000)
    879          1.1     lukem 		basic_machine=i486-ncr
    880          1.1     lukem 		os=-sysv4
    881          1.1     lukem 		;;
    882          1.1     lukem 	netbsd386)
    883          1.1     lukem 		basic_machine=i386-unknown
    884          1.1     lukem 		os=-netbsd
    885          1.1     lukem 		;;
    886          1.1     lukem 	netwinder)
    887          1.1     lukem 		basic_machine=armv4l-rebel
    888          1.1     lukem 		os=-linux
    889          1.1     lukem 		;;
    890          1.1     lukem 	news | news700 | news800 | news900)
    891          1.1     lukem 		basic_machine=m68k-sony
    892          1.1     lukem 		os=-newsos
    893          1.1     lukem 		;;
    894          1.1     lukem 	news1000)
    895          1.1     lukem 		basic_machine=m68030-sony
    896          1.1     lukem 		os=-newsos
    897          1.1     lukem 		;;
    898          1.1     lukem 	news-3600 | risc-news)
    899          1.1     lukem 		basic_machine=mips-sony
    900          1.1     lukem 		os=-newsos
    901          1.1     lukem 		;;
    902          1.1     lukem 	necv70)
    903          1.1     lukem 		basic_machine=v70-nec
    904          1.1     lukem 		os=-sysv
    905          1.1     lukem 		;;
    906          1.1     lukem 	next | m*-next )
    907          1.1     lukem 		basic_machine=m68k-next
    908          1.1     lukem 		case $os in
    909          1.1     lukem 		    -nextstep* )
    910          1.1     lukem 			;;
    911          1.1     lukem 		    -ns2*)
    912          1.1     lukem 		      os=-nextstep2
    913          1.1     lukem 			;;
    914          1.1     lukem 		    *)
    915          1.1     lukem 		      os=-nextstep3
    916          1.1     lukem 			;;
    917          1.1     lukem 		esac
    918          1.1     lukem 		;;
    919          1.1     lukem 	nh3000)
    920          1.1     lukem 		basic_machine=m68k-harris
    921          1.1     lukem 		os=-cxux
    922          1.1     lukem 		;;
    923          1.1     lukem 	nh[45]000)
    924          1.1     lukem 		basic_machine=m88k-harris
    925          1.1     lukem 		os=-cxux
    926          1.1     lukem 		;;
    927          1.1     lukem 	nindy960)
    928          1.1     lukem 		basic_machine=i960-intel
    929          1.1     lukem 		os=-nindy
    930          1.1     lukem 		;;
    931          1.1     lukem 	mon960)
    932          1.1     lukem 		basic_machine=i960-intel
    933          1.1     lukem 		os=-mon960
    934          1.1     lukem 		;;
    935          1.1     lukem 	nonstopux)
    936          1.1     lukem 		basic_machine=mips-compaq
    937          1.1     lukem 		os=-nonstopux
    938          1.1     lukem 		;;
    939          1.1     lukem 	np1)
    940          1.1     lukem 		basic_machine=np1-gould
    941          1.1     lukem 		;;
    942  1.1.1.4.6.1  pgoyette 	neo-tandem)
    943      1.1.1.4      tron 		basic_machine=neo-tandem
    944      1.1.1.4      tron 		;;
    945  1.1.1.4.6.1  pgoyette 	nse-tandem)
    946      1.1.1.4      tron 		basic_machine=nse-tandem
    947          1.1     lukem 		;;
    948          1.1     lukem 	nsr-tandem)
    949          1.1     lukem 		basic_machine=nsr-tandem
    950          1.1     lukem 		;;
    951          1.1     lukem 	op50n-* | op60c-*)
    952          1.1     lukem 		basic_machine=hppa1.1-oki
    953          1.1     lukem 		os=-proelf
    954          1.1     lukem 		;;
    955      1.1.1.4      tron 	openrisc | openrisc-*)
    956          1.1     lukem 		basic_machine=or32-unknown
    957      1.1.1.4      tron 		;;
    958      1.1.1.4      tron 	os400)
    959      1.1.1.4      tron 		basic_machine=powerpc-ibm
    960      1.1.1.4      tron 		os=-os400
    961          1.1     lukem 		;;
    962          1.1     lukem 	OSE68000 | ose68000)
    963          1.1     lukem 		basic_machine=m68000-ericsson
    964          1.1     lukem 		os=-ose
    965          1.1     lukem 		;;
    966          1.1     lukem 	os68k)
    967          1.1     lukem 		basic_machine=m68k-none
    968          1.1     lukem 		os=-os68k
    969          1.1     lukem 		;;
    970          1.1     lukem 	pa-hitachi)
    971          1.1     lukem 		basic_machine=hppa1.1-hitachi
    972          1.1     lukem 		os=-hiuxwe2
    973          1.1     lukem 		;;
    974          1.1     lukem 	paragon)
    975          1.1     lukem 		basic_machine=i860-intel
    976          1.1     lukem 		os=-osf
    977          1.1     lukem 		;;
    978      1.1.1.4      tron 	parisc)
    979      1.1.1.4      tron 		basic_machine=hppa-unknown
    980      1.1.1.4      tron 		os=-linux
    981      1.1.1.4      tron 		;;
    982      1.1.1.4      tron 	parisc-*)
    983      1.1.1.4      tron 		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
    984      1.1.1.4      tron 		os=-linux
    985      1.1.1.4      tron 		;;
    986          1.1     lukem 	pbd)
    987          1.1     lukem 		basic_machine=sparc-tti
    988          1.1     lukem 		;;
    989          1.1     lukem 	pbb)
    990          1.1     lukem 		basic_machine=m68k-tti
    991          1.1     lukem 		;;
    992          1.1     lukem 	pc532 | pc532-*)
    993          1.1     lukem 		basic_machine=ns32k-pc532
    994          1.1     lukem 		;;
    995      1.1.1.4      tron 	pc98)
    996      1.1.1.4      tron 		basic_machine=i386-pc
    997      1.1.1.4      tron 		;;
    998      1.1.1.4      tron 	pc98-*)
    999      1.1.1.4      tron 		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
   1000      1.1.1.4      tron 		;;
   1001          1.1     lukem 	pentium | p5 | k5 | k6 | nexgen | viac3)
   1002          1.1     lukem 		basic_machine=i586-pc
   1003          1.1     lukem 		;;
   1004          1.1     lukem 	pentiumpro | p6 | 6x86 | athlon | athlon_*)
   1005          1.1     lukem 		basic_machine=i686-pc
   1006          1.1     lukem 		;;
   1007          1.1     lukem 	pentiumii | pentium2 | pentiumiii | pentium3)
   1008          1.1     lukem 		basic_machine=i686-pc
   1009          1.1     lukem 		;;
   1010          1.1     lukem 	pentium4)
   1011          1.1     lukem 		basic_machine=i786-pc
   1012          1.1     lukem 		;;
   1013          1.1     lukem 	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
   1014          1.1     lukem 		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   1015          1.1     lukem 		;;
   1016          1.1     lukem 	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   1017          1.1     lukem 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1018          1.1     lukem 		;;
   1019          1.1     lukem 	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
   1020          1.1     lukem 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1021          1.1     lukem 		;;
   1022          1.1     lukem 	pentium4-*)
   1023          1.1     lukem 		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   1024          1.1     lukem 		;;
   1025          1.1     lukem 	pn)
   1026          1.1     lukem 		basic_machine=pn-gould
   1027          1.1     lukem 		;;
   1028          1.1     lukem 	power)	basic_machine=power-ibm
   1029          1.1     lukem 		;;
   1030  1.1.1.4.6.1  pgoyette 	ppc | ppcbe)	basic_machine=powerpc-unknown
   1031          1.1     lukem 		;;
   1032  1.1.1.4.6.1  pgoyette 	ppc-* | ppcbe-*)
   1033  1.1.1.4.6.1  pgoyette 		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   1034          1.1     lukem 		;;
   1035  1.1.1.4.6.1  pgoyette 	ppcle | powerpclittle)
   1036          1.1     lukem 		basic_machine=powerpcle-unknown
   1037          1.1     lukem 		;;
   1038          1.1     lukem 	ppcle-* | powerpclittle-*)
   1039          1.1     lukem 		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   1040          1.1     lukem 		;;
   1041          1.1     lukem 	ppc64)	basic_machine=powerpc64-unknown
   1042          1.1     lukem 		;;
   1043          1.1     lukem 	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
   1044          1.1     lukem 		;;
   1045  1.1.1.4.6.1  pgoyette 	ppc64le | powerpc64little)
   1046          1.1     lukem 		basic_machine=powerpc64le-unknown
   1047          1.1     lukem 		;;
   1048          1.1     lukem 	ppc64le-* | powerpc64little-*)
   1049          1.1     lukem 		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
   1050          1.1     lukem 		;;
   1051          1.1     lukem 	ps2)
   1052          1.1     lukem 		basic_machine=i386-ibm
   1053          1.1     lukem 		;;
   1054          1.1     lukem 	pw32)
   1055          1.1     lukem 		basic_machine=i586-unknown
   1056          1.1     lukem 		os=-pw32
   1057          1.1     lukem 		;;
   1058  1.1.1.4.6.1  pgoyette 	rdos | rdos64)
   1059  1.1.1.4.6.1  pgoyette 		basic_machine=x86_64-pc
   1060  1.1.1.4.6.1  pgoyette 		os=-rdos
   1061  1.1.1.4.6.1  pgoyette 		;;
   1062  1.1.1.4.6.1  pgoyette 	rdos32)
   1063      1.1.1.4      tron 		basic_machine=i386-pc
   1064      1.1.1.4      tron 		os=-rdos
   1065      1.1.1.4      tron 		;;
   1066          1.1     lukem 	rom68k)
   1067          1.1     lukem 		basic_machine=m68k-rom68k
   1068          1.1     lukem 		os=-coff
   1069          1.1     lukem 		;;
   1070          1.1     lukem 	rm[46]00)
   1071          1.1     lukem 		basic_machine=mips-siemens
   1072          1.1     lukem 		;;
   1073          1.1     lukem 	rtpc | rtpc-*)
   1074          1.1     lukem 		basic_machine=romp-ibm
   1075          1.1     lukem 		;;
   1076          1.1     lukem 	s390 | s390-*)
   1077          1.1     lukem 		basic_machine=s390-ibm
   1078          1.1     lukem 		;;
   1079          1.1     lukem 	s390x | s390x-*)
   1080          1.1     lukem 		basic_machine=s390x-ibm
   1081          1.1     lukem 		;;
   1082          1.1     lukem 	sa29200)
   1083          1.1     lukem 		basic_machine=a29k-amd
   1084          1.1     lukem 		os=-udi
   1085          1.1     lukem 		;;
   1086          1.1     lukem 	sb1)
   1087          1.1     lukem 		basic_machine=mipsisa64sb1-unknown
   1088          1.1     lukem 		;;
   1089          1.1     lukem 	sb1el)
   1090          1.1     lukem 		basic_machine=mipsisa64sb1el-unknown
   1091          1.1     lukem 		;;
   1092      1.1.1.4      tron 	sde)
   1093      1.1.1.4      tron 		basic_machine=mipsisa32-sde
   1094      1.1.1.4      tron 		os=-elf
   1095      1.1.1.4      tron 		;;
   1096          1.1     lukem 	sei)
   1097          1.1     lukem 		basic_machine=mips-sei
   1098          1.1     lukem 		os=-seiux
   1099          1.1     lukem 		;;
   1100          1.1     lukem 	sequent)
   1101          1.1     lukem 		basic_machine=i386-sequent
   1102          1.1     lukem 		;;
   1103          1.1     lukem 	sh)
   1104          1.1     lukem 		basic_machine=sh-hitachi
   1105          1.1     lukem 		os=-hms
   1106          1.1     lukem 		;;
   1107      1.1.1.4      tron 	sh5el)
   1108      1.1.1.4      tron 		basic_machine=sh5le-unknown
   1109      1.1.1.4      tron 		;;
   1110          1.1     lukem 	sh64)
   1111          1.1     lukem 		basic_machine=sh64-unknown
   1112          1.1     lukem 		;;
   1113          1.1     lukem 	sparclite-wrs | simso-wrs)
   1114          1.1     lukem 		basic_machine=sparclite-wrs
   1115          1.1     lukem 		os=-vxworks
   1116          1.1     lukem 		;;
   1117          1.1     lukem 	sps7)
   1118          1.1     lukem 		basic_machine=m68k-bull
   1119          1.1     lukem 		os=-sysv2
   1120          1.1     lukem 		;;
   1121          1.1     lukem 	spur)
   1122          1.1     lukem 		basic_machine=spur-unknown
   1123          1.1     lukem 		;;
   1124          1.1     lukem 	st2000)
   1125          1.1     lukem 		basic_machine=m68k-tandem
   1126          1.1     lukem 		;;
   1127          1.1     lukem 	stratus)
   1128          1.1     lukem 		basic_machine=i860-stratus
   1129          1.1     lukem 		os=-sysv4
   1130          1.1     lukem 		;;
   1131  1.1.1.4.6.1  pgoyette 	strongarm-* | thumb-*)
   1132  1.1.1.4.6.1  pgoyette 		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
   1133  1.1.1.4.6.1  pgoyette 		;;
   1134          1.1     lukem 	sun2)
   1135          1.1     lukem 		basic_machine=m68000-sun
   1136          1.1     lukem 		;;
   1137          1.1     lukem 	sun2os3)
   1138          1.1     lukem 		basic_machine=m68000-sun
   1139          1.1     lukem 		os=-sunos3
   1140          1.1     lukem 		;;
   1141          1.1     lukem 	sun2os4)
   1142          1.1     lukem 		basic_machine=m68000-sun
   1143          1.1     lukem 		os=-sunos4
   1144          1.1     lukem 		;;
   1145          1.1     lukem 	sun3os3)
   1146          1.1     lukem 		basic_machine=m68k-sun
   1147          1.1     lukem 		os=-sunos3
   1148          1.1     lukem 		;;
   1149          1.1     lukem 	sun3os4)
   1150          1.1     lukem 		basic_machine=m68k-sun
   1151          1.1     lukem 		os=-sunos4
   1152          1.1     lukem 		;;
   1153          1.1     lukem 	sun4os3)
   1154          1.1     lukem 		basic_machine=sparc-sun
   1155          1.1     lukem 		os=-sunos3
   1156          1.1     lukem 		;;
   1157          1.1     lukem 	sun4os4)
   1158          1.1     lukem 		basic_machine=sparc-sun
   1159          1.1     lukem 		os=-sunos4
   1160          1.1     lukem 		;;
   1161          1.1     lukem 	sun4sol2)
   1162          1.1     lukem 		basic_machine=sparc-sun
   1163          1.1     lukem 		os=-solaris2
   1164          1.1     lukem 		;;
   1165          1.1     lukem 	sun3 | sun3-*)
   1166          1.1     lukem 		basic_machine=m68k-sun
   1167          1.1     lukem 		;;
   1168          1.1     lukem 	sun4)
   1169          1.1     lukem 		basic_machine=sparc-sun
   1170          1.1     lukem 		;;
   1171          1.1     lukem 	sun386 | sun386i | roadrunner)
   1172          1.1     lukem 		basic_machine=i386-sun
   1173          1.1     lukem 		;;
   1174          1.1     lukem 	sv1)
   1175          1.1     lukem 		basic_machine=sv1-cray
   1176          1.1     lukem 		os=-unicos
   1177          1.1     lukem 		;;
   1178          1.1     lukem 	symmetry)
   1179          1.1     lukem 		basic_machine=i386-sequent
   1180          1.1     lukem 		os=-dynix
   1181          1.1     lukem 		;;
   1182          1.1     lukem 	t3e)
   1183          1.1     lukem 		basic_machine=alphaev5-cray
   1184          1.1     lukem 		os=-unicos
   1185          1.1     lukem 		;;
   1186          1.1     lukem 	t90)
   1187          1.1     lukem 		basic_machine=t90-cray
   1188          1.1     lukem 		os=-unicos
   1189          1.1     lukem 		;;
   1190      1.1.1.4      tron 	tile*)
   1191  1.1.1.4.6.1  pgoyette 		basic_machine=$basic_machine-unknown
   1192      1.1.1.4      tron 		os=-linux-gnu
   1193          1.1     lukem 		;;
   1194          1.1     lukem 	tx39)
   1195          1.1     lukem 		basic_machine=mipstx39-unknown
   1196          1.1     lukem 		;;
   1197          1.1     lukem 	tx39el)
   1198          1.1     lukem 		basic_machine=mipstx39el-unknown
   1199          1.1     lukem 		;;
   1200          1.1     lukem 	toad1)
   1201          1.1     lukem 		basic_machine=pdp10-xkl
   1202          1.1     lukem 		os=-tops20
   1203          1.1     lukem 		;;
   1204          1.1     lukem 	tower | tower-32)
   1205          1.1     lukem 		basic_machine=m68k-ncr
   1206          1.1     lukem 		;;
   1207      1.1.1.4      tron 	tpf)
   1208      1.1.1.4      tron 		basic_machine=s390x-ibm
   1209      1.1.1.4      tron 		os=-tpf
   1210      1.1.1.4      tron 		;;
   1211          1.1     lukem 	udi29k)
   1212          1.1     lukem 		basic_machine=a29k-amd
   1213          1.1     lukem 		os=-udi
   1214          1.1     lukem 		;;
   1215          1.1     lukem 	ultra3)
   1216          1.1     lukem 		basic_machine=a29k-nyu
   1217          1.1     lukem 		os=-sym1
   1218          1.1     lukem 		;;
   1219          1.1     lukem 	v810 | necv810)
   1220          1.1     lukem 		basic_machine=v810-nec
   1221          1.1     lukem 		os=-none
   1222          1.1     lukem 		;;
   1223          1.1     lukem 	vaxv)
   1224          1.1     lukem 		basic_machine=vax-dec
   1225          1.1     lukem 		os=-sysv
   1226          1.1     lukem 		;;
   1227          1.1     lukem 	vms)
   1228          1.1     lukem 		basic_machine=vax-dec
   1229          1.1     lukem 		os=-vms
   1230          1.1     lukem 		;;
   1231          1.1     lukem 	vpp*|vx|vx-*)
   1232          1.1     lukem 		basic_machine=f301-fujitsu
   1233          1.1     lukem 		;;
   1234          1.1     lukem 	vxworks960)
   1235          1.1     lukem 		basic_machine=i960-wrs
   1236          1.1     lukem 		os=-vxworks
   1237          1.1     lukem 		;;
   1238          1.1     lukem 	vxworks68)
   1239          1.1     lukem 		basic_machine=m68k-wrs
   1240          1.1     lukem 		os=-vxworks
   1241          1.1     lukem 		;;
   1242          1.1     lukem 	vxworks29k)
   1243          1.1     lukem 		basic_machine=a29k-wrs
   1244          1.1     lukem 		os=-vxworks
   1245          1.1     lukem 		;;
   1246          1.1     lukem 	w65*)
   1247          1.1     lukem 		basic_machine=w65-wdc
   1248          1.1     lukem 		os=-none
   1249          1.1     lukem 		;;
   1250          1.1     lukem 	w89k-*)
   1251          1.1     lukem 		basic_machine=hppa1.1-winbond
   1252          1.1     lukem 		os=-proelf
   1253          1.1     lukem 		;;
   1254      1.1.1.4      tron 	xbox)
   1255      1.1.1.4      tron 		basic_machine=i686-pc
   1256      1.1.1.4      tron 		os=-mingw32
   1257      1.1.1.4      tron 		;;
   1258          1.1     lukem 	xps | xps100)
   1259          1.1     lukem 		basic_machine=xps100-honeywell
   1260          1.1     lukem 		;;
   1261  1.1.1.4.6.1  pgoyette 	xscale-* | xscalee[bl]-*)
   1262  1.1.1.4.6.1  pgoyette 		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
   1263  1.1.1.4.6.1  pgoyette 		;;
   1264          1.1     lukem 	ymp)
   1265          1.1     lukem 		basic_machine=ymp-cray
   1266          1.1     lukem 		os=-unicos
   1267          1.1     lukem 		;;
   1268          1.1     lukem 	z8k-*-coff)
   1269          1.1     lukem 		basic_machine=z8k-unknown
   1270          1.1     lukem 		os=-sim
   1271          1.1     lukem 		;;
   1272      1.1.1.4      tron 	z80-*-coff)
   1273      1.1.1.4      tron 		basic_machine=z80-unknown
   1274      1.1.1.4      tron 		os=-sim
   1275      1.1.1.4      tron 		;;
   1276          1.1     lukem 	none)
   1277          1.1     lukem 		basic_machine=none-none
   1278          1.1     lukem 		os=-none
   1279          1.1     lukem 		;;
   1280          1.1     lukem 
   1281          1.1     lukem # Here we handle the default manufacturer of certain CPU types.  It is in
   1282          1.1     lukem # some cases the only manufacturer, in others, it is the most popular.
   1283          1.1     lukem 	w89k)
   1284          1.1     lukem 		basic_machine=hppa1.1-winbond
   1285          1.1     lukem 		;;
   1286          1.1     lukem 	op50n)
   1287          1.1     lukem 		basic_machine=hppa1.1-oki
   1288          1.1     lukem 		;;
   1289          1.1     lukem 	op60c)
   1290          1.1     lukem 		basic_machine=hppa1.1-oki
   1291          1.1     lukem 		;;
   1292          1.1     lukem 	romp)
   1293          1.1     lukem 		basic_machine=romp-ibm
   1294          1.1     lukem 		;;
   1295      1.1.1.4      tron 	mmix)
   1296      1.1.1.4      tron 		basic_machine=mmix-knuth
   1297      1.1.1.4      tron 		;;
   1298          1.1     lukem 	rs6000)
   1299          1.1     lukem 		basic_machine=rs6000-ibm
   1300          1.1     lukem 		;;
   1301          1.1     lukem 	vax)
   1302          1.1     lukem 		basic_machine=vax-dec
   1303          1.1     lukem 		;;
   1304          1.1     lukem 	pdp10)
   1305          1.1     lukem 		# there are many clones, so DEC is not a safe bet
   1306          1.1     lukem 		basic_machine=pdp10-unknown
   1307          1.1     lukem 		;;
   1308          1.1     lukem 	pdp11)
   1309          1.1     lukem 		basic_machine=pdp11-dec
   1310          1.1     lukem 		;;
   1311          1.1     lukem 	we32k)
   1312          1.1     lukem 		basic_machine=we32k-att
   1313          1.1     lukem 		;;
   1314      1.1.1.4      tron 	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
   1315          1.1     lukem 		basic_machine=sh-unknown
   1316          1.1     lukem 		;;
   1317      1.1.1.4      tron 	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
   1318          1.1     lukem 		basic_machine=sparc-sun
   1319          1.1     lukem 		;;
   1320          1.1     lukem 	cydra)
   1321          1.1     lukem 		basic_machine=cydra-cydrome
   1322          1.1     lukem 		;;
   1323          1.1     lukem 	orion)
   1324          1.1     lukem 		basic_machine=orion-highlevel
   1325          1.1     lukem 		;;
   1326          1.1     lukem 	orion105)
   1327          1.1     lukem 		basic_machine=clipper-highlevel
   1328          1.1     lukem 		;;
   1329          1.1     lukem 	mac | mpw | mac-mpw)
   1330          1.1     lukem 		basic_machine=m68k-apple
   1331          1.1     lukem 		;;
   1332          1.1     lukem 	pmac | pmac-mpw)
   1333          1.1     lukem 		basic_machine=powerpc-apple
   1334          1.1     lukem 		;;
   1335          1.1     lukem 	*-unknown)
   1336          1.1     lukem 		# Make sure to match an already-canonicalized machine name.
   1337          1.1     lukem 		;;
   1338          1.1     lukem 	*)
   1339          1.1     lukem 		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   1340          1.1     lukem 		exit 1
   1341          1.1     lukem 		;;
   1342          1.1     lukem esac
   1343          1.1     lukem 
   1344          1.1     lukem # Here we canonicalize certain aliases for manufacturers.
   1345          1.1     lukem case $basic_machine in
   1346          1.1     lukem 	*-digital*)
   1347          1.1     lukem 		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
   1348          1.1     lukem 		;;
   1349          1.1     lukem 	*-commodore*)
   1350          1.1     lukem 		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
   1351          1.1     lukem 		;;
   1352          1.1     lukem 	*)
   1353          1.1     lukem 		;;
   1354          1.1     lukem esac
   1355          1.1     lukem 
   1356          1.1     lukem # Decode manufacturer-specific aliases for certain operating systems.
   1357          1.1     lukem 
   1358          1.1     lukem if [ x"$os" != x"" ]
   1359          1.1     lukem then
   1360          1.1     lukem case $os in
   1361  1.1.1.4.6.1  pgoyette 	# First match some system type aliases
   1362  1.1.1.4.6.1  pgoyette 	# that might get confused with valid system types.
   1363          1.1     lukem 	# -solaris* is a basic system type, with this one exception.
   1364  1.1.1.4.6.1  pgoyette 	-auroraux)
   1365  1.1.1.4.6.1  pgoyette 		os=-auroraux
   1366      1.1.1.4      tron 		;;
   1367          1.1     lukem 	-solaris1 | -solaris1.*)
   1368          1.1     lukem 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
   1369          1.1     lukem 		;;
   1370          1.1     lukem 	-solaris)
   1371          1.1     lukem 		os=-solaris2
   1372          1.1     lukem 		;;
   1373          1.1     lukem 	-svr4*)
   1374          1.1     lukem 		os=-sysv4
   1375          1.1     lukem 		;;
   1376          1.1     lukem 	-unixware*)
   1377          1.1     lukem 		os=-sysv4.2uw
   1378          1.1     lukem 		;;
   1379          1.1     lukem 	-gnu/linux*)
   1380          1.1     lukem 		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
   1381          1.1     lukem 		;;
   1382          1.1     lukem 	# First accept the basic system types.
   1383          1.1     lukem 	# The portable systems comes first.
   1384          1.1     lukem 	# Each alternative MUST END IN A *, to match a version number.
   1385          1.1     lukem 	# -sysv* is not here because it comes later, after sysvr4.
   1386          1.1     lukem 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
   1387      1.1.1.4      tron 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
   1388      1.1.1.4      tron 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
   1389  1.1.1.4.6.1  pgoyette 	      | -sym* | -kopensolaris* | -plan9* \
   1390          1.1     lukem 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   1391  1.1.1.4.6.1  pgoyette 	      | -aos* | -aros* | -cloudabi* | -sortix* \
   1392          1.1     lukem 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   1393          1.1     lukem 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   1394      1.1.1.4      tron 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
   1395  1.1.1.4.6.1  pgoyette 	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
   1396      1.1.1.4      tron 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
   1397      1.1.1.4      tron 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
   1398          1.1     lukem 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   1399          1.1     lukem 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   1400  1.1.1.4.6.1  pgoyette 	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
   1401  1.1.1.4.6.1  pgoyette 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   1402  1.1.1.4.6.1  pgoyette 	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
   1403  1.1.1.4.6.1  pgoyette 	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
   1404  1.1.1.4.6.1  pgoyette 	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
   1405          1.1     lukem 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
   1406          1.1     lukem 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   1407          1.1     lukem 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
   1408          1.1     lukem 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
   1409          1.1     lukem 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
   1410      1.1.1.4      tron 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
   1411  1.1.1.4.6.1  pgoyette 	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
   1412  1.1.1.4.6.1  pgoyette 	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
   1413          1.1     lukem 	# Remember, each alternative MUST END IN *, to match a version number.
   1414          1.1     lukem 		;;
   1415          1.1     lukem 	-qnx*)
   1416          1.1     lukem 		case $basic_machine in
   1417          1.1     lukem 		    x86-* | i*86-*)
   1418          1.1     lukem 			;;
   1419          1.1     lukem 		    *)
   1420          1.1     lukem 			os=-nto$os
   1421          1.1     lukem 			;;
   1422          1.1     lukem 		esac
   1423          1.1     lukem 		;;
   1424          1.1     lukem 	-nto-qnx*)
   1425          1.1     lukem 		;;
   1426          1.1     lukem 	-nto*)
   1427          1.1     lukem 		os=`echo $os | sed -e 's|nto|nto-qnx|'`
   1428          1.1     lukem 		;;
   1429          1.1     lukem 	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
   1430      1.1.1.4      tron 	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
   1431          1.1     lukem 	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
   1432          1.1     lukem 		;;
   1433          1.1     lukem 	-mac*)
   1434          1.1     lukem 		os=`echo $os | sed -e 's|mac|macos|'`
   1435          1.1     lukem 		;;
   1436      1.1.1.4      tron 	-linux-dietlibc)
   1437      1.1.1.4      tron 		os=-linux-dietlibc
   1438      1.1.1.4      tron 		;;
   1439          1.1     lukem 	-linux*)
   1440          1.1     lukem 		os=`echo $os | sed -e 's|linux|linux-gnu|'`
   1441          1.1     lukem 		;;
   1442          1.1     lukem 	-sunos5*)
   1443          1.1     lukem 		os=`echo $os | sed -e 's|sunos5|solaris2|'`
   1444          1.1     lukem 		;;
   1445          1.1     lukem 	-sunos6*)
   1446          1.1     lukem 		os=`echo $os | sed -e 's|sunos6|solaris3|'`
   1447          1.1     lukem 		;;
   1448          1.1     lukem 	-opened*)
   1449          1.1     lukem 		os=-openedition
   1450          1.1     lukem 		;;
   1451  1.1.1.4.6.1  pgoyette 	-os400*)
   1452      1.1.1.4      tron 		os=-os400
   1453      1.1.1.4      tron 		;;
   1454          1.1     lukem 	-wince*)
   1455          1.1     lukem 		os=-wince
   1456          1.1     lukem 		;;
   1457          1.1     lukem 	-osfrose*)
   1458          1.1     lukem 		os=-osfrose
   1459          1.1     lukem 		;;
   1460          1.1     lukem 	-osf*)
   1461          1.1     lukem 		os=-osf
   1462          1.1     lukem 		;;
   1463          1.1     lukem 	-utek*)
   1464          1.1     lukem 		os=-bsd
   1465          1.1     lukem 		;;
   1466          1.1     lukem 	-dynix*)
   1467          1.1     lukem 		os=-bsd
   1468          1.1     lukem 		;;
   1469          1.1     lukem 	-acis*)
   1470          1.1     lukem 		os=-aos
   1471          1.1     lukem 		;;
   1472          1.1     lukem 	-atheos*)
   1473          1.1     lukem 		os=-atheos
   1474          1.1     lukem 		;;
   1475      1.1.1.4      tron 	-syllable*)
   1476      1.1.1.4      tron 		os=-syllable
   1477      1.1.1.4      tron 		;;
   1478          1.1     lukem 	-386bsd)
   1479          1.1     lukem 		os=-bsd
   1480          1.1     lukem 		;;
   1481          1.1     lukem 	-ctix* | -uts*)
   1482          1.1     lukem 		os=-sysv
   1483          1.1     lukem 		;;
   1484          1.1     lukem 	-nova*)
   1485          1.1     lukem 		os=-rtmk-nova
   1486          1.1     lukem 		;;
   1487          1.1     lukem 	-ns2 )
   1488          1.1     lukem 		os=-nextstep2
   1489          1.1     lukem 		;;
   1490          1.1     lukem 	-nsk*)
   1491          1.1     lukem 		os=-nsk
   1492          1.1     lukem 		;;
   1493          1.1     lukem 	# Preserve the version number of sinix5.
   1494          1.1     lukem 	-sinix5.*)
   1495          1.1     lukem 		os=`echo $os | sed -e 's|sinix|sysv|'`
   1496          1.1     lukem 		;;
   1497          1.1     lukem 	-sinix*)
   1498          1.1     lukem 		os=-sysv4
   1499          1.1     lukem 		;;
   1500  1.1.1.4.6.1  pgoyette 	-tpf*)
   1501      1.1.1.4      tron 		os=-tpf
   1502      1.1.1.4      tron 		;;
   1503          1.1     lukem 	-triton*)
   1504          1.1     lukem 		os=-sysv3
   1505          1.1     lukem 		;;
   1506          1.1     lukem 	-oss*)
   1507          1.1     lukem 		os=-sysv3
   1508          1.1     lukem 		;;
   1509          1.1     lukem 	-svr4)
   1510          1.1     lukem 		os=-sysv4
   1511          1.1     lukem 		;;
   1512          1.1     lukem 	-svr3)
   1513          1.1     lukem 		os=-sysv3
   1514          1.1     lukem 		;;
   1515          1.1     lukem 	-sysvr4)
   1516          1.1     lukem 		os=-sysv4
   1517          1.1     lukem 		;;
   1518          1.1     lukem 	# This must come after -sysvr4.
   1519          1.1     lukem 	-sysv*)
   1520          1.1     lukem 		;;
   1521          1.1     lukem 	-ose*)
   1522          1.1     lukem 		os=-ose
   1523          1.1     lukem 		;;
   1524          1.1     lukem 	-es1800*)
   1525          1.1     lukem 		os=-ose
   1526          1.1     lukem 		;;
   1527          1.1     lukem 	-xenix)
   1528          1.1     lukem 		os=-xenix
   1529          1.1     lukem 		;;
   1530          1.1     lukem 	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   1531          1.1     lukem 		os=-mint
   1532          1.1     lukem 		;;
   1533          1.1     lukem 	-aros*)
   1534          1.1     lukem 		os=-aros
   1535          1.1     lukem 		;;
   1536      1.1.1.4      tron 	-zvmoe)
   1537      1.1.1.4      tron 		os=-zvmoe
   1538      1.1.1.4      tron 		;;
   1539      1.1.1.4      tron 	-dicos*)
   1540      1.1.1.4      tron 		os=-dicos
   1541      1.1.1.4      tron 		;;
   1542  1.1.1.4.6.1  pgoyette 	-nacl*)
   1543  1.1.1.4.6.1  pgoyette 		;;
   1544  1.1.1.4.6.1  pgoyette 	-ios)
   1545  1.1.1.4.6.1  pgoyette 		;;
   1546          1.1     lukem 	-none)
   1547          1.1     lukem 		;;
   1548          1.1     lukem 	*)
   1549          1.1     lukem 		# Get rid of the `-' at the beginning of $os.
   1550          1.1     lukem 		os=`echo $os | sed 's/[^-]*-//'`
   1551          1.1     lukem 		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
   1552          1.1     lukem 		exit 1
   1553          1.1     lukem 		;;
   1554          1.1     lukem esac
   1555          1.1     lukem else
   1556          1.1     lukem 
   1557          1.1     lukem # Here we handle the default operating systems that come with various machines.
   1558          1.1     lukem # The value should be what the vendor currently ships out the door with their
   1559          1.1     lukem # machine or put another way, the most popular os provided with the machine.
   1560          1.1     lukem 
   1561          1.1     lukem # Note that if you're going to try to match "-MANUFACTURER" here (say,
   1562          1.1     lukem # "-sun"), then you have to tell the case statement up towards the top
   1563          1.1     lukem # that MANUFACTURER isn't an operating system.  Otherwise, code above
   1564          1.1     lukem # will signal an error saying that MANUFACTURER isn't an operating
   1565          1.1     lukem # system, and we'll never get to this point.
   1566          1.1     lukem 
   1567          1.1     lukem case $basic_machine in
   1568  1.1.1.4.6.1  pgoyette 	score-*)
   1569      1.1.1.4      tron 		os=-elf
   1570      1.1.1.4      tron 		;;
   1571  1.1.1.4.6.1  pgoyette 	spu-*)
   1572      1.1.1.4      tron 		os=-elf
   1573      1.1.1.4      tron 		;;
   1574          1.1     lukem 	*-acorn)
   1575          1.1     lukem 		os=-riscix1.2
   1576          1.1     lukem 		;;
   1577          1.1     lukem 	arm*-rebel)
   1578          1.1     lukem 		os=-linux
   1579          1.1     lukem 		;;
   1580          1.1     lukem 	arm*-semi)
   1581          1.1     lukem 		os=-aout
   1582          1.1     lukem 		;;
   1583  1.1.1.4.6.1  pgoyette 	c4x-* | tic4x-*)
   1584  1.1.1.4.6.1  pgoyette 		os=-coff
   1585  1.1.1.4.6.1  pgoyette 		;;
   1586  1.1.1.4.6.1  pgoyette 	c8051-*)
   1587  1.1.1.4.6.1  pgoyette 		os=-elf
   1588  1.1.1.4.6.1  pgoyette 		;;
   1589  1.1.1.4.6.1  pgoyette 	hexagon-*)
   1590  1.1.1.4.6.1  pgoyette 		os=-elf
   1591      1.1.1.4      tron 		;;
   1592      1.1.1.4      tron 	tic54x-*)
   1593      1.1.1.4      tron 		os=-coff
   1594      1.1.1.4      tron 		;;
   1595      1.1.1.4      tron 	tic55x-*)
   1596      1.1.1.4      tron 		os=-coff
   1597      1.1.1.4      tron 		;;
   1598      1.1.1.4      tron 	tic6x-*)
   1599      1.1.1.4      tron 		os=-coff
   1600      1.1.1.4      tron 		;;
   1601          1.1     lukem 	# This must come before the *-dec entry.
   1602          1.1     lukem 	pdp10-*)
   1603          1.1     lukem 		os=-tops20
   1604          1.1     lukem 		;;
   1605          1.1     lukem 	pdp11-*)
   1606          1.1     lukem 		os=-none
   1607          1.1     lukem 		;;
   1608          1.1     lukem 	*-dec | vax-*)
   1609          1.1     lukem 		os=-ultrix4.2
   1610          1.1     lukem 		;;
   1611          1.1     lukem 	m68*-apollo)
   1612          1.1     lukem 		os=-domain
   1613          1.1     lukem 		;;
   1614          1.1     lukem 	i386-sun)
   1615          1.1     lukem 		os=-sunos4.0.2
   1616          1.1     lukem 		;;
   1617          1.1     lukem 	m68000-sun)
   1618          1.1     lukem 		os=-sunos3
   1619          1.1     lukem 		;;
   1620          1.1     lukem 	m68*-cisco)
   1621          1.1     lukem 		os=-aout
   1622          1.1     lukem 		;;
   1623  1.1.1.4.6.1  pgoyette 	mep-*)
   1624      1.1.1.4      tron 		os=-elf
   1625      1.1.1.4      tron 		;;
   1626          1.1     lukem 	mips*-cisco)
   1627          1.1     lukem 		os=-elf
   1628          1.1     lukem 		;;
   1629          1.1     lukem 	mips*-*)
   1630          1.1     lukem 		os=-elf
   1631          1.1     lukem 		;;
   1632          1.1     lukem 	or32-*)
   1633          1.1     lukem 		os=-coff
   1634          1.1     lukem 		;;
   1635          1.1     lukem 	*-tti)	# must be before sparc entry or we get the wrong os.
   1636          1.1     lukem 		os=-sysv3
   1637          1.1     lukem 		;;
   1638          1.1     lukem 	sparc-* | *-sun)
   1639          1.1     lukem 		os=-sunos4.1.1
   1640          1.1     lukem 		;;
   1641  1.1.1.4.6.1  pgoyette 	pru-*)
   1642  1.1.1.4.6.1  pgoyette 		os=-elf
   1643  1.1.1.4.6.1  pgoyette 		;;
   1644          1.1     lukem 	*-be)
   1645          1.1     lukem 		os=-beos
   1646          1.1     lukem 		;;
   1647      1.1.1.4      tron 	*-haiku)
   1648      1.1.1.4      tron 		os=-haiku
   1649      1.1.1.4      tron 		;;
   1650          1.1     lukem 	*-ibm)
   1651          1.1     lukem 		os=-aix
   1652          1.1     lukem 		;;
   1653  1.1.1.4.6.1  pgoyette 	*-knuth)
   1654      1.1.1.4      tron 		os=-mmixware
   1655      1.1.1.4      tron 		;;
   1656          1.1     lukem 	*-wec)
   1657          1.1     lukem 		os=-proelf
   1658          1.1     lukem 		;;
   1659          1.1     lukem 	*-winbond)
   1660          1.1     lukem 		os=-proelf
   1661          1.1     lukem 		;;
   1662          1.1     lukem 	*-oki)
   1663          1.1     lukem 		os=-proelf
   1664          1.1     lukem 		;;
   1665          1.1     lukem 	*-hp)
   1666          1.1     lukem 		os=-hpux
   1667          1.1     lukem 		;;
   1668          1.1     lukem 	*-hitachi)
   1669          1.1     lukem 		os=-hiux
   1670          1.1     lukem 		;;
   1671          1.1     lukem 	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
   1672          1.1     lukem 		os=-sysv
   1673          1.1     lukem 		;;
   1674          1.1     lukem 	*-cbm)
   1675          1.1     lukem 		os=-amigaos
   1676          1.1     lukem 		;;
   1677          1.1     lukem 	*-dg)
   1678          1.1     lukem 		os=-dgux
   1679          1.1     lukem 		;;
   1680          1.1     lukem 	*-dolphin)
   1681          1.1     lukem 		os=-sysv3
   1682          1.1     lukem 		;;
   1683          1.1     lukem 	m68k-ccur)
   1684          1.1     lukem 		os=-rtu
   1685          1.1     lukem 		;;
   1686          1.1     lukem 	m88k-omron*)
   1687          1.1     lukem 		os=-luna
   1688          1.1     lukem 		;;
   1689          1.1     lukem 	*-next )
   1690          1.1     lukem 		os=-nextstep
   1691          1.1     lukem 		;;
   1692          1.1     lukem 	*-sequent)
   1693          1.1     lukem 		os=-ptx
   1694          1.1     lukem 		;;
   1695          1.1     lukem 	*-crds)
   1696          1.1     lukem 		os=-unos
   1697          1.1     lukem 		;;
   1698          1.1     lukem 	*-ns)
   1699          1.1     lukem 		os=-genix
   1700          1.1     lukem 		;;
   1701          1.1     lukem 	i370-*)
   1702          1.1     lukem 		os=-mvs
   1703          1.1     lukem 		;;
   1704          1.1     lukem 	*-next)
   1705          1.1     lukem 		os=-nextstep3
   1706          1.1     lukem 		;;
   1707          1.1     lukem 	*-gould)
   1708          1.1     lukem 		os=-sysv
   1709          1.1     lukem 		;;
   1710          1.1     lukem 	*-highlevel)
   1711          1.1     lukem 		os=-bsd
   1712          1.1     lukem 		;;
   1713          1.1     lukem 	*-encore)
   1714          1.1     lukem 		os=-bsd
   1715          1.1     lukem 		;;
   1716          1.1     lukem 	*-sgi)
   1717          1.1     lukem 		os=-irix
   1718          1.1     lukem 		;;
   1719          1.1     lukem 	*-siemens)
   1720          1.1     lukem 		os=-sysv4
   1721          1.1     lukem 		;;
   1722          1.1     lukem 	*-masscomp)
   1723          1.1     lukem 		os=-rtu
   1724          1.1     lukem 		;;
   1725          1.1     lukem 	f30[01]-fujitsu | f700-fujitsu)
   1726          1.1     lukem 		os=-uxpv
   1727          1.1     lukem 		;;
   1728          1.1     lukem 	*-rom68k)
   1729          1.1     lukem 		os=-coff
   1730          1.1     lukem 		;;
   1731          1.1     lukem 	*-*bug)
   1732          1.1     lukem 		os=-coff
   1733          1.1     lukem 		;;
   1734          1.1     lukem 	*-apple)
   1735          1.1     lukem 		os=-macos
   1736          1.1     lukem 		;;
   1737          1.1     lukem 	*-atari*)
   1738          1.1     lukem 		os=-mint
   1739          1.1     lukem 		;;
   1740          1.1     lukem 	*)
   1741          1.1     lukem 		os=-none
   1742          1.1     lukem 		;;
   1743          1.1     lukem esac
   1744          1.1     lukem fi
   1745          1.1     lukem 
   1746          1.1     lukem # Here we handle the case where we know the os, and the CPU type, but not the
   1747          1.1     lukem # manufacturer.  We pick the logical manufacturer.
   1748          1.1     lukem vendor=unknown
   1749          1.1     lukem case $basic_machine in
   1750          1.1     lukem 	*-unknown)
   1751          1.1     lukem 		case $os in
   1752          1.1     lukem 			-riscix*)
   1753          1.1     lukem 				vendor=acorn
   1754          1.1     lukem 				;;
   1755          1.1     lukem 			-sunos*)
   1756          1.1     lukem 				vendor=sun
   1757          1.1     lukem 				;;
   1758      1.1.1.4      tron 			-cnk*|-aix*)
   1759          1.1     lukem 				vendor=ibm
   1760          1.1     lukem 				;;
   1761          1.1     lukem 			-beos*)
   1762          1.1     lukem 				vendor=be
   1763          1.1     lukem 				;;
   1764          1.1     lukem 			-hpux*)
   1765          1.1     lukem 				vendor=hp
   1766          1.1     lukem 				;;
   1767          1.1     lukem 			-mpeix*)
   1768          1.1     lukem 				vendor=hp
   1769          1.1     lukem 				;;
   1770          1.1     lukem 			-hiux*)
   1771          1.1     lukem 				vendor=hitachi
   1772          1.1     lukem 				;;
   1773          1.1     lukem 			-unos*)
   1774          1.1     lukem 				vendor=crds
   1775          1.1     lukem 				;;
   1776          1.1     lukem 			-dgux*)
   1777          1.1     lukem 				vendor=dg
   1778          1.1     lukem 				;;
   1779          1.1     lukem 			-luna*)
   1780          1.1     lukem 				vendor=omron
   1781          1.1     lukem 				;;
   1782          1.1     lukem 			-genix*)
   1783          1.1     lukem 				vendor=ns
   1784          1.1     lukem 				;;
   1785          1.1     lukem 			-mvs* | -opened*)
   1786          1.1     lukem 				vendor=ibm
   1787          1.1     lukem 				;;
   1788      1.1.1.4      tron 			-os400*)
   1789      1.1.1.4      tron 				vendor=ibm
   1790      1.1.1.4      tron 				;;
   1791          1.1     lukem 			-ptx*)
   1792          1.1     lukem 				vendor=sequent
   1793          1.1     lukem 				;;
   1794      1.1.1.4      tron 			-tpf*)
   1795      1.1.1.4      tron 				vendor=ibm
   1796      1.1.1.4      tron 				;;
   1797          1.1     lukem 			-vxsim* | -vxworks* | -windiss*)
   1798          1.1     lukem 				vendor=wrs
   1799          1.1     lukem 				;;
   1800          1.1     lukem 			-aux*)
   1801          1.1     lukem 				vendor=apple
   1802          1.1     lukem 				;;
   1803          1.1     lukem 			-hms*)
   1804          1.1     lukem 				vendor=hitachi
   1805          1.1     lukem 				;;
   1806          1.1     lukem 			-mpw* | -macos*)
   1807          1.1     lukem 				vendor=apple
   1808          1.1     lukem 				;;
   1809          1.1     lukem 			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   1810          1.1     lukem 				vendor=atari
   1811          1.1     lukem 				;;
   1812          1.1     lukem 			-vos*)
   1813          1.1     lukem 				vendor=stratus
   1814          1.1     lukem 				;;
   1815          1.1     lukem 		esac
   1816          1.1     lukem 		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
   1817          1.1     lukem 		;;
   1818          1.1     lukem esac
   1819          1.1     lukem 
   1820          1.1     lukem echo $basic_machine$os
   1821      1.1.1.4      tron exit
   1822          1.1     lukem 
   1823          1.1     lukem # Local variables:
   1824          1.1     lukem # eval: (add-hook 'write-file-hooks 'time-stamp)
   1825          1.1     lukem # time-stamp-start: "timestamp='"
   1826          1.1     lukem # time-stamp-format: "%:y-%02m-%02d"
   1827          1.1     lukem # time-stamp-end: "'"
   1828          1.1     lukem # End:
   1829