config.sub revision 29459361
129459361Smrg#! /bin/sh 229459361Smrg# Configuration validation subroutine script. 329459361Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 429459361Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 529459361Smrg# Inc. 629459361Smrg 729459361Smrgtimestamp='2006-12-08' 829459361Smrg 929459361Smrg# This file is (in principle) common to ALL GNU software. 1029459361Smrg# The presence of a machine in this file suggests that SOME GNU software 1129459361Smrg# can handle that machine. It does not imply ALL GNU software can. 1229459361Smrg# 1329459361Smrg# This file is free software; you can redistribute it and/or modify 1429459361Smrg# it under the terms of the GNU General Public License as published by 1529459361Smrg# the Free Software Foundation; either version 2 of the License, or 1629459361Smrg# (at your option) any later version. 1729459361Smrg# 1829459361Smrg# This program is distributed in the hope that it will be useful, 1929459361Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 2029459361Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2129459361Smrg# GNU General Public License for more details. 2229459361Smrg# 2329459361Smrg# You should have received a copy of the GNU General Public License 2429459361Smrg# along with this program; if not, write to the Free Software 2529459361Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2629459361Smrg# 02110-1301, USA. 2729459361Smrg# 2829459361Smrg# As a special exception to the GNU General Public License, if you 2929459361Smrg# distribute this file as part of a program that contains a 3029459361Smrg# configuration script generated by Autoconf, you may include it under 3129459361Smrg# the same distribution terms that you use for the rest of that program. 3229459361Smrg 3329459361Smrg 3429459361Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3529459361Smrg# diff and a properly formatted ChangeLog entry. 3629459361Smrg# 3729459361Smrg# Configuration subroutine to validate and canonicalize a configuration type. 3829459361Smrg# Supply the specified configuration type as an argument. 3929459361Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 4029459361Smrg# Otherwise, we print the canonical config type on stdout and succeed. 4129459361Smrg 4229459361Smrg# This file is supposed to be the same for all GNU packages 4329459361Smrg# and recognize all the CPU types, system types and aliases 4429459361Smrg# that are meaningful with *any* GNU software. 4529459361Smrg# Each package is responsible for reporting which valid configurations 4629459361Smrg# it does not support. The user should be able to distinguish 4729459361Smrg# a failure to support a valid configuration from a meaningless 4829459361Smrg# configuration. 4929459361Smrg 5029459361Smrg# The goal of this file is to map all the various variations of a given 5129459361Smrg# machine specification into a single specification in the form: 5229459361Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5329459361Smrg# or in some cases, the newer four-part form: 5429459361Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5529459361Smrg# It is wrong to echo any other type of specification. 5629459361Smrg 5729459361Smrgme=`echo "$0" | sed -e 's,.*/,,'` 5829459361Smrg 5929459361Smrgusage="\ 6029459361SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 6129459361Smrg $0 [OPTION] ALIAS 6229459361Smrg 6329459361SmrgCanonicalize a configuration name. 6429459361Smrg 6529459361SmrgOperation modes: 6629459361Smrg -h, --help print this help, then exit 6729459361Smrg -t, --time-stamp print date of last modification, then exit 6829459361Smrg -v, --version print version number, then exit 6929459361Smrg 7029459361SmrgReport bugs and patches to <config-patches@gnu.org>." 7129459361Smrg 7229459361Smrgversion="\ 7329459361SmrgGNU config.sub ($timestamp) 7429459361Smrg 7529459361SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7629459361SmrgFree Software Foundation, Inc. 7729459361Smrg 7829459361SmrgThis is free software; see the source for copying conditions. There is NO 7929459361Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 8029459361Smrg 8129459361Smrghelp=" 8229459361SmrgTry \`$me --help' for more information." 8329459361Smrg 8429459361Smrg# Parse command line 8529459361Smrgwhile test $# -gt 0 ; do 8629459361Smrg case $1 in 8729459361Smrg --time-stamp | --time* | -t ) 8829459361Smrg echo "$timestamp" ; exit ;; 8929459361Smrg --version | -v ) 9029459361Smrg echo "$version" ; exit ;; 9129459361Smrg --help | --h* | -h ) 9229459361Smrg echo "$usage"; exit ;; 9329459361Smrg -- ) # Stop option processing 9429459361Smrg shift; break ;; 9529459361Smrg - ) # Use stdin as input. 9629459361Smrg break ;; 9729459361Smrg -* ) 9829459361Smrg echo "$me: invalid option $1$help" 9929459361Smrg exit 1 ;; 10029459361Smrg 10129459361Smrg *local*) 10229459361Smrg # First pass through any local machine types. 10329459361Smrg echo $1 10429459361Smrg exit ;; 10529459361Smrg 10629459361Smrg * ) 10729459361Smrg break ;; 10829459361Smrg esac 10929459361Smrgdone 11029459361Smrg 11129459361Smrgcase $# in 11229459361Smrg 0) echo "$me: missing argument$help" >&2 11329459361Smrg exit 1;; 11429459361Smrg 1) ;; 11529459361Smrg *) echo "$me: too many arguments$help" >&2 11629459361Smrg exit 1;; 11729459361Smrgesac 11829459361Smrg 11929459361Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 12029459361Smrg# Here we must recognize all the valid KERNEL-OS combinations. 12129459361Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12229459361Smrgcase $maybe_os in 12329459361Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 12429459361Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 12529459361Smrg storm-chaos* | os2-emx* | rtmk-nova*) 12629459361Smrg os=-$maybe_os 12729459361Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 12829459361Smrg ;; 12929459361Smrg *) 13029459361Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13129459361Smrg if [ $basic_machine != $1 ] 13229459361Smrg then os=`echo $1 | sed 's/.*-/-/'` 13329459361Smrg else os=; fi 13429459361Smrg ;; 13529459361Smrgesac 13629459361Smrg 13729459361Smrg### Let's recognize common machines as not being operating systems so 13829459361Smrg### that things like config.sub decstation-3100 work. We also 13929459361Smrg### recognize some manufacturers as not being operating systems, so we 14029459361Smrg### can provide default operating systems below. 14129459361Smrgcase $os in 14229459361Smrg -sun*os*) 14329459361Smrg # Prevent following clause from handling this invalid input. 14429459361Smrg ;; 14529459361Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 14629459361Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 14729459361Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 14829459361Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 14929459361Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 15029459361Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 15129459361Smrg -apple | -axis | -knuth | -cray) 15229459361Smrg os= 15329459361Smrg basic_machine=$1 15429459361Smrg ;; 15529459361Smrg -sim | -cisco | -oki | -wec | -winbond) 15629459361Smrg os= 15729459361Smrg basic_machine=$1 15829459361Smrg ;; 15929459361Smrg -scout) 16029459361Smrg ;; 16129459361Smrg -wrs) 16229459361Smrg os=-vxworks 16329459361Smrg basic_machine=$1 16429459361Smrg ;; 16529459361Smrg -chorusos*) 16629459361Smrg os=-chorusos 16729459361Smrg basic_machine=$1 16829459361Smrg ;; 16929459361Smrg -chorusrdb) 17029459361Smrg os=-chorusrdb 17129459361Smrg basic_machine=$1 17229459361Smrg ;; 17329459361Smrg -hiux*) 17429459361Smrg os=-hiuxwe2 17529459361Smrg ;; 17629459361Smrg -sco6) 17729459361Smrg os=-sco5v6 17829459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 17929459361Smrg ;; 18029459361Smrg -sco5) 18129459361Smrg os=-sco3.2v5 18229459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18329459361Smrg ;; 18429459361Smrg -sco4) 18529459361Smrg os=-sco3.2v4 18629459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18729459361Smrg ;; 18829459361Smrg -sco3.2.[4-9]*) 18929459361Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 19029459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19129459361Smrg ;; 19229459361Smrg -sco3.2v[4-9]*) 19329459361Smrg # Don't forget version if it is 3.2v4 or newer. 19429459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19529459361Smrg ;; 19629459361Smrg -sco5v6*) 19729459361Smrg # Don't forget version if it is 3.2v4 or newer. 19829459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19929459361Smrg ;; 20029459361Smrg -sco*) 20129459361Smrg os=-sco3.2v2 20229459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20329459361Smrg ;; 20429459361Smrg -udk*) 20529459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20629459361Smrg ;; 20729459361Smrg -isc) 20829459361Smrg os=-isc2.2 20929459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21029459361Smrg ;; 21129459361Smrg -clix*) 21229459361Smrg basic_machine=clipper-intergraph 21329459361Smrg ;; 21429459361Smrg -isc*) 21529459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21629459361Smrg ;; 21729459361Smrg -lynx*) 21829459361Smrg os=-lynxos 21929459361Smrg ;; 22029459361Smrg -ptx*) 22129459361Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 22229459361Smrg ;; 22329459361Smrg -windowsnt*) 22429459361Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 22529459361Smrg ;; 22629459361Smrg -psos*) 22729459361Smrg os=-psos 22829459361Smrg ;; 22929459361Smrg -mint | -mint[0-9]*) 23029459361Smrg basic_machine=m68k-atari 23129459361Smrg os=-mint 23229459361Smrg ;; 23329459361Smrgesac 23429459361Smrg 23529459361Smrg# Decode aliases for certain CPU-COMPANY combinations. 23629459361Smrgcase $basic_machine in 23729459361Smrg # Recognize the basic CPU types without company name. 23829459361Smrg # Some are omitted here because they have special meanings below. 23929459361Smrg 1750a | 580 \ 24029459361Smrg | a29k \ 24129459361Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 24229459361Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 24329459361Smrg | am33_2.0 \ 24429459361Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 24529459361Smrg | bfin \ 24629459361Smrg | c4x | clipper \ 24729459361Smrg | d10v | d30v | dlx | dsp16xx \ 24829459361Smrg | fido | fr30 | frv \ 24929459361Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 25029459361Smrg | i370 | i860 | i960 | ia64 \ 25129459361Smrg | ip2k | iq2000 \ 25229459361Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 25329459361Smrg | maxq | mb | microblaze | mcore \ 25429459361Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 25529459361Smrg | mips16 \ 25629459361Smrg | mips64 | mips64el \ 25729459361Smrg | mips64vr | mips64vrel \ 25829459361Smrg | mips64orion | mips64orionel \ 25929459361Smrg | mips64vr4100 | mips64vr4100el \ 26029459361Smrg | mips64vr4300 | mips64vr4300el \ 26129459361Smrg | mips64vr5000 | mips64vr5000el \ 26229459361Smrg | mips64vr5900 | mips64vr5900el \ 26329459361Smrg | mipsisa32 | mipsisa32el \ 26429459361Smrg | mipsisa32r2 | mipsisa32r2el \ 26529459361Smrg | mipsisa64 | mipsisa64el \ 26629459361Smrg | mipsisa64r2 | mipsisa64r2el \ 26729459361Smrg | mipsisa64sb1 | mipsisa64sb1el \ 26829459361Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 26929459361Smrg | mipstx39 | mipstx39el \ 27029459361Smrg | mn10200 | mn10300 \ 27129459361Smrg | mt \ 27229459361Smrg | msp430 \ 27329459361Smrg | nios | nios2 \ 27429459361Smrg | ns16k | ns32k \ 27529459361Smrg | or32 \ 27629459361Smrg | pdp10 | pdp11 | pj | pjl \ 27729459361Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 27829459361Smrg | pyramid \ 27929459361Smrg | score \ 28029459361Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 28129459361Smrg | sh64 | sh64le \ 28229459361Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 28329459361Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 28429459361Smrg | spu | strongarm \ 28529459361Smrg | tahoe | thumb | tic4x | tic80 | tron \ 28629459361Smrg | v850 | v850e \ 28729459361Smrg | we32k \ 28829459361Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 28929459361Smrg | z8k) 29029459361Smrg basic_machine=$basic_machine-unknown 29129459361Smrg ;; 29229459361Smrg m6811 | m68hc11 | m6812 | m68hc12) 29329459361Smrg # Motorola 68HC11/12. 29429459361Smrg basic_machine=$basic_machine-unknown 29529459361Smrg os=-none 29629459361Smrg ;; 29729459361Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 29829459361Smrg ;; 29929459361Smrg ms1) 30029459361Smrg basic_machine=mt-unknown 30129459361Smrg ;; 30229459361Smrg 30329459361Smrg # We use `pc' rather than `unknown' 30429459361Smrg # because (1) that's what they normally are, and 30529459361Smrg # (2) the word "unknown" tends to confuse beginning users. 30629459361Smrg i*86 | x86_64) 30729459361Smrg basic_machine=$basic_machine-pc 30829459361Smrg ;; 30929459361Smrg # Object if more than one company name word. 31029459361Smrg *-*-*) 31129459361Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 31229459361Smrg exit 1 31329459361Smrg ;; 31429459361Smrg # Recognize the basic CPU types with company name. 31529459361Smrg 580-* \ 31629459361Smrg | a29k-* \ 31729459361Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 31829459361Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 31929459361Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 32029459361Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32129459361Smrg | avr-* | avr32-* \ 32229459361Smrg | bfin-* | bs2000-* \ 32329459361Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 32429459361Smrg | clipper-* | craynv-* | cydra-* \ 32529459361Smrg | d10v-* | d30v-* | dlx-* \ 32629459361Smrg | elxsi-* \ 32729459361Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 32829459361Smrg | h8300-* | h8500-* \ 32929459361Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 33029459361Smrg | i*86-* | i860-* | i960-* | ia64-* \ 33129459361Smrg | ip2k-* | iq2000-* \ 33229459361Smrg | m32c-* | m32r-* | m32rle-* \ 33329459361Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 33429459361Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 33529459361Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 33629459361Smrg | mips16-* \ 33729459361Smrg | mips64-* | mips64el-* \ 33829459361Smrg | mips64vr-* | mips64vrel-* \ 33929459361Smrg | mips64orion-* | mips64orionel-* \ 34029459361Smrg | mips64vr4100-* | mips64vr4100el-* \ 34129459361Smrg | mips64vr4300-* | mips64vr4300el-* \ 34229459361Smrg | mips64vr5000-* | mips64vr5000el-* \ 34329459361Smrg | mips64vr5900-* | mips64vr5900el-* \ 34429459361Smrg | mipsisa32-* | mipsisa32el-* \ 34529459361Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 34629459361Smrg | mipsisa64-* | mipsisa64el-* \ 34729459361Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 34829459361Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 34929459361Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 35029459361Smrg | mipstx39-* | mipstx39el-* \ 35129459361Smrg | mmix-* \ 35229459361Smrg | mt-* \ 35329459361Smrg | msp430-* \ 35429459361Smrg | nios-* | nios2-* \ 35529459361Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 35629459361Smrg | orion-* \ 35729459361Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 35829459361Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 35929459361Smrg | pyramid-* \ 36029459361Smrg | romp-* | rs6000-* \ 36129459361Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 36229459361Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 36329459361Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 36429459361Smrg | sparclite-* \ 36529459361Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 36629459361Smrg | tahoe-* | thumb-* \ 36729459361Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 36829459361Smrg | tron-* \ 36929459361Smrg | v850-* | v850e-* | vax-* \ 37029459361Smrg | we32k-* \ 37129459361Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 37229459361Smrg | xstormy16-* | xtensa-* \ 37329459361Smrg | ymp-* \ 37429459361Smrg | z8k-*) 37529459361Smrg ;; 37629459361Smrg # Recognize the various machine names and aliases which stand 37729459361Smrg # for a CPU type and a company and sometimes even an OS. 37829459361Smrg 386bsd) 37929459361Smrg basic_machine=i386-unknown 38029459361Smrg os=-bsd 38129459361Smrg ;; 38229459361Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 38329459361Smrg basic_machine=m68000-att 38429459361Smrg ;; 38529459361Smrg 3b*) 38629459361Smrg basic_machine=we32k-att 38729459361Smrg ;; 38829459361Smrg a29khif) 38929459361Smrg basic_machine=a29k-amd 39029459361Smrg os=-udi 39129459361Smrg ;; 39229459361Smrg abacus) 39329459361Smrg basic_machine=abacus-unknown 39429459361Smrg ;; 39529459361Smrg adobe68k) 39629459361Smrg basic_machine=m68010-adobe 39729459361Smrg os=-scout 39829459361Smrg ;; 39929459361Smrg alliant | fx80) 40029459361Smrg basic_machine=fx80-alliant 40129459361Smrg ;; 40229459361Smrg altos | altos3068) 40329459361Smrg basic_machine=m68k-altos 40429459361Smrg ;; 40529459361Smrg am29k) 40629459361Smrg basic_machine=a29k-none 40729459361Smrg os=-bsd 40829459361Smrg ;; 40929459361Smrg amd64) 41029459361Smrg basic_machine=x86_64-pc 41129459361Smrg ;; 41229459361Smrg amd64-*) 41329459361Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 41429459361Smrg ;; 41529459361Smrg amdahl) 41629459361Smrg basic_machine=580-amdahl 41729459361Smrg os=-sysv 41829459361Smrg ;; 41929459361Smrg amiga | amiga-*) 42029459361Smrg basic_machine=m68k-unknown 42129459361Smrg ;; 42229459361Smrg amigaos | amigados) 42329459361Smrg basic_machine=m68k-unknown 42429459361Smrg os=-amigaos 42529459361Smrg ;; 42629459361Smrg amigaunix | amix) 42729459361Smrg basic_machine=m68k-unknown 42829459361Smrg os=-sysv4 42929459361Smrg ;; 43029459361Smrg apollo68) 43129459361Smrg basic_machine=m68k-apollo 43229459361Smrg os=-sysv 43329459361Smrg ;; 43429459361Smrg apollo68bsd) 43529459361Smrg basic_machine=m68k-apollo 43629459361Smrg os=-bsd 43729459361Smrg ;; 43829459361Smrg aux) 43929459361Smrg basic_machine=m68k-apple 44029459361Smrg os=-aux 44129459361Smrg ;; 44229459361Smrg balance) 44329459361Smrg basic_machine=ns32k-sequent 44429459361Smrg os=-dynix 44529459361Smrg ;; 44629459361Smrg c90) 44729459361Smrg basic_machine=c90-cray 44829459361Smrg os=-unicos 44929459361Smrg ;; 45029459361Smrg convex-c1) 45129459361Smrg basic_machine=c1-convex 45229459361Smrg os=-bsd 45329459361Smrg ;; 45429459361Smrg convex-c2) 45529459361Smrg basic_machine=c2-convex 45629459361Smrg os=-bsd 45729459361Smrg ;; 45829459361Smrg convex-c32) 45929459361Smrg basic_machine=c32-convex 46029459361Smrg os=-bsd 46129459361Smrg ;; 46229459361Smrg convex-c34) 46329459361Smrg basic_machine=c34-convex 46429459361Smrg os=-bsd 46529459361Smrg ;; 46629459361Smrg convex-c38) 46729459361Smrg basic_machine=c38-convex 46829459361Smrg os=-bsd 46929459361Smrg ;; 47029459361Smrg cray | j90) 47129459361Smrg basic_machine=j90-cray 47229459361Smrg os=-unicos 47329459361Smrg ;; 47429459361Smrg craynv) 47529459361Smrg basic_machine=craynv-cray 47629459361Smrg os=-unicosmp 47729459361Smrg ;; 47829459361Smrg cr16c) 47929459361Smrg basic_machine=cr16c-unknown 48029459361Smrg os=-elf 48129459361Smrg ;; 48229459361Smrg crds | unos) 48329459361Smrg basic_machine=m68k-crds 48429459361Smrg ;; 48529459361Smrg crisv32 | crisv32-* | etraxfs*) 48629459361Smrg basic_machine=crisv32-axis 48729459361Smrg ;; 48829459361Smrg cris | cris-* | etrax*) 48929459361Smrg basic_machine=cris-axis 49029459361Smrg ;; 49129459361Smrg crx) 49229459361Smrg basic_machine=crx-unknown 49329459361Smrg os=-elf 49429459361Smrg ;; 49529459361Smrg da30 | da30-*) 49629459361Smrg basic_machine=m68k-da30 49729459361Smrg ;; 49829459361Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 49929459361Smrg basic_machine=mips-dec 50029459361Smrg ;; 50129459361Smrg decsystem10* | dec10*) 50229459361Smrg basic_machine=pdp10-dec 50329459361Smrg os=-tops10 50429459361Smrg ;; 50529459361Smrg decsystem20* | dec20*) 50629459361Smrg basic_machine=pdp10-dec 50729459361Smrg os=-tops20 50829459361Smrg ;; 50929459361Smrg delta | 3300 | motorola-3300 | motorola-delta \ 51029459361Smrg | 3300-motorola | delta-motorola) 51129459361Smrg basic_machine=m68k-motorola 51229459361Smrg ;; 51329459361Smrg delta88) 51429459361Smrg basic_machine=m88k-motorola 51529459361Smrg os=-sysv3 51629459361Smrg ;; 51729459361Smrg djgpp) 51829459361Smrg basic_machine=i586-pc 51929459361Smrg os=-msdosdjgpp 52029459361Smrg ;; 52129459361Smrg dpx20 | dpx20-*) 52229459361Smrg basic_machine=rs6000-bull 52329459361Smrg os=-bosx 52429459361Smrg ;; 52529459361Smrg dpx2* | dpx2*-bull) 52629459361Smrg basic_machine=m68k-bull 52729459361Smrg os=-sysv3 52829459361Smrg ;; 52929459361Smrg ebmon29k) 53029459361Smrg basic_machine=a29k-amd 53129459361Smrg os=-ebmon 53229459361Smrg ;; 53329459361Smrg elxsi) 53429459361Smrg basic_machine=elxsi-elxsi 53529459361Smrg os=-bsd 53629459361Smrg ;; 53729459361Smrg encore | umax | mmax) 53829459361Smrg basic_machine=ns32k-encore 53929459361Smrg ;; 54029459361Smrg es1800 | OSE68k | ose68k | ose | OSE) 54129459361Smrg basic_machine=m68k-ericsson 54229459361Smrg os=-ose 54329459361Smrg ;; 54429459361Smrg fx2800) 54529459361Smrg basic_machine=i860-alliant 54629459361Smrg ;; 54729459361Smrg genix) 54829459361Smrg basic_machine=ns32k-ns 54929459361Smrg ;; 55029459361Smrg gmicro) 55129459361Smrg basic_machine=tron-gmicro 55229459361Smrg os=-sysv 55329459361Smrg ;; 55429459361Smrg go32) 55529459361Smrg basic_machine=i386-pc 55629459361Smrg os=-go32 55729459361Smrg ;; 55829459361Smrg h3050r* | hiux*) 55929459361Smrg basic_machine=hppa1.1-hitachi 56029459361Smrg os=-hiuxwe2 56129459361Smrg ;; 56229459361Smrg h8300hms) 56329459361Smrg basic_machine=h8300-hitachi 56429459361Smrg os=-hms 56529459361Smrg ;; 56629459361Smrg h8300xray) 56729459361Smrg basic_machine=h8300-hitachi 56829459361Smrg os=-xray 56929459361Smrg ;; 57029459361Smrg h8500hms) 57129459361Smrg basic_machine=h8500-hitachi 57229459361Smrg os=-hms 57329459361Smrg ;; 57429459361Smrg harris) 57529459361Smrg basic_machine=m88k-harris 57629459361Smrg os=-sysv3 57729459361Smrg ;; 57829459361Smrg hp300-*) 57929459361Smrg basic_machine=m68k-hp 58029459361Smrg ;; 58129459361Smrg hp300bsd) 58229459361Smrg basic_machine=m68k-hp 58329459361Smrg os=-bsd 58429459361Smrg ;; 58529459361Smrg hp300hpux) 58629459361Smrg basic_machine=m68k-hp 58729459361Smrg os=-hpux 58829459361Smrg ;; 58929459361Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 59029459361Smrg basic_machine=hppa1.0-hp 59129459361Smrg ;; 59229459361Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 59329459361Smrg basic_machine=m68000-hp 59429459361Smrg ;; 59529459361Smrg hp9k3[2-9][0-9]) 59629459361Smrg basic_machine=m68k-hp 59729459361Smrg ;; 59829459361Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 59929459361Smrg basic_machine=hppa1.0-hp 60029459361Smrg ;; 60129459361Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 60229459361Smrg basic_machine=hppa1.1-hp 60329459361Smrg ;; 60429459361Smrg hp9k78[0-9] | hp78[0-9]) 60529459361Smrg # FIXME: really hppa2.0-hp 60629459361Smrg basic_machine=hppa1.1-hp 60729459361Smrg ;; 60829459361Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 60929459361Smrg # FIXME: really hppa2.0-hp 61029459361Smrg basic_machine=hppa1.1-hp 61129459361Smrg ;; 61229459361Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 61329459361Smrg basic_machine=hppa1.1-hp 61429459361Smrg ;; 61529459361Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 61629459361Smrg basic_machine=hppa1.0-hp 61729459361Smrg ;; 61829459361Smrg hppa-next) 61929459361Smrg os=-nextstep3 62029459361Smrg ;; 62129459361Smrg hppaosf) 62229459361Smrg basic_machine=hppa1.1-hp 62329459361Smrg os=-osf 62429459361Smrg ;; 62529459361Smrg hppro) 62629459361Smrg basic_machine=hppa1.1-hp 62729459361Smrg os=-proelf 62829459361Smrg ;; 62929459361Smrg i370-ibm* | ibm*) 63029459361Smrg basic_machine=i370-ibm 63129459361Smrg ;; 63229459361Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 63329459361Smrg i*86v32) 63429459361Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 63529459361Smrg os=-sysv32 63629459361Smrg ;; 63729459361Smrg i*86v4*) 63829459361Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 63929459361Smrg os=-sysv4 64029459361Smrg ;; 64129459361Smrg i*86v) 64229459361Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64329459361Smrg os=-sysv 64429459361Smrg ;; 64529459361Smrg i*86sol2) 64629459361Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64729459361Smrg os=-solaris2 64829459361Smrg ;; 64929459361Smrg i386mach) 65029459361Smrg basic_machine=i386-mach 65129459361Smrg os=-mach 65229459361Smrg ;; 65329459361Smrg i386-vsta | vsta) 65429459361Smrg basic_machine=i386-unknown 65529459361Smrg os=-vsta 65629459361Smrg ;; 65729459361Smrg iris | iris4d) 65829459361Smrg basic_machine=mips-sgi 65929459361Smrg case $os in 66029459361Smrg -irix*) 66129459361Smrg ;; 66229459361Smrg *) 66329459361Smrg os=-irix4 66429459361Smrg ;; 66529459361Smrg esac 66629459361Smrg ;; 66729459361Smrg isi68 | isi) 66829459361Smrg basic_machine=m68k-isi 66929459361Smrg os=-sysv 67029459361Smrg ;; 67129459361Smrg m88k-omron*) 67229459361Smrg basic_machine=m88k-omron 67329459361Smrg ;; 67429459361Smrg magnum | m3230) 67529459361Smrg basic_machine=mips-mips 67629459361Smrg os=-sysv 67729459361Smrg ;; 67829459361Smrg merlin) 67929459361Smrg basic_machine=ns32k-utek 68029459361Smrg os=-sysv 68129459361Smrg ;; 68229459361Smrg mingw32) 68329459361Smrg basic_machine=i386-pc 68429459361Smrg os=-mingw32 68529459361Smrg ;; 68629459361Smrg miniframe) 68729459361Smrg basic_machine=m68000-convergent 68829459361Smrg ;; 68929459361Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 69029459361Smrg basic_machine=m68k-atari 69129459361Smrg os=-mint 69229459361Smrg ;; 69329459361Smrg mips3*-*) 69429459361Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 69529459361Smrg ;; 69629459361Smrg mips3*) 69729459361Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 69829459361Smrg ;; 69929459361Smrg monitor) 70029459361Smrg basic_machine=m68k-rom68k 70129459361Smrg os=-coff 70229459361Smrg ;; 70329459361Smrg morphos) 70429459361Smrg basic_machine=powerpc-unknown 70529459361Smrg os=-morphos 70629459361Smrg ;; 70729459361Smrg msdos) 70829459361Smrg basic_machine=i386-pc 70929459361Smrg os=-msdos 71029459361Smrg ;; 71129459361Smrg ms1-*) 71229459361Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 71329459361Smrg ;; 71429459361Smrg mvs) 71529459361Smrg basic_machine=i370-ibm 71629459361Smrg os=-mvs 71729459361Smrg ;; 71829459361Smrg ncr3000) 71929459361Smrg basic_machine=i486-ncr 72029459361Smrg os=-sysv4 72129459361Smrg ;; 72229459361Smrg netbsd386) 72329459361Smrg basic_machine=i386-unknown 72429459361Smrg os=-netbsd 72529459361Smrg ;; 72629459361Smrg netwinder) 72729459361Smrg basic_machine=armv4l-rebel 72829459361Smrg os=-linux 72929459361Smrg ;; 73029459361Smrg news | news700 | news800 | news900) 73129459361Smrg basic_machine=m68k-sony 73229459361Smrg os=-newsos 73329459361Smrg ;; 73429459361Smrg news1000) 73529459361Smrg basic_machine=m68030-sony 73629459361Smrg os=-newsos 73729459361Smrg ;; 73829459361Smrg news-3600 | risc-news) 73929459361Smrg basic_machine=mips-sony 74029459361Smrg os=-newsos 74129459361Smrg ;; 74229459361Smrg necv70) 74329459361Smrg basic_machine=v70-nec 74429459361Smrg os=-sysv 74529459361Smrg ;; 74629459361Smrg next | m*-next ) 74729459361Smrg basic_machine=m68k-next 74829459361Smrg case $os in 74929459361Smrg -nextstep* ) 75029459361Smrg ;; 75129459361Smrg -ns2*) 75229459361Smrg os=-nextstep2 75329459361Smrg ;; 75429459361Smrg *) 75529459361Smrg os=-nextstep3 75629459361Smrg ;; 75729459361Smrg esac 75829459361Smrg ;; 75929459361Smrg nh3000) 76029459361Smrg basic_machine=m68k-harris 76129459361Smrg os=-cxux 76229459361Smrg ;; 76329459361Smrg nh[45]000) 76429459361Smrg basic_machine=m88k-harris 76529459361Smrg os=-cxux 76629459361Smrg ;; 76729459361Smrg nindy960) 76829459361Smrg basic_machine=i960-intel 76929459361Smrg os=-nindy 77029459361Smrg ;; 77129459361Smrg mon960) 77229459361Smrg basic_machine=i960-intel 77329459361Smrg os=-mon960 77429459361Smrg ;; 77529459361Smrg nonstopux) 77629459361Smrg basic_machine=mips-compaq 77729459361Smrg os=-nonstopux 77829459361Smrg ;; 77929459361Smrg np1) 78029459361Smrg basic_machine=np1-gould 78129459361Smrg ;; 78229459361Smrg nsr-tandem) 78329459361Smrg basic_machine=nsr-tandem 78429459361Smrg ;; 78529459361Smrg op50n-* | op60c-*) 78629459361Smrg basic_machine=hppa1.1-oki 78729459361Smrg os=-proelf 78829459361Smrg ;; 78929459361Smrg openrisc | openrisc-*) 79029459361Smrg basic_machine=or32-unknown 79129459361Smrg ;; 79229459361Smrg os400) 79329459361Smrg basic_machine=powerpc-ibm 79429459361Smrg os=-os400 79529459361Smrg ;; 79629459361Smrg OSE68000 | ose68000) 79729459361Smrg basic_machine=m68000-ericsson 79829459361Smrg os=-ose 79929459361Smrg ;; 80029459361Smrg os68k) 80129459361Smrg basic_machine=m68k-none 80229459361Smrg os=-os68k 80329459361Smrg ;; 80429459361Smrg pa-hitachi) 80529459361Smrg basic_machine=hppa1.1-hitachi 80629459361Smrg os=-hiuxwe2 80729459361Smrg ;; 80829459361Smrg paragon) 80929459361Smrg basic_machine=i860-intel 81029459361Smrg os=-osf 81129459361Smrg ;; 81229459361Smrg pbd) 81329459361Smrg basic_machine=sparc-tti 81429459361Smrg ;; 81529459361Smrg pbb) 81629459361Smrg basic_machine=m68k-tti 81729459361Smrg ;; 81829459361Smrg pc532 | pc532-*) 81929459361Smrg basic_machine=ns32k-pc532 82029459361Smrg ;; 82129459361Smrg pc98) 82229459361Smrg basic_machine=i386-pc 82329459361Smrg ;; 82429459361Smrg pc98-*) 82529459361Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 82629459361Smrg ;; 82729459361Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 82829459361Smrg basic_machine=i586-pc 82929459361Smrg ;; 83029459361Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 83129459361Smrg basic_machine=i686-pc 83229459361Smrg ;; 83329459361Smrg pentiumii | pentium2 | pentiumiii | pentium3) 83429459361Smrg basic_machine=i686-pc 83529459361Smrg ;; 83629459361Smrg pentium4) 83729459361Smrg basic_machine=i786-pc 83829459361Smrg ;; 83929459361Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 84029459361Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 84129459361Smrg ;; 84229459361Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 84329459361Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 84429459361Smrg ;; 84529459361Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 84629459361Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 84729459361Smrg ;; 84829459361Smrg pentium4-*) 84929459361Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 85029459361Smrg ;; 85129459361Smrg pn) 85229459361Smrg basic_machine=pn-gould 85329459361Smrg ;; 85429459361Smrg power) basic_machine=power-ibm 85529459361Smrg ;; 85629459361Smrg ppc) basic_machine=powerpc-unknown 85729459361Smrg ;; 85829459361Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 85929459361Smrg ;; 86029459361Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 86129459361Smrg basic_machine=powerpcle-unknown 86229459361Smrg ;; 86329459361Smrg ppcle-* | powerpclittle-*) 86429459361Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 86529459361Smrg ;; 86629459361Smrg ppc64) basic_machine=powerpc64-unknown 86729459361Smrg ;; 86829459361Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 86929459361Smrg ;; 87029459361Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 87129459361Smrg basic_machine=powerpc64le-unknown 87229459361Smrg ;; 87329459361Smrg ppc64le-* | powerpc64little-*) 87429459361Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 87529459361Smrg ;; 87629459361Smrg ps2) 87729459361Smrg basic_machine=i386-ibm 87829459361Smrg ;; 87929459361Smrg pw32) 88029459361Smrg basic_machine=i586-unknown 88129459361Smrg os=-pw32 88229459361Smrg ;; 88329459361Smrg rdos) 88429459361Smrg basic_machine=i386-pc 88529459361Smrg os=-rdos 88629459361Smrg ;; 88729459361Smrg rom68k) 88829459361Smrg basic_machine=m68k-rom68k 88929459361Smrg os=-coff 89029459361Smrg ;; 89129459361Smrg rm[46]00) 89229459361Smrg basic_machine=mips-siemens 89329459361Smrg ;; 89429459361Smrg rtpc | rtpc-*) 89529459361Smrg basic_machine=romp-ibm 89629459361Smrg ;; 89729459361Smrg s390 | s390-*) 89829459361Smrg basic_machine=s390-ibm 89929459361Smrg ;; 90029459361Smrg s390x | s390x-*) 90129459361Smrg basic_machine=s390x-ibm 90229459361Smrg ;; 90329459361Smrg sa29200) 90429459361Smrg basic_machine=a29k-amd 90529459361Smrg os=-udi 90629459361Smrg ;; 90729459361Smrg sb1) 90829459361Smrg basic_machine=mipsisa64sb1-unknown 90929459361Smrg ;; 91029459361Smrg sb1el) 91129459361Smrg basic_machine=mipsisa64sb1el-unknown 91229459361Smrg ;; 91329459361Smrg sde) 91429459361Smrg basic_machine=mipsisa32-sde 91529459361Smrg os=-elf 91629459361Smrg ;; 91729459361Smrg sei) 91829459361Smrg basic_machine=mips-sei 91929459361Smrg os=-seiux 92029459361Smrg ;; 92129459361Smrg sequent) 92229459361Smrg basic_machine=i386-sequent 92329459361Smrg ;; 92429459361Smrg sh) 92529459361Smrg basic_machine=sh-hitachi 92629459361Smrg os=-hms 92729459361Smrg ;; 92829459361Smrg sh5el) 92929459361Smrg basic_machine=sh5le-unknown 93029459361Smrg ;; 93129459361Smrg sh64) 93229459361Smrg basic_machine=sh64-unknown 93329459361Smrg ;; 93429459361Smrg sparclite-wrs | simso-wrs) 93529459361Smrg basic_machine=sparclite-wrs 93629459361Smrg os=-vxworks 93729459361Smrg ;; 93829459361Smrg sps7) 93929459361Smrg basic_machine=m68k-bull 94029459361Smrg os=-sysv2 94129459361Smrg ;; 94229459361Smrg spur) 94329459361Smrg basic_machine=spur-unknown 94429459361Smrg ;; 94529459361Smrg st2000) 94629459361Smrg basic_machine=m68k-tandem 94729459361Smrg ;; 94829459361Smrg stratus) 94929459361Smrg basic_machine=i860-stratus 95029459361Smrg os=-sysv4 95129459361Smrg ;; 95229459361Smrg sun2) 95329459361Smrg basic_machine=m68000-sun 95429459361Smrg ;; 95529459361Smrg sun2os3) 95629459361Smrg basic_machine=m68000-sun 95729459361Smrg os=-sunos3 95829459361Smrg ;; 95929459361Smrg sun2os4) 96029459361Smrg basic_machine=m68000-sun 96129459361Smrg os=-sunos4 96229459361Smrg ;; 96329459361Smrg sun3os3) 96429459361Smrg basic_machine=m68k-sun 96529459361Smrg os=-sunos3 96629459361Smrg ;; 96729459361Smrg sun3os4) 96829459361Smrg basic_machine=m68k-sun 96929459361Smrg os=-sunos4 97029459361Smrg ;; 97129459361Smrg sun4os3) 97229459361Smrg basic_machine=sparc-sun 97329459361Smrg os=-sunos3 97429459361Smrg ;; 97529459361Smrg sun4os4) 97629459361Smrg basic_machine=sparc-sun 97729459361Smrg os=-sunos4 97829459361Smrg ;; 97929459361Smrg sun4sol2) 98029459361Smrg basic_machine=sparc-sun 98129459361Smrg os=-solaris2 98229459361Smrg ;; 98329459361Smrg sun3 | sun3-*) 98429459361Smrg basic_machine=m68k-sun 98529459361Smrg ;; 98629459361Smrg sun4) 98729459361Smrg basic_machine=sparc-sun 98829459361Smrg ;; 98929459361Smrg sun386 | sun386i | roadrunner) 99029459361Smrg basic_machine=i386-sun 99129459361Smrg ;; 99229459361Smrg sv1) 99329459361Smrg basic_machine=sv1-cray 99429459361Smrg os=-unicos 99529459361Smrg ;; 99629459361Smrg symmetry) 99729459361Smrg basic_machine=i386-sequent 99829459361Smrg os=-dynix 99929459361Smrg ;; 100029459361Smrg t3e) 100129459361Smrg basic_machine=alphaev5-cray 100229459361Smrg os=-unicos 100329459361Smrg ;; 100429459361Smrg t90) 100529459361Smrg basic_machine=t90-cray 100629459361Smrg os=-unicos 100729459361Smrg ;; 100829459361Smrg tic54x | c54x*) 100929459361Smrg basic_machine=tic54x-unknown 101029459361Smrg os=-coff 101129459361Smrg ;; 101229459361Smrg tic55x | c55x*) 101329459361Smrg basic_machine=tic55x-unknown 101429459361Smrg os=-coff 101529459361Smrg ;; 101629459361Smrg tic6x | c6x*) 101729459361Smrg basic_machine=tic6x-unknown 101829459361Smrg os=-coff 101929459361Smrg ;; 102029459361Smrg tx39) 102129459361Smrg basic_machine=mipstx39-unknown 102229459361Smrg ;; 102329459361Smrg tx39el) 102429459361Smrg basic_machine=mipstx39el-unknown 102529459361Smrg ;; 102629459361Smrg toad1) 102729459361Smrg basic_machine=pdp10-xkl 102829459361Smrg os=-tops20 102929459361Smrg ;; 103029459361Smrg tower | tower-32) 103129459361Smrg basic_machine=m68k-ncr 103229459361Smrg ;; 103329459361Smrg tpf) 103429459361Smrg basic_machine=s390x-ibm 103529459361Smrg os=-tpf 103629459361Smrg ;; 103729459361Smrg udi29k) 103829459361Smrg basic_machine=a29k-amd 103929459361Smrg os=-udi 104029459361Smrg ;; 104129459361Smrg ultra3) 104229459361Smrg basic_machine=a29k-nyu 104329459361Smrg os=-sym1 104429459361Smrg ;; 104529459361Smrg v810 | necv810) 104629459361Smrg basic_machine=v810-nec 104729459361Smrg os=-none 104829459361Smrg ;; 104929459361Smrg vaxv) 105029459361Smrg basic_machine=vax-dec 105129459361Smrg os=-sysv 105229459361Smrg ;; 105329459361Smrg vms) 105429459361Smrg basic_machine=vax-dec 105529459361Smrg os=-vms 105629459361Smrg ;; 105729459361Smrg vpp*|vx|vx-*) 105829459361Smrg basic_machine=f301-fujitsu 105929459361Smrg ;; 106029459361Smrg vxworks960) 106129459361Smrg basic_machine=i960-wrs 106229459361Smrg os=-vxworks 106329459361Smrg ;; 106429459361Smrg vxworks68) 106529459361Smrg basic_machine=m68k-wrs 106629459361Smrg os=-vxworks 106729459361Smrg ;; 106829459361Smrg vxworks29k) 106929459361Smrg basic_machine=a29k-wrs 107029459361Smrg os=-vxworks 107129459361Smrg ;; 107229459361Smrg w65*) 107329459361Smrg basic_machine=w65-wdc 107429459361Smrg os=-none 107529459361Smrg ;; 107629459361Smrg w89k-*) 107729459361Smrg basic_machine=hppa1.1-winbond 107829459361Smrg os=-proelf 107929459361Smrg ;; 108029459361Smrg xbox) 108129459361Smrg basic_machine=i686-pc 108229459361Smrg os=-mingw32 108329459361Smrg ;; 108429459361Smrg xps | xps100) 108529459361Smrg basic_machine=xps100-honeywell 108629459361Smrg ;; 108729459361Smrg ymp) 108829459361Smrg basic_machine=ymp-cray 108929459361Smrg os=-unicos 109029459361Smrg ;; 109129459361Smrg z8k-*-coff) 109229459361Smrg basic_machine=z8k-unknown 109329459361Smrg os=-sim 109429459361Smrg ;; 109529459361Smrg none) 109629459361Smrg basic_machine=none-none 109729459361Smrg os=-none 109829459361Smrg ;; 109929459361Smrg 110029459361Smrg# Here we handle the default manufacturer of certain CPU types. It is in 110129459361Smrg# some cases the only manufacturer, in others, it is the most popular. 110229459361Smrg w89k) 110329459361Smrg basic_machine=hppa1.1-winbond 110429459361Smrg ;; 110529459361Smrg op50n) 110629459361Smrg basic_machine=hppa1.1-oki 110729459361Smrg ;; 110829459361Smrg op60c) 110929459361Smrg basic_machine=hppa1.1-oki 111029459361Smrg ;; 111129459361Smrg romp) 111229459361Smrg basic_machine=romp-ibm 111329459361Smrg ;; 111429459361Smrg mmix) 111529459361Smrg basic_machine=mmix-knuth 111629459361Smrg ;; 111729459361Smrg rs6000) 111829459361Smrg basic_machine=rs6000-ibm 111929459361Smrg ;; 112029459361Smrg vax) 112129459361Smrg basic_machine=vax-dec 112229459361Smrg ;; 112329459361Smrg pdp10) 112429459361Smrg # there are many clones, so DEC is not a safe bet 112529459361Smrg basic_machine=pdp10-unknown 112629459361Smrg ;; 112729459361Smrg pdp11) 112829459361Smrg basic_machine=pdp11-dec 112929459361Smrg ;; 113029459361Smrg we32k) 113129459361Smrg basic_machine=we32k-att 113229459361Smrg ;; 113329459361Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 113429459361Smrg basic_machine=sh-unknown 113529459361Smrg ;; 113629459361Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 113729459361Smrg basic_machine=sparc-sun 113829459361Smrg ;; 113929459361Smrg cydra) 114029459361Smrg basic_machine=cydra-cydrome 114129459361Smrg ;; 114229459361Smrg orion) 114329459361Smrg basic_machine=orion-highlevel 114429459361Smrg ;; 114529459361Smrg orion105) 114629459361Smrg basic_machine=clipper-highlevel 114729459361Smrg ;; 114829459361Smrg mac | mpw | mac-mpw) 114929459361Smrg basic_machine=m68k-apple 115029459361Smrg ;; 115129459361Smrg pmac | pmac-mpw) 115229459361Smrg basic_machine=powerpc-apple 115329459361Smrg ;; 115429459361Smrg *-unknown) 115529459361Smrg # Make sure to match an already-canonicalized machine name. 115629459361Smrg ;; 115729459361Smrg *) 115829459361Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 115929459361Smrg exit 1 116029459361Smrg ;; 116129459361Smrgesac 116229459361Smrg 116329459361Smrg# Here we canonicalize certain aliases for manufacturers. 116429459361Smrgcase $basic_machine in 116529459361Smrg *-digital*) 116629459361Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 116729459361Smrg ;; 116829459361Smrg *-commodore*) 116929459361Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 117029459361Smrg ;; 117129459361Smrg *) 117229459361Smrg ;; 117329459361Smrgesac 117429459361Smrg 117529459361Smrg# Decode manufacturer-specific aliases for certain operating systems. 117629459361Smrg 117729459361Smrgif [ x"$os" != x"" ] 117829459361Smrgthen 117929459361Smrgcase $os in 118029459361Smrg # First match some system type aliases 118129459361Smrg # that might get confused with valid system types. 118229459361Smrg # -solaris* is a basic system type, with this one exception. 118329459361Smrg -solaris1 | -solaris1.*) 118429459361Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 118529459361Smrg ;; 118629459361Smrg -solaris) 118729459361Smrg os=-solaris2 118829459361Smrg ;; 118929459361Smrg -svr4*) 119029459361Smrg os=-sysv4 119129459361Smrg ;; 119229459361Smrg -unixware*) 119329459361Smrg os=-sysv4.2uw 119429459361Smrg ;; 119529459361Smrg -gnu/linux*) 119629459361Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 119729459361Smrg ;; 119829459361Smrg # First accept the basic system types. 119929459361Smrg # The portable systems comes first. 120029459361Smrg # Each alternative MUST END IN A *, to match a version number. 120129459361Smrg # -sysv* is not here because it comes later, after sysvr4. 120229459361Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 120329459361Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 120429459361Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 120529459361Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 120629459361Smrg | -aos* \ 120729459361Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 120829459361Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 120929459361Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 121029459361Smrg | -openbsd* | -solidbsd* \ 121129459361Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 121229459361Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 121329459361Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 121429459361Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 121529459361Smrg | -chorusos* | -chorusrdb* \ 121629459361Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 121729459361Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 121829459361Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 121929459361Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 122029459361Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 122129459361Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 122229459361Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 122329459361Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 122429459361Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 122529459361Smrg | -skyos* | -haiku* | -rdos* | -toppers*) 122629459361Smrg # Remember, each alternative MUST END IN *, to match a version number. 122729459361Smrg ;; 122829459361Smrg -qnx*) 122929459361Smrg case $basic_machine in 123029459361Smrg x86-* | i*86-*) 123129459361Smrg ;; 123229459361Smrg *) 123329459361Smrg os=-nto$os 123429459361Smrg ;; 123529459361Smrg esac 123629459361Smrg ;; 123729459361Smrg -nto-qnx*) 123829459361Smrg ;; 123929459361Smrg -nto*) 124029459361Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 124129459361Smrg ;; 124229459361Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 124329459361Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 124429459361Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 124529459361Smrg ;; 124629459361Smrg -mac*) 124729459361Smrg os=`echo $os | sed -e 's|mac|macos|'` 124829459361Smrg ;; 124929459361Smrg -linux-dietlibc) 125029459361Smrg os=-linux-dietlibc 125129459361Smrg ;; 125229459361Smrg -linux*) 125329459361Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 125429459361Smrg ;; 125529459361Smrg -sunos5*) 125629459361Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 125729459361Smrg ;; 125829459361Smrg -sunos6*) 125929459361Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 126029459361Smrg ;; 126129459361Smrg -opened*) 126229459361Smrg os=-openedition 126329459361Smrg ;; 126429459361Smrg -os400*) 126529459361Smrg os=-os400 126629459361Smrg ;; 126729459361Smrg -wince*) 126829459361Smrg os=-wince 126929459361Smrg ;; 127029459361Smrg -osfrose*) 127129459361Smrg os=-osfrose 127229459361Smrg ;; 127329459361Smrg -osf*) 127429459361Smrg os=-osf 127529459361Smrg ;; 127629459361Smrg -utek*) 127729459361Smrg os=-bsd 127829459361Smrg ;; 127929459361Smrg -dynix*) 128029459361Smrg os=-bsd 128129459361Smrg ;; 128229459361Smrg -acis*) 128329459361Smrg os=-aos 128429459361Smrg ;; 128529459361Smrg -atheos*) 128629459361Smrg os=-atheos 128729459361Smrg ;; 128829459361Smrg -syllable*) 128929459361Smrg os=-syllable 129029459361Smrg ;; 129129459361Smrg -386bsd) 129229459361Smrg os=-bsd 129329459361Smrg ;; 129429459361Smrg -ctix* | -uts*) 129529459361Smrg os=-sysv 129629459361Smrg ;; 129729459361Smrg -nova*) 129829459361Smrg os=-rtmk-nova 129929459361Smrg ;; 130029459361Smrg -ns2 ) 130129459361Smrg os=-nextstep2 130229459361Smrg ;; 130329459361Smrg -nsk*) 130429459361Smrg os=-nsk 130529459361Smrg ;; 130629459361Smrg # Preserve the version number of sinix5. 130729459361Smrg -sinix5.*) 130829459361Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 130929459361Smrg ;; 131029459361Smrg -sinix*) 131129459361Smrg os=-sysv4 131229459361Smrg ;; 131329459361Smrg -tpf*) 131429459361Smrg os=-tpf 131529459361Smrg ;; 131629459361Smrg -triton*) 131729459361Smrg os=-sysv3 131829459361Smrg ;; 131929459361Smrg -oss*) 132029459361Smrg os=-sysv3 132129459361Smrg ;; 132229459361Smrg -svr4) 132329459361Smrg os=-sysv4 132429459361Smrg ;; 132529459361Smrg -svr3) 132629459361Smrg os=-sysv3 132729459361Smrg ;; 132829459361Smrg -sysvr4) 132929459361Smrg os=-sysv4 133029459361Smrg ;; 133129459361Smrg # This must come after -sysvr4. 133229459361Smrg -sysv*) 133329459361Smrg ;; 133429459361Smrg -ose*) 133529459361Smrg os=-ose 133629459361Smrg ;; 133729459361Smrg -es1800*) 133829459361Smrg os=-ose 133929459361Smrg ;; 134029459361Smrg -xenix) 134129459361Smrg os=-xenix 134229459361Smrg ;; 134329459361Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 134429459361Smrg os=-mint 134529459361Smrg ;; 134629459361Smrg -aros*) 134729459361Smrg os=-aros 134829459361Smrg ;; 134929459361Smrg -kaos*) 135029459361Smrg os=-kaos 135129459361Smrg ;; 135229459361Smrg -zvmoe) 135329459361Smrg os=-zvmoe 135429459361Smrg ;; 135529459361Smrg -none) 135629459361Smrg ;; 135729459361Smrg *) 135829459361Smrg # Get rid of the `-' at the beginning of $os. 135929459361Smrg os=`echo $os | sed 's/[^-]*-//'` 136029459361Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 136129459361Smrg exit 1 136229459361Smrg ;; 136329459361Smrgesac 136429459361Smrgelse 136529459361Smrg 136629459361Smrg# Here we handle the default operating systems that come with various machines. 136729459361Smrg# The value should be what the vendor currently ships out the door with their 136829459361Smrg# machine or put another way, the most popular os provided with the machine. 136929459361Smrg 137029459361Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 137129459361Smrg# "-sun"), then you have to tell the case statement up towards the top 137229459361Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 137329459361Smrg# will signal an error saying that MANUFACTURER isn't an operating 137429459361Smrg# system, and we'll never get to this point. 137529459361Smrg 137629459361Smrgcase $basic_machine in 137729459361Smrg score-*) 137829459361Smrg os=-elf 137929459361Smrg ;; 138029459361Smrg spu-*) 138129459361Smrg os=-elf 138229459361Smrg ;; 138329459361Smrg *-acorn) 138429459361Smrg os=-riscix1.2 138529459361Smrg ;; 138629459361Smrg arm*-rebel) 138729459361Smrg os=-linux 138829459361Smrg ;; 138929459361Smrg arm*-semi) 139029459361Smrg os=-aout 139129459361Smrg ;; 139229459361Smrg c4x-* | tic4x-*) 139329459361Smrg os=-coff 139429459361Smrg ;; 139529459361Smrg # This must come before the *-dec entry. 139629459361Smrg pdp10-*) 139729459361Smrg os=-tops20 139829459361Smrg ;; 139929459361Smrg pdp11-*) 140029459361Smrg os=-none 140129459361Smrg ;; 140229459361Smrg *-dec | vax-*) 140329459361Smrg os=-ultrix4.2 140429459361Smrg ;; 140529459361Smrg m68*-apollo) 140629459361Smrg os=-domain 140729459361Smrg ;; 140829459361Smrg i386-sun) 140929459361Smrg os=-sunos4.0.2 141029459361Smrg ;; 141129459361Smrg m68000-sun) 141229459361Smrg os=-sunos3 141329459361Smrg # This also exists in the configure program, but was not the 141429459361Smrg # default. 141529459361Smrg # os=-sunos4 141629459361Smrg ;; 141729459361Smrg m68*-cisco) 141829459361Smrg os=-aout 141929459361Smrg ;; 142029459361Smrg mips*-cisco) 142129459361Smrg os=-elf 142229459361Smrg ;; 142329459361Smrg mips*-*) 142429459361Smrg os=-elf 142529459361Smrg ;; 142629459361Smrg or32-*) 142729459361Smrg os=-coff 142829459361Smrg ;; 142929459361Smrg *-tti) # must be before sparc entry or we get the wrong os. 143029459361Smrg os=-sysv3 143129459361Smrg ;; 143229459361Smrg sparc-* | *-sun) 143329459361Smrg os=-sunos4.1.1 143429459361Smrg ;; 143529459361Smrg *-be) 143629459361Smrg os=-beos 143729459361Smrg ;; 143829459361Smrg *-haiku) 143929459361Smrg os=-haiku 144029459361Smrg ;; 144129459361Smrg *-ibm) 144229459361Smrg os=-aix 144329459361Smrg ;; 144429459361Smrg *-knuth) 144529459361Smrg os=-mmixware 144629459361Smrg ;; 144729459361Smrg *-wec) 144829459361Smrg os=-proelf 144929459361Smrg ;; 145029459361Smrg *-winbond) 145129459361Smrg os=-proelf 145229459361Smrg ;; 145329459361Smrg *-oki) 145429459361Smrg os=-proelf 145529459361Smrg ;; 145629459361Smrg *-hp) 145729459361Smrg os=-hpux 145829459361Smrg ;; 145929459361Smrg *-hitachi) 146029459361Smrg os=-hiux 146129459361Smrg ;; 146229459361Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 146329459361Smrg os=-sysv 146429459361Smrg ;; 146529459361Smrg *-cbm) 146629459361Smrg os=-amigaos 146729459361Smrg ;; 146829459361Smrg *-dg) 146929459361Smrg os=-dgux 147029459361Smrg ;; 147129459361Smrg *-dolphin) 147229459361Smrg os=-sysv3 147329459361Smrg ;; 147429459361Smrg m68k-ccur) 147529459361Smrg os=-rtu 147629459361Smrg ;; 147729459361Smrg m88k-omron*) 147829459361Smrg os=-luna 147929459361Smrg ;; 148029459361Smrg *-next ) 148129459361Smrg os=-nextstep 148229459361Smrg ;; 148329459361Smrg *-sequent) 148429459361Smrg os=-ptx 148529459361Smrg ;; 148629459361Smrg *-crds) 148729459361Smrg os=-unos 148829459361Smrg ;; 148929459361Smrg *-ns) 149029459361Smrg os=-genix 149129459361Smrg ;; 149229459361Smrg i370-*) 149329459361Smrg os=-mvs 149429459361Smrg ;; 149529459361Smrg *-next) 149629459361Smrg os=-nextstep3 149729459361Smrg ;; 149829459361Smrg *-gould) 149929459361Smrg os=-sysv 150029459361Smrg ;; 150129459361Smrg *-highlevel) 150229459361Smrg os=-bsd 150329459361Smrg ;; 150429459361Smrg *-encore) 150529459361Smrg os=-bsd 150629459361Smrg ;; 150729459361Smrg *-sgi) 150829459361Smrg os=-irix 150929459361Smrg ;; 151029459361Smrg *-siemens) 151129459361Smrg os=-sysv4 151229459361Smrg ;; 151329459361Smrg *-masscomp) 151429459361Smrg os=-rtu 151529459361Smrg ;; 151629459361Smrg f30[01]-fujitsu | f700-fujitsu) 151729459361Smrg os=-uxpv 151829459361Smrg ;; 151929459361Smrg *-rom68k) 152029459361Smrg os=-coff 152129459361Smrg ;; 152229459361Smrg *-*bug) 152329459361Smrg os=-coff 152429459361Smrg ;; 152529459361Smrg *-apple) 152629459361Smrg os=-macos 152729459361Smrg ;; 152829459361Smrg *-atari*) 152929459361Smrg os=-mint 153029459361Smrg ;; 153129459361Smrg *) 153229459361Smrg os=-none 153329459361Smrg ;; 153429459361Smrgesac 153529459361Smrgfi 153629459361Smrg 153729459361Smrg# Here we handle the case where we know the os, and the CPU type, but not the 153829459361Smrg# manufacturer. We pick the logical manufacturer. 153929459361Smrgvendor=unknown 154029459361Smrgcase $basic_machine in 154129459361Smrg *-unknown) 154229459361Smrg case $os in 154329459361Smrg -riscix*) 154429459361Smrg vendor=acorn 154529459361Smrg ;; 154629459361Smrg -sunos*) 154729459361Smrg vendor=sun 154829459361Smrg ;; 154929459361Smrg -aix*) 155029459361Smrg vendor=ibm 155129459361Smrg ;; 155229459361Smrg -beos*) 155329459361Smrg vendor=be 155429459361Smrg ;; 155529459361Smrg -hpux*) 155629459361Smrg vendor=hp 155729459361Smrg ;; 155829459361Smrg -mpeix*) 155929459361Smrg vendor=hp 156029459361Smrg ;; 156129459361Smrg -hiux*) 156229459361Smrg vendor=hitachi 156329459361Smrg ;; 156429459361Smrg -unos*) 156529459361Smrg vendor=crds 156629459361Smrg ;; 156729459361Smrg -dgux*) 156829459361Smrg vendor=dg 156929459361Smrg ;; 157029459361Smrg -luna*) 157129459361Smrg vendor=omron 157229459361Smrg ;; 157329459361Smrg -genix*) 157429459361Smrg vendor=ns 157529459361Smrg ;; 157629459361Smrg -mvs* | -opened*) 157729459361Smrg vendor=ibm 157829459361Smrg ;; 157929459361Smrg -os400*) 158029459361Smrg vendor=ibm 158129459361Smrg ;; 158229459361Smrg -ptx*) 158329459361Smrg vendor=sequent 158429459361Smrg ;; 158529459361Smrg -tpf*) 158629459361Smrg vendor=ibm 158729459361Smrg ;; 158829459361Smrg -vxsim* | -vxworks* | -windiss*) 158929459361Smrg vendor=wrs 159029459361Smrg ;; 159129459361Smrg -aux*) 159229459361Smrg vendor=apple 159329459361Smrg ;; 159429459361Smrg -hms*) 159529459361Smrg vendor=hitachi 159629459361Smrg ;; 159729459361Smrg -mpw* | -macos*) 159829459361Smrg vendor=apple 159929459361Smrg ;; 160029459361Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 160129459361Smrg vendor=atari 160229459361Smrg ;; 160329459361Smrg -vos*) 160429459361Smrg vendor=stratus 160529459361Smrg ;; 160629459361Smrg esac 160729459361Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 160829459361Smrg ;; 160929459361Smrgesac 161029459361Smrg 161129459361Smrgecho $basic_machine$os 161229459361Smrgexit 161329459361Smrg 161429459361Smrg# Local variables: 161529459361Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 161629459361Smrg# time-stamp-start: "timestamp='" 161729459361Smrg# time-stamp-format: "%:y-%02m-%02d" 161829459361Smrg# time-stamp-end: "'" 161929459361Smrg# End: 1620