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