annotate config.sub @ 9:f19beef42ceb

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