Changeset 6418c91d in rtems
- Timestamp:
- 07/06/18 07:25:57 (5 years ago)
- Branches:
- 5, master
- Children:
- dd32e2b2
- Parents:
- fc5cc9a
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/06/18 07:25:57)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/06/18 08:06:02)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
config.guess
rfc5cc9a r6418c91d 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-201 5Free Software Foundation, Inc.4 5 timestamp='201 5-10-21'3 # Copyright 1992-2018 Free Software Foundation, Inc. 4 5 timestamp='2018-06-26' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 16 16 # 17 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, see <http ://www.gnu.org/licenses/>.18 # along with this program; if not, see <https://www.gnu.org/licenses/>. 19 19 # 20 20 # As a special exception to the GNU General Public License, if you … … 28 28 # 29 29 # You can get the latest version of this script from: 30 # http ://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD30 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 31 31 # 32 32 # Please send patches to <config-patches@gnu.org>. … … 40 40 Output the configuration name of the system \`$me' is run on. 41 41 42 Op eration modes:42 Options: 43 43 -h, --help print this help, then exit 44 44 -t, --time-stamp print date of last modification, then exit … … 51 51 52 52 Originally written by Per Bothner. 53 Copyright 1992-201 5Free Software Foundation, Inc.53 Copyright 1992-2018 Free Software Foundation, Inc. 54 54 55 55 This is free software; see the source for copying conditions. There is NO … … 107 107 dummy=$tmp/dummy ; 108 108 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109 case $ CC_FOR_BUILD,$HOST_CC,$CCin110 ,,) echo "int x;" > $dummy.c;109 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in 110 ,,) echo "int x;" > "$dummy.c" ; 111 111 for c in cc gcc c89 c99 ; do 112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 113 113 CC_FOR_BUILD="$c"; break ; 114 114 fi ; … … 133 133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 134 134 135 case "$ {UNAME_SYSTEM}" in135 case "$UNAME_SYSTEM" in 136 136 Linux|GNU|GNU/*) 137 137 # If the system lacks a compiler, then just pick glibc. … … 139 139 LIBC=gnu 140 140 141 eval $set_cc_for_build142 cat <<-EOF > $dummy.c141 eval "$set_cc_for_build" 142 cat <<-EOF > "$dummy.c" 143 143 #include <features.h> 144 144 #if defined(__UCLIBC__) … … 150 150 #endif 151 151 EOF 152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 152 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" 153 154 # If ldd exists, use it to detect musl libc. 155 if command -v ldd >/dev/null && \ 156 ldd --version 2>&1 | grep -q ^musl 157 then 158 LIBC=musl 159 fi 153 160 ;; 154 161 esac … … 156 163 # Note: order is significant - the case branches are not exclusive. 157 164 158 case "$ {UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in165 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in 159 166 *:NetBSD:*:*) 160 167 # NetBSD (nbsd) targets should (where applicable) match one or … … 170 177 sysctl="sysctl -n hw.machine_arch" 171 178 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 172 /sbin/$sysctl2>/dev/null || \173 /usr/sbin/$sysctl2>/dev/null || \179 "/sbin/$sysctl" 2>/dev/null || \ 180 "/usr/sbin/$sysctl" 2>/dev/null || \ 174 181 echo unknown)` 175 case "$ {UNAME_MACHINE_ARCH}" in182 case "$UNAME_MACHINE_ARCH" in 176 183 armeb) machine=armeb-unknown ;; 177 184 arm*) machine=arm-unknown ;; … … 180 187 sh5el) machine=sh5le-unknown ;; 181 188 earmv*) 182 arch=`echo ${UNAME_MACHINE_ARCH}| sed -e 's,^e\(armv[0-9]\).*$,\1,'`183 endian=`echo ${UNAME_MACHINE_ARCH}| sed -ne 's,^.*\(eb\)$,\1,p'`184 machine= ${arch}${endian}-unknown189 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 190 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` 191 machine="${arch}${endian}"-unknown 185 192 ;; 186 *) machine= ${UNAME_MACHINE_ARCH}-unknown ;;193 *) machine="$UNAME_MACHINE_ARCH"-unknown ;; 187 194 esac 188 195 # The Operating System including object format, if it has switched 189 # to ELF recently, or will in the future. 190 case "${UNAME_MACHINE_ARCH}" in 191 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) 192 eval $set_cc_for_build 196 # to ELF recently (or will in the future) and ABI. 197 case "$UNAME_MACHINE_ARCH" in 198 earm*) 199 os=netbsdelf 200 ;; 201 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 202 eval "$set_cc_for_build" 193 203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 194 204 | grep -q __ELF__ … … 206 216 esac 207 217 # Determine ABI tags. 208 case "$ {UNAME_MACHINE_ARCH}" in218 case "$UNAME_MACHINE_ARCH" in 209 219 earm*) 210 220 expr='s/^earmv[0-9]/-eabi/;s/eb$//' 211 abi=`echo ${UNAME_MACHINE_ARCH}| sed -e "$expr"`221 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` 212 222 ;; 213 223 esac … … 217 227 # kernel version information, so it can be replaced with a 218 228 # suitable tag, in the style of linux-gnu. 219 case "$ {UNAME_VERSION}" in229 case "$UNAME_VERSION" in 220 230 Debian*) 221 231 release='-gnu' 222 232 ;; 223 233 *) 224 release=`echo ${UNAME_RELEASE}| sed -e 's/[-_].*//' | cut -d. -f1,2`234 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` 225 235 ;; 226 236 esac … … 228 238 # contains redundant information, the shorter form: 229 239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 230 echo "$ {machine}-${os}${release}${abi}"240 echo "$machine-${os}${release}${abi-}" 231 241 exit ;; 232 242 *:Bitrig:*:*) 233 243 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 234 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}244 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" 235 245 exit ;; 236 246 *:OpenBSD:*:*) 237 247 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 238 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 248 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" 249 exit ;; 250 *:LibertyBSD:*:*) 251 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 252 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" 253 exit ;; 254 *:MidnightBSD:*:*) 255 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" 239 256 exit ;; 240 257 *:ekkoBSD:*:*) 241 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" 242 259 exit ;; 243 260 *:SolidBSD:*:*) 244 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 245 262 exit ;; 246 263 macppc:MirBSD:*:*) 247 echo powerpc-unknown-mirbsd ${UNAME_RELEASE}264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" 248 265 exit ;; 249 266 *:MirBSD:*:*) 250 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" 251 268 exit ;; 252 269 *:Sortix:*:*) 253 echo ${UNAME_MACHINE}-unknown-sortix 254 exit ;; 270 echo "$UNAME_MACHINE"-unknown-sortix 271 exit ;; 272 *:Redox:*:*) 273 echo "$UNAME_MACHINE"-unknown-redox 274 exit ;; 275 mips:OSF1:*.*) 276 echo mips-dec-osf1 277 exit ;; 255 278 alpha:OSF1:*:*) 256 279 case $UNAME_RELEASE in … … 269 292 case "$ALPHA_CPU_TYPE" in 270 293 "EV4 (21064)") 271 UNAME_MACHINE= "alpha";;294 UNAME_MACHINE=alpha ;; 272 295 "EV4.5 (21064)") 273 UNAME_MACHINE= "alpha";;296 UNAME_MACHINE=alpha ;; 274 297 "LCA4 (21066/21068)") 275 UNAME_MACHINE= "alpha";;298 UNAME_MACHINE=alpha ;; 276 299 "EV5 (21164)") 277 UNAME_MACHINE= "alphaev5";;300 UNAME_MACHINE=alphaev5 ;; 278 301 "EV5.6 (21164A)") 279 UNAME_MACHINE= "alphaev56";;302 UNAME_MACHINE=alphaev56 ;; 280 303 "EV5.6 (21164PC)") 281 UNAME_MACHINE= "alphapca56";;304 UNAME_MACHINE=alphapca56 ;; 282 305 "EV5.7 (21164PC)") 283 UNAME_MACHINE= "alphapca57";;306 UNAME_MACHINE=alphapca57 ;; 284 307 "EV6 (21264)") 285 UNAME_MACHINE= "alphaev6";;308 UNAME_MACHINE=alphaev6 ;; 286 309 "EV6.7 (21264A)") 287 UNAME_MACHINE= "alphaev67";;310 UNAME_MACHINE=alphaev67 ;; 288 311 "EV6.8CB (21264C)") 289 UNAME_MACHINE= "alphaev68";;312 UNAME_MACHINE=alphaev68 ;; 290 313 "EV6.8AL (21264B)") 291 UNAME_MACHINE= "alphaev68";;314 UNAME_MACHINE=alphaev68 ;; 292 315 "EV6.8CX (21264D)") 293 UNAME_MACHINE= "alphaev68";;316 UNAME_MACHINE=alphaev68 ;; 294 317 "EV6.9A (21264/EV69A)") 295 UNAME_MACHINE= "alphaev69";;318 UNAME_MACHINE=alphaev69 ;; 296 319 "EV7 (21364)") 297 UNAME_MACHINE= "alphaev7";;320 UNAME_MACHINE=alphaev7 ;; 298 321 "EV7.9 (21364A)") 299 UNAME_MACHINE= "alphaev79";;322 UNAME_MACHINE=alphaev79 ;; 300 323 esac 301 324 # A Pn.n version is a patched version. … … 304 327 # A Xn.n version is an unreleased experimental baselevel. 305 328 # 1.2 uses "1.2" for uname -r. 306 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`329 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" 307 330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 308 331 exitcode=$? 309 332 trap '' 0 310 333 exit $exitcode ;; 311 Alpha\ *:Windows_NT*:*)312 # How do we know it's Interix rather than the generic POSIX subsystem?313 # Should we change UNAME_MACHINE based on the output of uname instead314 # of the specific Alpha model?315 echo alpha-pc-interix316 exit ;;317 21064:Windows_NT:50:3)318 echo alpha-dec-winnt3.5319 exit ;;320 334 Amiga*:UNIX_System_V:4.0:*) 321 335 echo m68k-unknown-sysv4 322 336 exit ;; 323 337 *:[Aa]miga[Oo][Ss]:*:*) 324 echo ${UNAME_MACHINE}-unknown-amigaos338 echo "$UNAME_MACHINE"-unknown-amigaos 325 339 exit ;; 326 340 *:[Mm]orph[Oo][Ss]:*:*) 327 echo ${UNAME_MACHINE}-unknown-morphos341 echo "$UNAME_MACHINE"-unknown-morphos 328 342 exit ;; 329 343 *:OS/390:*:*) … … 337 351 exit ;; 338 352 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 339 echo arm-acorn-riscix ${UNAME_RELEASE}353 echo arm-acorn-riscix"$UNAME_RELEASE" 340 354 exit ;; 341 355 arm*:riscos:*:*|arm*:RISCOS:*:*) … … 364 378 esac ;; 365 379 s390x:SunOS:*:*) 366 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 367 381 exit ;; 368 382 sun4H:SunOS:5.*:*) 369 echo sparc-hal-solaris2 `echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 370 384 exit ;; 371 385 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 372 echo sparc-sun-solaris2 `echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 373 387 exit ;; 374 388 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 375 echo i386-pc-auroraux ${UNAME_RELEASE}389 echo i386-pc-auroraux"$UNAME_RELEASE" 376 390 exit ;; 377 391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 378 eval $set_cc_for_build379 SUN_ARCH= "i386"392 eval "$set_cc_for_build" 393 SUN_ARCH=i386 380 394 # If there is a compiler, see if it is configured for 64-bit objects. 381 395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 382 396 # This test works for both compilers. 383 if [ "$CC_FOR_BUILD" != 'no_compiler_found']; then397 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 384 398 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 385 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \399 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 386 400 grep IS_64BIT_ARCH >/dev/null 387 401 then 388 SUN_ARCH= "x86_64"402 SUN_ARCH=x86_64 389 403 fi 390 404 fi 391 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 392 406 exit ;; 393 407 sun4*:SunOS:6*:*) … … 395 409 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 396 410 # it's likely to be more like Solaris than SunOS4. 397 echo sparc-sun-solaris3 `echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 398 412 exit ;; 399 413 sun4*:SunOS:*:*) … … 404 418 esac 405 419 # Japanese Language versions have a version number like `4.1.3-JL'. 406 echo sparc-sun-sunos `echo ${UNAME_RELEASE}|sed -e 's/-/_/'`420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" 407 421 exit ;; 408 422 sun3*:SunOS:*:*) 409 echo m68k-sun-sunos ${UNAME_RELEASE}423 echo m68k-sun-sunos"$UNAME_RELEASE" 410 424 exit ;; 411 425 sun*:*:4.2BSD:*) 412 426 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 413 test "x$ {UNAME_RELEASE}" = "x"&& UNAME_RELEASE=3427 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 414 428 case "`/bin/arch`" in 415 429 sun3) 416 echo m68k-sun-sunos ${UNAME_RELEASE}430 echo m68k-sun-sunos"$UNAME_RELEASE" 417 431 ;; 418 432 sun4) 419 echo sparc-sun-sunos ${UNAME_RELEASE}433 echo sparc-sun-sunos"$UNAME_RELEASE" 420 434 ;; 421 435 esac 422 436 exit ;; 423 437 aushp:SunOS:*:*) 424 echo sparc-auspex-sunos ${UNAME_RELEASE}438 echo sparc-auspex-sunos"$UNAME_RELEASE" 425 439 exit ;; 426 440 # The situation for MiNT is a little confusing. The machine name … … 433 447 # be no problem. 434 448 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 435 echo m68k-atari-mint ${UNAME_RELEASE}449 echo m68k-atari-mint"$UNAME_RELEASE" 436 450 exit ;; 437 451 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 438 echo m68k-atari-mint ${UNAME_RELEASE}452 echo m68k-atari-mint"$UNAME_RELEASE" 439 453 exit ;; 440 454 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 441 echo m68k-atari-mint ${UNAME_RELEASE}455 echo m68k-atari-mint"$UNAME_RELEASE" 442 456 exit ;; 443 457 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 444 echo m68k-milan-mint ${UNAME_RELEASE}458 echo m68k-milan-mint"$UNAME_RELEASE" 445 459 exit ;; 446 460 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 447 echo m68k-hades-mint ${UNAME_RELEASE}461 echo m68k-hades-mint"$UNAME_RELEASE" 448 462 exit ;; 449 463 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 450 echo m68k-unknown-mint ${UNAME_RELEASE}464 echo m68k-unknown-mint"$UNAME_RELEASE" 451 465 exit ;; 452 466 m68k:machten:*:*) 453 echo m68k-apple-machten ${UNAME_RELEASE}467 echo m68k-apple-machten"$UNAME_RELEASE" 454 468 exit ;; 455 469 powerpc:machten:*:*) 456 echo powerpc-apple-machten ${UNAME_RELEASE}470 echo powerpc-apple-machten"$UNAME_RELEASE" 457 471 exit ;; 458 472 RISC*:Mach:*:*) … … 460 474 exit ;; 461 475 RISC*:ULTRIX:*:*) 462 echo mips-dec-ultrix ${UNAME_RELEASE}476 echo mips-dec-ultrix"$UNAME_RELEASE" 463 477 exit ;; 464 478 VAX*:ULTRIX*:*:*) 465 echo vax-dec-ultrix ${UNAME_RELEASE}479 echo vax-dec-ultrix"$UNAME_RELEASE" 466 480 exit ;; 467 481 2020:CLIX:*:* | 2430:CLIX:*:*) 468 echo clipper-intergraph-clix ${UNAME_RELEASE}482 echo clipper-intergraph-clix"$UNAME_RELEASE" 469 483 exit ;; 470 484 mips:*:*:UMIPS | mips:*:*:RISCos) 471 eval $set_cc_for_build472 sed 's/^ //' << EOF > $dummy.c485 eval "$set_cc_for_build" 486 sed 's/^ //' << EOF > "$dummy.c" 473 487 #ifdef __cplusplus 474 488 #include <stdio.h> /* for printf() prototype */ … … 479 493 #if defined (host_mips) && defined (MIPSEB) 480 494 #if defined (SYSTYPE_SYSV) 481 printf ("mips-mips-riscos%ssysv\ n", argv[1]); exit (0);495 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); 482 496 #endif 483 497 #if defined (SYSTYPE_SVR4) 484 printf ("mips-mips-riscos%ssvr4\ n", argv[1]); exit (0);498 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); 485 499 #endif 486 500 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 487 printf ("mips-mips-riscos%sbsd\ n", argv[1]); exit (0);501 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); 488 502 #endif 489 503 #endif … … 491 505 } 492 506 EOF 493 $CC_FOR_BUILD -o $dummy $dummy.c&&494 dummyarg=`echo "$ {UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&495 SYSTEM_NAME=` $dummy $dummyarg` &&507 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && 508 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && 509 SYSTEM_NAME=`"$dummy" "$dummyarg"` && 496 510 { echo "$SYSTEM_NAME"; exit; } 497 echo mips-mips-riscos ${UNAME_RELEASE}511 echo mips-mips-riscos"$UNAME_RELEASE" 498 512 exit ;; 499 513 Motorola:PowerMAX_OS:*:*) … … 521 535 # DG/UX returns AViiON for all architectures 522 536 UNAME_PROCESSOR=`/usr/bin/uname -p` 523 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR= mc88110 ]537 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] 524 538 then 525 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \526 [ ${TARGET_BINARY_INTERFACE}x = x ]539 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ 540 [ "$TARGET_BINARY_INTERFACE"x = x ] 527 541 then 528 echo m88k-dg-dgux ${UNAME_RELEASE}542 echo m88k-dg-dgux"$UNAME_RELEASE" 529 543 else 530 echo m88k-dg-dguxbcs ${UNAME_RELEASE}544 echo m88k-dg-dguxbcs"$UNAME_RELEASE" 531 545 fi 532 546 else 533 echo i586-dg-dgux ${UNAME_RELEASE}547 echo i586-dg-dgux"$UNAME_RELEASE" 534 548 fi 535 549 exit ;; … … 548 562 exit ;; 549 563 *:IRIX*:*:*) 550 echo mips-sgi-irix `echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" 551 565 exit ;; 552 566 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. … … 560 574 IBM_REV=`/usr/bin/oslevel` 561 575 else 562 IBM_REV= ${UNAME_VERSION}.${UNAME_RELEASE}563 fi 564 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}576 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 577 fi 578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" 565 579 exit ;; 566 580 *:AIX:2:3) 567 581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 568 eval $set_cc_for_build569 sed 's/^ //' << EOF > $dummy.c582 eval "$set_cc_for_build" 583 sed 's/^ //' << EOF > "$dummy.c" 570 584 #include <sys/systemcfg.h> 571 585 … … 578 592 } 579 593 EOF 580 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`594 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` 581 595 then 582 596 echo "$SYSTEM_NAME" … … 592 606 *:AIX:*:[4567]) 593 607 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 594 if /usr/sbin/lsattr -El ${IBM_CPU_ID}| grep ' POWER' >/dev/null 2>&1; then608 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then 595 609 IBM_ARCH=rs6000 596 610 else … … 601 615 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 602 616 else 603 IBM_REV= ${UNAME_VERSION}.${UNAME_RELEASE}604 fi 605 echo ${IBM_ARCH}-ibm-aix${IBM_REV}617 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 618 fi 619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV" 606 620 exit ;; 607 621 *:AIX:*:*) 608 622 echo rs6000-ibm-aix 609 623 exit ;; 610 ibmrt:4.4BSD:*|romp-ibm: BSD:*)624 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 611 625 echo romp-ibm-bsd4.4 612 626 exit ;; 613 627 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 614 echo romp-ibm-bsd ${UNAME_RELEASE}# 4.3 with uname added to628 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to 615 629 exit ;; # report: romp-ibm BSD 4.3 616 630 *:BOSX:*:*) … … 627 641 exit ;; 628 642 9000/[34678]??:HP-UX:*:*) 629 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`630 case "$ {UNAME_MACHINE}" in631 9000/31? 632 9000/[34]?? 643 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 644 case "$UNAME_MACHINE" in 645 9000/31?) HP_ARCH=m68000 ;; 646 9000/[34]??) HP_ARCH=m68k ;; 633 647 9000/[678][0-9][0-9]) 634 648 if [ -x /usr/bin/getconf ]; then 635 649 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 636 650 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 637 case "$ {sc_cpu_version}" in638 523) HP_ARCH= "hppa1.0";; # CPU_PA_RISC1_0639 528) HP_ARCH= "hppa1.1";; # CPU_PA_RISC1_1651 case "$sc_cpu_version" in 652 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 653 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 640 654 532) # CPU_PA_RISC2_0 641 case "$ {sc_kernel_bits}" in642 32) HP_ARCH= "hppa2.0n";;643 64) HP_ARCH= "hppa2.0w";;644 '') HP_ARCH= "hppa2.0";; # HP-UX 10.20655 case "$sc_kernel_bits" in 656 32) HP_ARCH=hppa2.0n ;; 657 64) HP_ARCH=hppa2.0w ;; 658 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 645 659 esac ;; 646 660 esac 647 661 fi 648 if [ "$ {HP_ARCH}" = "" ]; then649 eval $set_cc_for_build650 sed 's/^ //' << EOF > $dummy.c662 if [ "$HP_ARCH" = "" ]; then 663 eval "$set_cc_for_build" 664 sed 's/^ //' << EOF > "$dummy.c" 651 665 652 666 #define _HPUX_SOURCE … … 681 695 } 682 696 EOF 683 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`697 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` 684 698 test -z "$HP_ARCH" && HP_ARCH=hppa 685 699 fi ;; 686 700 esac 687 if [ ${HP_ARCH} = "hppa2.0w"]701 if [ "$HP_ARCH" = hppa2.0w ] 688 702 then 689 eval $set_cc_for_build703 eval "$set_cc_for_build" 690 704 691 705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating … … 698 712 # => hppa64-hp-hpux11.23 699 713 700 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |714 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 701 715 grep -q __LP64__ 702 716 then 703 HP_ARCH= "hppa2.0w"717 HP_ARCH=hppa2.0w 704 718 else 705 HP_ARCH= "hppa64"719 HP_ARCH=hppa64 706 720 fi 707 721 fi 708 echo ${HP_ARCH}-hp-hpux${HPUX_REV}722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV" 709 723 exit ;; 710 724 ia64:HP-UX:*:*) 711 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`712 echo ia64-hp-hpux ${HPUX_REV}725 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 726 echo ia64-hp-hpux"$HPUX_REV" 713 727 exit ;; 714 728 3050*:HI-UX:*:*) 715 eval $set_cc_for_build716 sed 's/^ //' << EOF > $dummy.c729 eval "$set_cc_for_build" 730 sed 's/^ //' << EOF > "$dummy.c" 717 731 #include <unistd.h> 718 732 int … … 739 753 } 740 754 EOF 741 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&755 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && 742 756 { echo "$SYSTEM_NAME"; exit; } 743 757 echo unknown-hitachi-hiuxwe2 744 758 exit ;; 745 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* 759 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) 746 760 echo hppa1.1-hp-bsd 747 761 exit ;; … … 752 766 echo hppa1.0-hp-mpeix 753 767 exit ;; 754 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* 768 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) 755 769 echo hppa1.1-hp-osf 756 770 exit ;; … … 760 774 i*86:OSF1:*:*) 761 775 if [ -x /usr/sbin/sysversion ] ; then 762 echo ${UNAME_MACHINE}-unknown-osf1mk776 echo "$UNAME_MACHINE"-unknown-osf1mk 763 777 else 764 echo ${UNAME_MACHINE}-unknown-osf1778 echo "$UNAME_MACHINE"-unknown-osf1 765 779 fi 766 780 exit ;; … … 787 801 exit ;; 788 802 CRAY*Y-MP:*:*:*) 789 echo ymp-cray-unicos ${UNAME_RELEASE}| sed -e 's/\.[^.]*$/.X/'803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 790 804 exit ;; 791 805 CRAY*[A-Z]90:*:*:*) 792 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE}\806 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ 793 807 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 794 808 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ … … 796 810 exit ;; 797 811 CRAY*TS:*:*:*) 798 echo t90-cray-unicos ${UNAME_RELEASE}| sed -e 's/\.[^.]*$/.X/'812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 799 813 exit ;; 800 814 CRAY*T3E:*:*:*) 801 echo alphaev5-cray-unicosmk ${UNAME_RELEASE}| sed -e 's/\.[^.]*$/.X/'815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 802 816 exit ;; 803 817 CRAY*SV1:*:*:*) 804 echo sv1-cray-unicos ${UNAME_RELEASE}| sed -e 's/\.[^.]*$/.X/'818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 805 819 exit ;; 806 820 *:UNICOS/mp:*:*) 807 echo craynv-cray-unicosmp ${UNAME_RELEASE}| sed -e 's/\.[^.]*$/.X/'821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 808 822 exit ;; 809 823 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 810 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`811 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'| sed -e 's/\///'`812 FUJITSU_REL=`echo ${UNAME_RELEASE}| sed -e 's/ /_/'`824 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 825 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 826 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` 813 827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 814 828 exit ;; 815 829 5000:UNIX_System_V:4.*:*) 816 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'| sed -e 's/\///'`817 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'| sed -e 's/ /_/'`830 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 831 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 818 832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 819 833 exit ;; 820 834 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 821 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" 822 836 exit ;; 823 837 sparc*:BSD/OS:*:*) 824 echo sparc-unknown-bsdi ${UNAME_RELEASE}838 echo sparc-unknown-bsdi"$UNAME_RELEASE" 825 839 exit ;; 826 840 *:BSD/OS:*:*) 827 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 828 842 exit ;; 829 843 *:FreeBSD:*:*) 830 844 UNAME_PROCESSOR=`/usr/bin/uname -p` 831 case ${UNAME_PROCESSOR}in845 case "$UNAME_PROCESSOR" in 832 846 amd64) 833 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`;;834 *)835 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`;;847 UNAME_PROCESSOR=x86_64 ;; 848 i386) 849 UNAME_PROCESSOR=i586 ;; 836 850 esac 851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 837 852 exit ;; 838 853 i*:CYGWIN*:*) 839 echo ${UNAME_MACHINE}-pc-cygwin854 echo "$UNAME_MACHINE"-pc-cygwin 840 855 exit ;; 841 856 *:MINGW64*:*) 842 echo ${UNAME_MACHINE}-pc-mingw64857 echo "$UNAME_MACHINE"-pc-mingw64 843 858 exit ;; 844 859 *:MINGW*:*) 845 echo ${UNAME_MACHINE}-pc-mingw32860 echo "$UNAME_MACHINE"-pc-mingw32 846 861 exit ;; 847 862 *:MSYS*:*) 848 echo ${UNAME_MACHINE}-pc-msys 849 exit ;; 850 i*:windows32*:*) 851 # uname -m includes "-pc" on this system. 852 echo ${UNAME_MACHINE}-mingw32 863 echo "$UNAME_MACHINE"-pc-msys 853 864 exit ;; 854 865 i*:PW*:*) 855 echo ${UNAME_MACHINE}-pc-pw32866 echo "$UNAME_MACHINE"-pc-pw32 856 867 exit ;; 857 868 *:Interix*:*) 858 case ${UNAME_MACHINE}in869 case "$UNAME_MACHINE" in 859 870 x86) 860 echo i586-pc-interix ${UNAME_RELEASE}871 echo i586-pc-interix"$UNAME_RELEASE" 861 872 exit ;; 862 873 authenticamd | genuineintel | EM64T) 863 echo x86_64-unknown-interix ${UNAME_RELEASE}874 echo x86_64-unknown-interix"$UNAME_RELEASE" 864 875 exit ;; 865 876 IA64) 866 echo ia64-unknown-interix ${UNAME_RELEASE}877 echo ia64-unknown-interix"$UNAME_RELEASE" 867 878 exit ;; 868 879 esac ;; 869 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)870 echo i${UNAME_MACHINE}-pc-mks871 exit ;;872 8664:Windows_NT:*)873 echo x86_64-pc-mks874 exit ;;875 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)876 # How do we know it's Interix rather than the generic POSIX subsystem?877 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we878 # UNAME_MACHINE based on the output of uname instead of i386?879 echo i586-pc-interix880 exit ;;881 880 i*:UWIN*:*) 882 echo ${UNAME_MACHINE}-pc-uwin881 echo "$UNAME_MACHINE"-pc-uwin 883 882 exit ;; 884 883 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 885 884 echo x86_64-unknown-cygwin 886 885 exit ;; 887 p*:CYGWIN*:*)888 echo powerpcle-unknown-cygwin889 exit ;;890 886 prep*:SunOS:5.*:*) 891 echo powerpcle-unknown-solaris2 `echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 892 888 exit ;; 893 889 *:GNU:*:*) 894 890 # the GNU system 895 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`891 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" 896 892 exit ;; 897 893 *:GNU/*:*:*) 898 894 # other systems with GNU libc and userland 899 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}900 exit ;; 901 i*86:Minix:*:*)902 echo ${UNAME_MACHINE}-pc-minix895 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 896 exit ;; 897 *:Minix:*:*) 898 echo "$UNAME_MACHINE"-unknown-minix 903 899 exit ;; 904 900 aarch64:Linux:*:*) 905 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 906 902 exit ;; 907 903 aarch64_be:Linux:*:*) 908 904 UNAME_MACHINE=aarch64_be 909 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 910 906 exit ;; 911 907 alpha:Linux:*:*) … … 920 916 esac 921 917 objdump --private-headers /bin/sh | grep -q ld.so.1 922 if test "$?" = 0 ; then LIBC= "gnulibc1"; fi923 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}918 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 924 920 exit ;; 925 921 arc:Linux:*:* | arceb:Linux:*:*) 926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 927 923 exit ;; 928 924 arm*:Linux:*:*) 929 eval $set_cc_for_build925 eval "$set_cc_for_build" 930 926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 931 927 | grep -q __ARM_EABI__ 932 928 then 933 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 934 930 else 935 931 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 936 932 | grep -q __ARM_PCS_VFP 937 933 then 938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi 939 935 else 940 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf 941 937 fi 942 938 fi 943 939 exit ;; 944 940 avr32*:Linux:*:*) 945 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 946 942 exit ;; 947 943 cris:Linux:*:*) 948 echo ${UNAME_MACHINE}-axis-linux-${LIBC}944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 949 945 exit ;; 950 946 crisv32:Linux:*:*) 951 echo ${UNAME_MACHINE}-axis-linux-${LIBC}947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 952 948 exit ;; 953 949 e2k:Linux:*:*) 954 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 955 951 exit ;; 956 952 frv:Linux:*:*) 957 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 958 954 exit ;; 959 955 hexagon:Linux:*:*) 960 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 961 957 exit ;; 962 958 i*86:Linux:*:*) 963 echo ${UNAME_MACHINE}-pc-linux-${LIBC}959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 964 960 exit ;; 965 961 ia64:Linux:*:*) 966 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 967 963 exit ;; 968 964 k1om:Linux:*:*) 969 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 970 966 exit ;; 971 967 m32r*:Linux:*:*) 972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 973 969 exit ;; 974 970 m68*:Linux:*:*) 975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 976 972 exit ;; 977 973 mips:Linux:*:* | mips64:Linux:*:*) 978 eval $set_cc_for_build979 sed 's/^ //' << EOF > $dummy.c974 eval "$set_cc_for_build" 975 sed 's/^ //' << EOF > "$dummy.c" 980 976 #undef CPU 981 977 #undef ${UNAME_MACHINE} … … 991 987 #endif 992 988 EOF 993 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`994 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" 990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } 995 991 ;; 992 mips64el:Linux:*:*) 993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 994 exit ;; 996 995 openrisc*:Linux:*:*) 997 echo or1k-unknown-linux- ${LIBC}996 echo or1k-unknown-linux-"$LIBC" 998 997 exit ;; 999 998 or32:Linux:*:* | or1k*:Linux:*:*) 1000 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1001 1000 exit ;; 1002 1001 padre:Linux:*:*) 1003 echo sparc-unknown-linux- ${LIBC}1002 echo sparc-unknown-linux-"$LIBC" 1004 1003 exit ;; 1005 1004 parisc64:Linux:*:* | hppa64:Linux:*:*) 1006 echo hppa64-unknown-linux- ${LIBC}1005 echo hppa64-unknown-linux-"$LIBC" 1007 1006 exit ;; 1008 1007 parisc:Linux:*:* | hppa:Linux:*:*) 1009 1008 # Look for CPU level 1010 1009 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 1011 PA7*) echo hppa1.1-unknown-linux- ${LIBC};;1012 PA8*) echo hppa2.0-unknown-linux- ${LIBC};;1013 *) echo hppa-unknown-linux- ${LIBC};;1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; 1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; 1012 *) echo hppa-unknown-linux-"$LIBC" ;; 1014 1013 esac 1015 1014 exit ;; 1016 1015 ppc64:Linux:*:*) 1017 echo powerpc64-unknown-linux- ${LIBC}1016 echo powerpc64-unknown-linux-"$LIBC" 1018 1017 exit ;; 1019 1018 ppc:Linux:*:*) 1020 echo powerpc-unknown-linux- ${LIBC}1019 echo powerpc-unknown-linux-"$LIBC" 1021 1020 exit ;; 1022 1021 ppc64le:Linux:*:*) 1023 echo powerpc64le-unknown-linux- ${LIBC}1022 echo powerpc64le-unknown-linux-"$LIBC" 1024 1023 exit ;; 1025 1024 ppcle:Linux:*:*) 1026 echo powerpcle-unknown-linux-${LIBC} 1025 echo powerpcle-unknown-linux-"$LIBC" 1026 exit ;; 1027 riscv32:Linux:*:* | riscv64:Linux:*:*) 1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1027 1029 exit ;; 1028 1030 s390:Linux:*:* | s390x:Linux:*:*) 1029 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" 1030 1032 exit ;; 1031 1033 sh64*:Linux:*:*) 1032 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1033 1035 exit ;; 1034 1036 sh*:Linux:*:*) 1035 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1036 1038 exit ;; 1037 1039 sparc:Linux:*:* | sparc64:Linux:*:*) 1038 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1039 1041 exit ;; 1040 1042 tile*:Linux:*:*) 1041 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1042 1044 exit ;; 1043 1045 vax:Linux:*:*) 1044 echo ${UNAME_MACHINE}-dec-linux-${LIBC}1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC" 1045 1047 exit ;; 1046 1048 x86_64:Linux:*:*) 1047 echo ${UNAME_MACHINE}-pc-linux-${LIBC}1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 1048 1050 exit ;; 1049 1051 xtensa*:Linux:*:*) 1050 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1052 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1051 1053 exit ;; 1052 1054 i*86:DYNIX/ptx:4*:*) … … 1062 1064 # I just have to hope. -- rms. 1063 1065 # Use sysv4.2uw... so that sysv4* matches it. 1064 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}1066 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" 1065 1067 exit ;; 1066 1068 i*86:OS/2:*:*) 1067 1069 # If we were able to find `uname', then EMX Unix compatibility 1068 1070 # is probably installed. 1069 echo ${UNAME_MACHINE}-pc-os2-emx1071 echo "$UNAME_MACHINE"-pc-os2-emx 1070 1072 exit ;; 1071 1073 i*86:XTS-300:*:STOP) 1072 echo ${UNAME_MACHINE}-unknown-stop1074 echo "$UNAME_MACHINE"-unknown-stop 1073 1075 exit ;; 1074 1076 i*86:atheos:*:*) 1075 echo ${UNAME_MACHINE}-unknown-atheos1077 echo "$UNAME_MACHINE"-unknown-atheos 1076 1078 exit ;; 1077 1079 i*86:syllable:*:*) 1078 echo ${UNAME_MACHINE}-pc-syllable1080 echo "$UNAME_MACHINE"-pc-syllable 1079 1081 exit ;; 1080 1082 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1081 echo i386-unknown-lynxos ${UNAME_RELEASE}1083 echo i386-unknown-lynxos"$UNAME_RELEASE" 1082 1084 exit ;; 1083 1085 i*86:*DOS:*:*) 1084 echo ${UNAME_MACHINE}-pc-msdosdjgpp1085 exit ;; 1086 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)1087 UNAME_REL=`echo ${UNAME_RELEASE}| sed 's/\/MP$//'`1086 echo "$UNAME_MACHINE"-pc-msdosdjgpp 1087 exit ;; 1088 i*86:*:4.*:*) 1089 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` 1088 1090 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1089 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}1091 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" 1090 1092 else 1091 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}1093 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" 1092 1094 fi 1093 1095 exit ;; … … 1099 1101 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1100 1102 esac 1101 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}1103 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" 1102 1104 exit ;; 1103 1105 i*86:*:3.2:*) 1104 1106 if test -f /usr/options/cb.name; then 1105 1107 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1106 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL1108 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" 1107 1109 elif /bin/uname -X 2>/dev/null >/dev/null ; then 1108 1110 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` … … 1114 1116 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1115 1117 && UNAME_MACHINE=i686 1116 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL1118 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" 1117 1119 else 1118 echo ${UNAME_MACHINE}-pc-sysv321120 echo "$UNAME_MACHINE"-pc-sysv32 1119 1121 fi 1120 1122 exit ;; … … 1136 1138 i860:*:4.*:*) # i860-SVR4 1137 1139 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1138 echo i860-stardent-sysv ${UNAME_RELEASE}# Stardent Vistra i860-SVR41140 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 1139 1141 else # Add other i860-SVR4 vendors below as they are discovered. 1140 echo i860-unknown-sysv ${UNAME_RELEASE}# Unknown i860-SVR41142 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 1141 1143 fi 1142 1144 exit ;; … … 1158 1160 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1159 1161 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1160 && { echo i486-ncr-sysv4.3 ${OS_REL}; exit; }1162 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 1161 1163 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1162 && { echo i586-ncr-sysv4.3 ${OS_REL}; exit; } ;;1164 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 1163 1165 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1164 1166 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ … … 1169 1171 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1170 1172 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1171 && { echo i486-ncr-sysv4.3 ${OS_REL}; exit; }1173 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 1172 1174 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1173 && { echo i586-ncr-sysv4.3 ${OS_REL}; exit; }1175 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } 1174 1176 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1175 && { echo i586-ncr-sysv4.3 ${OS_REL}; exit; } ;;1177 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 1176 1178 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1177 echo m68k-unknown-lynxos ${UNAME_RELEASE}1179 echo m68k-unknown-lynxos"$UNAME_RELEASE" 1178 1180 exit ;; 1179 1181 mc68030:UNIX_System_V:4.*:*) … … 1181 1183 exit ;; 1182 1184 TSUNAMI:LynxOS:2.*:*) 1183 echo sparc-unknown-lynxos ${UNAME_RELEASE}1185 echo sparc-unknown-lynxos"$UNAME_RELEASE" 1184 1186 exit ;; 1185 1187 rs6000:LynxOS:2.*:*) 1186 echo rs6000-unknown-lynxos ${UNAME_RELEASE}1188 echo rs6000-unknown-lynxos"$UNAME_RELEASE" 1187 1189 exit ;; 1188 1190 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1189 echo powerpc-unknown-lynxos ${UNAME_RELEASE}1191 echo powerpc-unknown-lynxos"$UNAME_RELEASE" 1190 1192 exit ;; 1191 1193 SM[BE]S:UNIX_SV:*:*) 1192 echo mips-dde-sysv ${UNAME_RELEASE}1194 echo mips-dde-sysv"$UNAME_RELEASE" 1193 1195 exit ;; 1194 1196 RM*:ReliantUNIX-*:*:*) … … 1201 1203 if uname -p 2>/dev/null >/dev/null ; then 1202 1204 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1203 echo ${UNAME_MACHINE}-sni-sysv41205 echo "$UNAME_MACHINE"-sni-sysv4 1204 1206 else 1205 1207 echo ns32k-sni-sysv … … 1221 1223 i*86:VOS:*:*) 1222 1224 # From Paul.Green@stratus.com. 1223 echo ${UNAME_MACHINE}-stratus-vos1225 echo "$UNAME_MACHINE"-stratus-vos 1224 1226 exit ;; 1225 1227 *:VOS:*:*) … … 1228 1230 exit ;; 1229 1231 mc68*:A/UX:*:*) 1230 echo m68k-apple-aux ${UNAME_RELEASE}1232 echo m68k-apple-aux"$UNAME_RELEASE" 1231 1233 exit ;; 1232 1234 news*:NEWS-OS:6*:*) … … 1235 1237 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1236 1238 if [ -d /usr/nec ]; then 1237 echo mips-nec-sysv ${UNAME_RELEASE}1239 echo mips-nec-sysv"$UNAME_RELEASE" 1238 1240 else 1239 echo mips-unknown-sysv ${UNAME_RELEASE}1241 echo mips-unknown-sysv"$UNAME_RELEASE" 1240 1242 fi 1241 1243 exit ;; … … 1256 1258 exit ;; 1257 1259 SX-4:SUPER-UX:*:*) 1258 echo sx4-nec-superux ${UNAME_RELEASE}1260 echo sx4-nec-superux"$UNAME_RELEASE" 1259 1261 exit ;; 1260 1262 SX-5:SUPER-UX:*:*) 1261 echo sx5-nec-superux ${UNAME_RELEASE}1263 echo sx5-nec-superux"$UNAME_RELEASE" 1262 1264 exit ;; 1263 1265 SX-6:SUPER-UX:*:*) 1264 echo sx6-nec-superux ${UNAME_RELEASE}1266 echo sx6-nec-superux"$UNAME_RELEASE" 1265 1267 exit ;; 1266 1268 SX-7:SUPER-UX:*:*) 1267 echo sx7-nec-superux ${UNAME_RELEASE}1269 echo sx7-nec-superux"$UNAME_RELEASE" 1268 1270 exit ;; 1269 1271 SX-8:SUPER-UX:*:*) 1270 echo sx8-nec-superux ${UNAME_RELEASE}1272 echo sx8-nec-superux"$UNAME_RELEASE" 1271 1273 exit ;; 1272 1274 SX-8R:SUPER-UX:*:*) 1273 echo sx8r-nec-superux${UNAME_RELEASE} 1275 echo sx8r-nec-superux"$UNAME_RELEASE" 1276 exit ;; 1277 SX-ACE:SUPER-UX:*:*) 1278 echo sxace-nec-superux"$UNAME_RELEASE" 1274 1279 exit ;; 1275 1280 Power*:Rhapsody:*:*) 1276 echo powerpc-apple-rhapsody ${UNAME_RELEASE}1281 echo powerpc-apple-rhapsody"$UNAME_RELEASE" 1277 1282 exit ;; 1278 1283 *:Rhapsody:*:*) 1279 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}1284 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" 1280 1285 exit ;; 1281 1286 *:Darwin:*:*) 1282 1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1283 eval $set_cc_for_build1288 eval "$set_cc_for_build" 1284 1289 if test "$UNAME_PROCESSOR" = unknown ; then 1285 1290 UNAME_PROCESSOR=powerpc 1286 1291 fi 1287 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'`-le 10 ; then1288 if [ "$CC_FOR_BUILD" != 'no_compiler_found']; then1292 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 1293 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1289 1294 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1290 (CCOPTS=$CC_FOR_BUILD -E - 2>/dev/null) | \1291 grep IS_64BIT_ARCH >/dev/null1295 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1296 grep IS_64BIT_ARCH >/dev/null 1292 1297 then 1293 1298 case $UNAME_PROCESSOR in … … 1295 1300 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1296 1301 esac 1302 fi 1303 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1304 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1305 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1306 grep IS_PPC >/dev/null 1307 then 1308 UNAME_PROCESSOR=powerpc 1297 1309 fi 1298 1310 fi … … 1306 1318 UNAME_PROCESSOR=x86_64 1307 1319 fi 1308 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1320 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" 1309 1321 exit ;; 1310 1322 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1311 1323 UNAME_PROCESSOR=`uname -p` 1312 if test "$UNAME_PROCESSOR" = "x86"; then1324 if test "$UNAME_PROCESSOR" = x86; then 1313 1325 UNAME_PROCESSOR=i386 1314 1326 UNAME_MACHINE=pc 1315 1327 fi 1316 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1328 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" 1317 1329 exit ;; 1318 1330 *:QNX:*:4*) 1319 1331 echo i386-pc-qnx 1320 1332 exit ;; 1321 NEO- ?:NONSTOP_KERNEL:*:*)1322 echo neo-tandem-nsk ${UNAME_RELEASE}1333 NEO-*:NONSTOP_KERNEL:*:*) 1334 echo neo-tandem-nsk"$UNAME_RELEASE" 1323 1335 exit ;; 1324 1336 NSE-*:NONSTOP_KERNEL:*:*) 1325 echo nse-tandem-nsk${UNAME_RELEASE} 1326 exit ;; 1327 NSR-?:NONSTOP_KERNEL:*:*) 1328 echo nsr-tandem-nsk${UNAME_RELEASE} 1337 echo nse-tandem-nsk"$UNAME_RELEASE" 1338 exit ;; 1339 NSR-*:NONSTOP_KERNEL:*:*) 1340 echo nsr-tandem-nsk"$UNAME_RELEASE" 1341 exit ;; 1342 NSV-*:NONSTOP_KERNEL:*:*) 1343 echo nsv-tandem-nsk"$UNAME_RELEASE" 1344 exit ;; 1345 NSX-*:NONSTOP_KERNEL:*:*) 1346 echo nsx-tandem-nsk"$UNAME_RELEASE" 1329 1347 exit ;; 1330 1348 *:NonStop-UX:*:*) … … 1335 1353 exit ;; 1336 1354 DS/*:UNIX_System_V:*:*) 1337 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}1355 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" 1338 1356 exit ;; 1339 1357 *:Plan9:*:*) … … 1341 1359 # is converted to i386 for consistency with other x86 1342 1360 # operating systems. 1343 if test "$cputype" = "386"; then1361 if test "$cputype" = 386; then 1344 1362 UNAME_MACHINE=i386 1345 1363 else 1346 1364 UNAME_MACHINE="$cputype" 1347 1365 fi 1348 echo ${UNAME_MACHINE}-unknown-plan91366 echo "$UNAME_MACHINE"-unknown-plan9 1349 1367 exit ;; 1350 1368 *:TOPS-10:*:*) … … 1367 1385 exit ;; 1368 1386 SEI:*:*:SEIUX) 1369 echo mips-sei-seiux ${UNAME_RELEASE}1387 echo mips-sei-seiux"$UNAME_RELEASE" 1370 1388 exit ;; 1371 1389 *:DragonFly:*:*) 1372 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1390 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 1373 1391 exit ;; 1374 1392 *:*VMS:*:*) 1375 1393 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1376 case "$ {UNAME_MACHINE}" in1394 case "$UNAME_MACHINE" in 1377 1395 A*) echo alpha-dec-vms ; exit ;; 1378 1396 I*) echo ia64-dec-vms ; exit ;; … … 1383 1401 exit ;; 1384 1402 i*86:skyos:*:*) 1385 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'1403 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" 1386 1404 exit ;; 1387 1405 i*86:rdos:*:*) 1388 echo ${UNAME_MACHINE}-pc-rdos1406 echo "$UNAME_MACHINE"-pc-rdos 1389 1407 exit ;; 1390 1408 i*86:AROS:*:*) 1391 echo ${UNAME_MACHINE}-pc-aros1409 echo "$UNAME_MACHINE"-pc-aros 1392 1410 exit ;; 1393 1411 x86_64:VMkernel:*:*) 1394 echo ${UNAME_MACHINE}-unknown-esx 1412 echo "$UNAME_MACHINE"-unknown-esx 1413 exit ;; 1414 amd64:Isilon\ OneFS:*:*) 1415 echo x86_64-unknown-onefs 1395 1416 exit ;; 1396 1417 esac 1397 1418 1419 echo "$0: unable to guess system type" >&2 1420 1421 case "$UNAME_MACHINE:$UNAME_SYSTEM" in 1422 mips:Linux | mips64:Linux) 1423 # If we got here on MIPS GNU/Linux, output extra information. 1424 cat >&2 <<EOF 1425 1426 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize 1427 the system type. Please install a C compiler and try again. 1428 EOF 1429 ;; 1430 esac 1431 1398 1432 cat >&2 <<EOF 1399 $0: unable to guess system type 1400 1401 This script, last modified $timestamp, has failed to recognize 1402 the operating system you are using. It is advised that you 1403 download the most up to date version of the config scripts from 1404 1405 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1433 1434 This script (version $timestamp), has failed to recognize the 1435 operating system you are using. If your script is old, overwrite *all* 1436 copies of config.guess and config.sub with the latest versions from: 1437 1438 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 1406 1439 and 1407 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1408 1409 If the version you run ($0) is already up to date, please 1410 send the following data and any information you think might be 1411 pertinent to <config-patches@gnu.org> in order to provide the needed 1412 information to handle your system. 1440 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 1441 1442 If $0 has already been updated, send the following data and any 1443 information you think might be pertinent to config-patches@gnu.org to 1444 provide the necessary information to handle your system. 1413 1445 1414 1446 config.guess timestamp = $timestamp … … 1429 1461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1430 1462 1431 UNAME_MACHINE = ${UNAME_MACHINE}1432 UNAME_RELEASE = ${UNAME_RELEASE}1433 UNAME_SYSTEM = ${UNAME_SYSTEM}1434 UNAME_VERSION = ${UNAME_VERSION}1463 UNAME_MACHINE = "$UNAME_MACHINE" 1464 UNAME_RELEASE = "$UNAME_RELEASE" 1465 UNAME_SYSTEM = "$UNAME_SYSTEM" 1466 UNAME_VERSION = "$UNAME_VERSION" 1435 1467 EOF 1436 1468 … … 1438 1470 1439 1471 # Local variables: 1440 # eval: (add-hook ' write-file-hooks'time-stamp)1472 # eval: (add-hook 'before-save-hook 'time-stamp) 1441 1473 # time-stamp-start: "timestamp='" 1442 1474 # time-stamp-format: "%:y-%02m-%02d" -
config.sub
rfc5cc9a r6418c91d 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-201 5Free Software Foundation, Inc.4 5 timestamp='201 5-08-20'3 # Copyright 1992-2018 Free Software Foundation, Inc. 4 5 timestamp='2018-07-03' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 16 16 # 17 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, see <http ://www.gnu.org/licenses/>.18 # along with this program; if not, see <https://www.gnu.org/licenses/>. 19 19 # 20 20 # As a special exception to the GNU General Public License, if you … … 34 34 35 35 # You can get the latest version of this script from: 36 # http ://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD36 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 37 37 38 38 # This file is supposed to be the same for all GNU packages … … 54 54 55 55 usage="\ 56 Usage: $0 [OPTION] CPU-MFR-OPSYS 57 $0 [OPTION] ALIAS 56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS 58 57 59 58 Canonicalize a configuration name. 60 59 61 Op eration modes:60 Options: 62 61 -h, --help print this help, then exit 63 62 -t, --time-stamp print date of last modification, then exit … … 69 68 GNU config.sub ($timestamp) 70 69 71 Copyright 1992-201 5Free Software Foundation, Inc.70 Copyright 1992-2018 Free Software Foundation, Inc. 72 71 73 72 This is free software; see the source for copying conditions. There is NO … … 96 95 *local*) 97 96 # First pass through any local machine types. 98 echo $197 echo "$1" 99 98 exit ;; 100 99 … … 112 111 esac 113 112 114 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 115 # Here we must recognize all the valid KERNEL-OS combinations. 116 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 117 case $maybe_os in 118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 120 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 121 kopensolaris*-gnu* | \ 122 storm-chaos* | os2-emx* | rtmk-nova*) 123 os=-$maybe_os 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 125 ;; 126 android-linux) 127 os=-linux-android 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 129 ;; 130 *) 131 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 132 if [ $basic_machine != $1 ] 133 then os=`echo $1 | sed 's/.*-/-/'` 134 else os=; fi 135 ;; 136 esac 137 138 ### Let's recognize common machines as not being operating systems so 139 ### that things like config.sub decstation-3100 work. We also 140 ### recognize some manufacturers as not being operating systems, so we 141 ### can provide default operating systems below. 142 case $os in 143 -sun*os*) 144 # Prevent following clause from handling this invalid input. 145 ;; 146 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 147 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 148 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 149 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 150 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 151 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 152 -apple | -axis | -knuth | -cray | -microblaze*) 153 os= 154 basic_machine=$1 155 ;; 156 -bluegene*) 157 os=-cnk 158 ;; 159 -sim | -cisco | -oki | -wec | -winbond) 160 os= 161 basic_machine=$1 162 ;; 163 -scout) 164 ;; 165 -wrs) 166 os=-vxworks 167 basic_machine=$1 168 ;; 169 -chorusos*) 170 os=-chorusos 171 basic_machine=$1 172 ;; 173 -chorusrdb) 174 os=-chorusrdb 175 basic_machine=$1 176 ;; 177 -hiux*) 178 os=-hiuxwe2 179 ;; 180 -sco6) 181 os=-sco5v6 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 183 ;; 184 -sco5) 185 os=-sco3.2v5 186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 187 ;; 188 -sco4) 189 os=-sco3.2v4 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 191 ;; 192 -sco3.2.[4-9]*) 193 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 195 ;; 196 -sco3.2v[4-9]*) 197 # Don't forget version if it is 3.2v4 or newer. 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 199 ;; 200 -sco5v6*) 201 # Don't forget version if it is 3.2v4 or newer. 202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 203 ;; 204 -sco*) 205 os=-sco3.2v2 206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 207 ;; 208 -udk*) 209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 210 ;; 211 -isc) 212 os=-isc2.2 213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 214 ;; 215 -clix*) 216 basic_machine=clipper-intergraph 217 ;; 218 -isc*) 219 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 220 ;; 221 -lynx*178) 222 os=-lynxos178 223 ;; 224 -lynx*5) 225 os=-lynxos5 226 ;; 227 -lynx*) 228 os=-lynxos 229 ;; 230 -ptx*) 231 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 232 ;; 233 -windowsnt*) 234 os=`echo $os | sed -e 's/windowsnt/winnt/'` 235 ;; 236 -psos*) 237 os=-psos 238 ;; 239 -mint | -mint[0-9]*) 240 basic_machine=m68k-atari 241 os=-mint 113 # Split fields of configuration type 114 IFS="-" read -r field1 field2 field3 field4 <<EOF 115 $1 116 EOF 117 118 # Separate into logical components for further validation 119 case $1 in 120 *-*-*-*-*) 121 echo Invalid configuration \`"$1"\': more than four components >&2 122 exit 1 123 ;; 124 *-*-*-*) 125 basic_machine=$field1-$field2 126 os=$field3-$field4 127 ;; 128 *-*-*) 129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two 130 # parts 131 maybe_os=$field2-$field3 132 case $maybe_os in 133 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ 134 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ 135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ 136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ 137 | storm-chaos* | os2-emx* | rtmk-nova*) 138 basic_machine=$field1 139 os=$maybe_os 140 ;; 141 android-linux) 142 basic_machine=$field1-unknown 143 os=linux-android 144 ;; 145 *) 146 basic_machine=$field1-$field2 147 os=$field3 148 ;; 149 esac 150 ;; 151 *-*) 152 # Second component is usually, but not always the OS 153 case $field2 in 154 # Prevent following clause from handling this valid os 155 sun*os*) 156 basic_machine=$field1 157 os=$field2 158 ;; 159 # Manufacturers 160 dec* | mips* | sequent* | encore* | pc532* | sgi* | sony* \ 161 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ 162 | unicom* | ibm* | next | hp | isi* | apollo | altos* \ 163 | convergent* | ncr* | news | 32* | 3600* | 3100* | hitachi* \ 164 | c[123]* | convex* | sun | crds | omron* | dg | ultra | tti* \ 165 | harris | dolphin | highlevel | gould | cbm | ns | masscomp \ 166 | apple | axis | knuth | cray | microblaze* \ 167 | sim | cisco | oki | wec | wrs | winbond) 168 basic_machine=$field1-$field2 169 os= 170 ;; 171 *) 172 basic_machine=$field1 173 os=$field2 174 ;; 175 esac 176 ;; 177 *) 178 # Convert single-component short-hands not valid as part of 179 # multi-component configurations. 180 case $field1 in 181 386bsd) 182 basic_machine=i386-pc 183 os=bsd 184 ;; 185 a29khif) 186 basic_machine=a29k-amd 187 os=udi 188 ;; 189 adobe68k) 190 basic_machine=m68010-adobe 191 os=scout 192 ;; 193 am29k) 194 basic_machine=a29k-none 195 os=bsd 196 ;; 197 amdahl) 198 basic_machine=580-amdahl 199 os=sysv 200 ;; 201 amigaos | amigados) 202 basic_machine=m68k-unknown 203 os=amigaos 204 ;; 205 amigaunix | amix) 206 basic_machine=m68k-unknown 207 os=sysv4 208 ;; 209 apollo68) 210 basic_machine=m68k-apollo 211 os=sysv 212 ;; 213 apollo68bsd) 214 basic_machine=m68k-apollo 215 os=bsd 216 ;; 217 aros) 218 basic_machine=i386-pc 219 os=aros 220 ;; 221 aux) 222 basic_machine=m68k-apple 223 os=aux 224 ;; 225 balance) 226 basic_machine=ns32k-sequent 227 os=dynix 228 ;; 229 blackfin) 230 basic_machine=bfin-unknown 231 os=linux 232 ;; 233 cegcc) 234 basic_machine=arm-unknown 235 os=cegcc 236 ;; 237 cray) 238 basic_machine=j90-cray 239 os=unicos 240 ;; 241 craynv) 242 basic_machine=craynv-cray 243 os=unicosmp 244 ;; 245 delta88) 246 basic_machine=m88k-motorola 247 os=sysv3 248 ;; 249 dicos) 250 basic_machine=i686-pc 251 os=dicos 252 ;; 253 djgpp) 254 basic_machine=i586-pc 255 os=msdosdjgpp 256 ;; 257 ebmon29k) 258 basic_machine=a29k-amd 259 os=ebmon 260 ;; 261 es1800 | OSE68k | ose68k | ose | OSE) 262 basic_machine=m68k-ericsson 263 os=ose 264 ;; 265 gmicro) 266 basic_machine=tron-gmicro 267 os=sysv 268 ;; 269 go32) 270 basic_machine=i386-pc 271 os=go32 272 ;; 273 h8300hms) 274 basic_machine=h8300-hitachi 275 os=hms 276 ;; 277 h8300xray) 278 basic_machine=h8300-hitachi 279 os=xray 280 ;; 281 h8500hms) 282 basic_machine=h8500-hitachi 283 os=hms 284 ;; 285 harris) 286 basic_machine=m88k-harris 287 os=sysv3 288 ;; 289 hp300bsd) 290 basic_machine=m68k-hp 291 os=bsd 292 ;; 293 hp300hpux) 294 basic_machine=m68k-hp 295 os=hpux 296 ;; 297 hppaosf) 298 basic_machine=hppa1.1-hp 299 os=osf 300 ;; 301 hppro) 302 basic_machine=hppa1.1-hp 303 os=proelf 304 ;; 305 i386mach) 306 basic_machine=i386-mach 307 os=mach 308 ;; 309 vsta) 310 basic_machine=i386-unknown 311 os=vsta 312 ;; 313 isi68 | isi) 314 basic_machine=m68k-isi 315 os=sysv 316 ;; 317 m68knommu) 318 basic_machine=m68k-unknown 319 os=linux 320 ;; 321 magnum | m3230) 322 basic_machine=mips-mips 323 os=sysv 324 ;; 325 merlin) 326 basic_machine=ns32k-utek 327 os=sysv 328 ;; 329 mingw64) 330 basic_machine=x86_64-pc 331 os=mingw64 332 ;; 333 mingw32) 334 basic_machine=i686-pc 335 os=mingw32 336 ;; 337 mingw32ce) 338 basic_machine=arm-unknown 339 os=mingw32ce 340 ;; 341 monitor) 342 basic_machine=m68k-rom68k 343 os=coff 344 ;; 345 morphos) 346 basic_machine=powerpc-unknown 347 os=morphos 348 ;; 349 moxiebox) 350 basic_machine=moxie-unknown 351 os=moxiebox 352 ;; 353 msdos) 354 basic_machine=i386-pc 355 os=msdos 356 ;; 357 msys) 358 basic_machine=i686-pc 359 os=msys 360 ;; 361 mvs) 362 basic_machine=i370-ibm 363 os=mvs 364 ;; 365 nacl) 366 basic_machine=le32-unknown 367 os=nacl 368 ;; 369 ncr3000) 370 basic_machine=i486-ncr 371 os=sysv4 372 ;; 373 netbsd386) 374 basic_machine=i386-unknown 375 os=netbsd 376 ;; 377 netwinder) 378 basic_machine=armv4l-rebel 379 os=linux 380 ;; 381 news | news700 | news800 | news900) 382 basic_machine=m68k-sony 383 os=newsos 384 ;; 385 news1000) 386 basic_machine=m68030-sony 387 os=newsos 388 ;; 389 necv70) 390 basic_machine=v70-nec 391 os=sysv 392 ;; 393 nh3000) 394 basic_machine=m68k-harris 395 os=cxux 396 ;; 397 nh[45]000) 398 basic_machine=m88k-harris 399 os=cxux 400 ;; 401 nindy960) 402 basic_machine=i960-intel 403 os=nindy 404 ;; 405 mon960) 406 basic_machine=i960-intel 407 os=mon960 408 ;; 409 nonstopux) 410 basic_machine=mips-compaq 411 os=nonstopux 412 ;; 413 os400) 414 basic_machine=powerpc-ibm 415 os=os400 416 ;; 417 OSE68000 | ose68000) 418 basic_machine=m68000-ericsson 419 os=ose 420 ;; 421 os68k) 422 basic_machine=m68k-none 423 os=os68k 424 ;; 425 paragon) 426 basic_machine=i860-intel 427 os=osf 428 ;; 429 parisc) 430 basic_machine=hppa-unknown 431 os=linux 432 ;; 433 pw32) 434 basic_machine=i586-unknown 435 os=pw32 436 ;; 437 rdos | rdos64) 438 basic_machine=x86_64-pc 439 os=rdos 440 ;; 441 rdos32) 442 basic_machine=i386-pc 443 os=rdos 444 ;; 445 rom68k) 446 basic_machine=m68k-rom68k 447 os=coff 448 ;; 449 sa29200) 450 basic_machine=a29k-amd 451 os=udi 452 ;; 453 sei) 454 basic_machine=mips-sei 455 os=seiux 456 ;; 457 sps7) 458 basic_machine=m68k-bull 459 os=sysv2 460 ;; 461 stratus) 462 basic_machine=i860-stratus 463 os=sysv4 464 ;; 465 sun2os3) 466 basic_machine=m68000-sun 467 os=sunos3 468 ;; 469 sun2os4) 470 basic_machine=m68000-sun 471 os=sunos4 472 ;; 473 sun3os3) 474 basic_machine=m68k-sun 475 os=sunos3 476 ;; 477 sun3os4) 478 basic_machine=m68k-sun 479 os=sunos4 480 ;; 481 sun4os3) 482 basic_machine=sparc-sun 483 os=sunos3 484 ;; 485 sun4os4) 486 basic_machine=sparc-sun 487 os=sunos4 488 ;; 489 sun4sol2) 490 basic_machine=sparc-sun 491 os=solaris2 492 ;; 493 sv1) 494 basic_machine=sv1-cray 495 os=unicos 496 ;; 497 symmetry) 498 basic_machine=i386-sequent 499 os=dynix 500 ;; 501 t3e) 502 basic_machine=alphaev5-cray 503 os=unicos 504 ;; 505 t90) 506 basic_machine=t90-cray 507 os=unicos 508 ;; 509 toad1) 510 basic_machine=pdp10-xkl 511 os=tops20 512 ;; 513 tpf) 514 basic_machine=s390x-ibm 515 os=tpf 516 ;; 517 udi29k) 518 basic_machine=a29k-amd 519 os=udi 520 ;; 521 ultra3) 522 basic_machine=a29k-nyu 523 os=sym1 524 ;; 525 v810 | necv810) 526 basic_machine=v810-nec 527 os=none 528 ;; 529 vaxv) 530 basic_machine=vax-dec 531 os=sysv 532 ;; 533 vms) 534 basic_machine=vax-dec 535 os=vms 536 ;; 537 vxworks960) 538 basic_machine=i960-wrs 539 os=vxworks 540 ;; 541 vxworks68) 542 basic_machine=m68k-wrs 543 os=vxworks 544 ;; 545 vxworks29k) 546 basic_machine=a29k-wrs 547 os=vxworks 548 ;; 549 xbox) 550 basic_machine=i686-pc 551 os=mingw32 552 ;; 553 ymp) 554 basic_machine=ymp-cray 555 os=unicos 556 ;; 557 *) 558 basic_machine=$1 559 os= 560 ;; 561 esac 242 562 ;; 243 563 esac … … 254 574 | am33_2.0 \ 255 575 | arc | arceb \ 256 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv 7[arm] \576 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \ 257 577 | avr | avr32 \ 258 578 | ba \ 259 579 | be32 | be64 \ 260 580 | bfin \ 261 | c4x | c8051 | clipper \581 | c4x | c8051 | clipper | csky \ 262 582 | d10v | d30v | dlx | dsp16xx \ 263 583 | e2k | epiphany \ … … 265 585 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 266 586 | hexagon \ 267 | i370 | i860 | i960 | ia 64 \587 | i370 | i860 | i960 | ia16 | ia64 \ 268 588 | ip2k | iq2000 \ 269 589 | k1om \ … … 298 618 | msp430 \ 299 619 | nds32 | nds32le | nds32be \ 620 | nfp \ 300 621 | nios | nios2 | nios2eb | nios2el \ 301 622 | ns16k | ns32k \ 302 623 | open8 | or1k | or1knd | or32 \ 303 | pdp10 | p dp11 | pj | pjl \624 | pdp10 | pj | pjl \ 304 625 | powerpc | powerpc64 | powerpc64le | powerpcle \ 626 | pru \ 305 627 | pyramid \ 306 | riscv 32 | riscv64 \628 | riscv | riscv32 | riscv64 \ 307 629 | rl78 | rx \ 308 630 | score \ … … 316 638 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 317 639 | visium \ 318 | w e32k\640 | wasm32 \ 319 641 | x86 | xc16x | xstormy16 | xtensa \ 320 642 | z8k | z80) … … 335 657 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 336 658 basic_machine=$basic_machine-unknown 337 os=-none 338 ;; 339 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 659 os=${os:-none} 660 ;; 661 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) 662 ;; 663 m9s12z | m68hcs12z | hcs12z | s12z) 664 basic_machine=s12z-unknown 665 os=${os:-none} 340 666 ;; 341 667 ms1) 342 668 basic_machine=mt-unknown 343 669 ;; 344 345 670 strongarm | thumb | xscale) 346 671 basic_machine=arm-unknown … … 348 673 xgate) 349 674 basic_machine=$basic_machine-unknown 350 os= -none675 os=${os:-none} 351 676 ;; 352 677 xscaleeb) … … 364 689 basic_machine=$basic_machine-pc 365 690 ;; 366 # Object if more than one company name word.367 *-*-*)368 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2369 exit 1370 ;;371 691 # Recognize the basic CPU types with company name. 372 692 580-* \ … … 382 702 | bfin-* | bs2000-* \ 383 703 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 384 | c8051-* | clipper-* | craynv-* | c ydra-* \704 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ 385 705 | d10v-* | d30v-* | dlx-* \ 386 706 | e2k-* | elxsi-* \ … … 389 709 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 390 710 | hexagon-* \ 391 | i*86-* | i860-* | i960-* | ia 64-* \711 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ 392 712 | ip2k-* | iq2000-* \ 393 713 | k1om-* \ … … 423 743 | msp430-* \ 424 744 | nds32-* | nds32le-* | nds32be-* \ 745 | nfp-* \ 425 746 | nios-* | nios2-* | nios2eb-* | nios2el-* \ 426 747 | none-* | np1-* | ns16k-* | ns32k-* \ … … 430 751 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 431 752 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 753 | pru-* \ 432 754 | pyramid-* \ 433 | riscv 32-* | riscv64-* \755 | riscv-* | riscv32-* | riscv64-* \ 434 756 | rl78-* | romp-* | rs6000-* | rx-* \ 435 757 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ … … 446 768 | vax-* \ 447 769 | visium-* \ 770 | wasm32-* \ 448 771 | we32k-* \ 449 772 | x86-* | x86_64-* | xc16x-* | xps100-* \ … … 458 781 # Recognize the various machine names and aliases which stand 459 782 # for a CPU type and a company and sometimes even an OS. 460 386bsd)461 basic_machine=i386-unknown462 os=-bsd463 ;;464 783 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 465 784 basic_machine=m68000-att … … 468 787 basic_machine=we32k-att 469 788 ;; 470 a29khif)471 basic_machine=a29k-amd472 os=-udi473 ;;474 789 abacus) 475 790 basic_machine=abacus-unknown 476 791 ;; 477 adobe68k)478 basic_machine=m68010-adobe479 os=-scout480 ;;481 792 alliant | fx80) 482 793 basic_machine=fx80-alliant … … 485 796 basic_machine=m68k-altos 486 797 ;; 487 am29k)488 basic_machine=a29k-none489 os=-bsd490 ;;491 798 amd64) 492 799 basic_machine=x86_64-pc 493 800 ;; 494 801 amd64-*) 495 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 496 ;; 497 amdahl) 498 basic_machine=580-amdahl 499 os=-sysv 802 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 500 803 ;; 501 804 amiga | amiga-*) 502 805 basic_machine=m68k-unknown 503 806 ;; 504 amigaos | amigados) 505 basic_machine=m68k-unknown 506 os=-amigaos 507 ;; 508 amigaunix | amix) 509 basic_machine=m68k-unknown 510 os=-sysv4 511 ;; 512 apollo68) 513 basic_machine=m68k-apollo 514 os=-sysv 515 ;; 516 apollo68bsd) 517 basic_machine=m68k-apollo 518 os=-bsd 519 ;; 520 aros) 521 basic_machine=i386-pc 522 os=-aros 523 ;; 524 asmjs) 807 asmjs) 525 808 basic_machine=asmjs-unknown 526 809 ;; 527 aux)528 basic_machine=m68k-apple529 os=-aux530 ;;531 balance)532 basic_machine=ns32k-sequent533 os=-dynix534 ;;535 blackfin)536 basic_machine=bfin-unknown537 os=-linux538 ;;539 810 blackfin-*) 540 basic_machine=bfin-`echo $basic_machine| sed 's/^[^-]*-//'`541 os= -linux811 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` 812 os=linux 542 813 ;; 543 814 bluegene*) 544 815 basic_machine=powerpc-ibm 545 os= -cnk816 os=cnk 546 817 ;; 547 818 c54x-*) 548 basic_machine=tic54x-`echo $basic_machine| sed 's/^[^-]*-//'`819 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` 549 820 ;; 550 821 c55x-*) 551 basic_machine=tic55x-`echo $basic_machine| sed 's/^[^-]*-//'`822 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` 552 823 ;; 553 824 c6x-*) 554 basic_machine=tic6x-`echo $basic_machine| sed 's/^[^-]*-//'`825 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` 555 826 ;; 556 827 c90) 557 828 basic_machine=c90-cray 558 os=-unicos 559 ;; 560 cegcc) 561 basic_machine=arm-unknown 562 os=-cegcc 829 os=${os:-unicos} 563 830 ;; 564 831 convex-c1) 565 832 basic_machine=c1-convex 566 os= -bsd833 os=bsd 567 834 ;; 568 835 convex-c2) 569 836 basic_machine=c2-convex 570 os= -bsd837 os=bsd 571 838 ;; 572 839 convex-c32) 573 840 basic_machine=c32-convex 574 os= -bsd841 os=bsd 575 842 ;; 576 843 convex-c34) 577 844 basic_machine=c34-convex 578 os= -bsd845 os=bsd 579 846 ;; 580 847 convex-c38) 581 848 basic_machine=c38-convex 582 os=-bsd 583 ;; 584 cray | j90) 585 basic_machine=j90-cray 586 os=-unicos 587 ;; 588 craynv) 589 basic_machine=craynv-cray 590 os=-unicosmp 849 os=bsd 591 850 ;; 592 851 cr16 | cr16-*) 593 852 basic_machine=cr16-unknown 594 os= -elf853 os=${os:-elf} 595 854 ;; 596 855 crds | unos) … … 605 864 crx) 606 865 basic_machine=crx-unknown 607 os= -elf866 os=${os:-elf} 608 867 ;; 609 868 da30 | da30-*) … … 615 874 decsystem10* | dec10*) 616 875 basic_machine=pdp10-dec 617 os= -tops10876 os=tops10 618 877 ;; 619 878 decsystem20* | dec20*) 620 879 basic_machine=pdp10-dec 621 os= -tops20880 os=tops20 622 881 ;; 623 882 delta | 3300 | motorola-3300 | motorola-delta \ … … 625 884 basic_machine=m68k-motorola 626 885 ;; 627 delta88)628 basic_machine=m88k-motorola629 os=-sysv3630 ;;631 dicos)632 basic_machine=i686-pc633 os=-dicos634 ;;635 djgpp)636 basic_machine=i586-pc637 os=-msdosdjgpp638 ;;639 886 dpx20 | dpx20-*) 640 887 basic_machine=rs6000-bull 641 os= -bosx642 ;; 643 dpx2* | dpx2*-bull)888 os=${os:-bosx} 889 ;; 890 dpx2*) 644 891 basic_machine=m68k-bull 645 os=-sysv3 646 ;; 647 ebmon29k) 648 basic_machine=a29k-amd 649 os=-ebmon 892 os=sysv3 893 ;; 894 e500v[12]) 895 basic_machine=powerpc-unknown 896 os=$os"spe" 897 ;; 898 e500v[12]-*) 899 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 900 os=$os"spe" 901 ;; 902 encore | umax | mmax) 903 basic_machine=ns32k-encore 650 904 ;; 651 905 elxsi) 652 906 basic_machine=elxsi-elxsi 653 os=-bsd 654 ;; 655 encore | umax | mmax) 656 basic_machine=ns32k-encore 657 ;; 658 es1800 | OSE68k | ose68k | ose | OSE) 659 basic_machine=m68k-ericsson 660 os=-ose 907 os=${os:-bsd} 661 908 ;; 662 909 fx2800) … … 666 913 basic_machine=ns32k-ns 667 914 ;; 668 gmicro)669 basic_machine=tron-gmicro670 os=-sysv671 ;;672 go32)673 basic_machine=i386-pc674 os=-go32675 ;;676 915 h3050r* | hiux*) 677 916 basic_machine=hppa1.1-hitachi 678 os=-hiuxwe2 679 ;; 680 h8300hms) 681 basic_machine=h8300-hitachi 682 os=-hms 683 ;; 684 h8300xray) 685 basic_machine=h8300-hitachi 686 os=-xray 687 ;; 688 h8500hms) 689 basic_machine=h8500-hitachi 690 os=-hms 691 ;; 692 harris) 693 basic_machine=m88k-harris 694 os=-sysv3 917 os=hiuxwe2 695 918 ;; 696 919 hp300-*) 697 920 basic_machine=m68k-hp 698 ;;699 hp300bsd)700 basic_machine=m68k-hp701 os=-bsd702 ;;703 hp300hpux)704 basic_machine=m68k-hp705 os=-hpux706 921 ;; 707 922 hp3k9[0-9][0-9] | hp9[0-9][0-9]) … … 734 949 basic_machine=hppa1.0-hp 735 950 ;; 736 hppa-next)737 os=-nextstep3738 ;;739 hppaosf)740 basic_machine=hppa1.1-hp741 os=-osf742 ;;743 hppro)744 basic_machine=hppa1.1-hp745 os=-proelf746 ;;747 951 i370-ibm* | ibm*) 748 952 basic_machine=i370-ibm 749 953 ;; 750 954 i*86v32) 751 basic_machine=`echo $1| sed -e 's/86.*/86-pc/'`752 os= -sysv32955 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 956 os=sysv32 753 957 ;; 754 958 i*86v4*) 755 basic_machine=`echo $1| sed -e 's/86.*/86-pc/'`756 os= -sysv4959 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 960 os=sysv4 757 961 ;; 758 962 i*86v) 759 basic_machine=`echo $1| sed -e 's/86.*/86-pc/'`760 os= -sysv963 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 964 os=sysv 761 965 ;; 762 966 i*86sol2) 763 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 764 os=-solaris2 765 ;; 766 i386mach) 767 basic_machine=i386-mach 768 os=-mach 769 ;; 770 i386-vsta | vsta) 771 basic_machine=i386-unknown 772 os=-vsta 967 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 968 os=solaris2 969 ;; 970 j90 | j90-cray) 971 basic_machine=j90-cray 972 os=${os:-unicos} 773 973 ;; 774 974 iris | iris4d) 775 975 basic_machine=mips-sgi 776 976 case $os in 777 -irix*)977 irix*) 778 978 ;; 779 979 *) 780 os= -irix4980 os=irix4 781 981 ;; 782 982 esac 783 983 ;; 784 isi68 | isi)785 basic_machine=m68k-isi786 os=-sysv787 ;;788 984 leon-*|leon[3-9]-*) 789 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` 790 ;; 791 m68knommu) 792 basic_machine=m68k-unknown 793 os=-linux 985 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` 794 986 ;; 795 987 m68knommu-*) 796 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 797 os=-linux 798 ;; 799 m88k-omron*) 800 basic_machine=m88k-omron 801 ;; 802 magnum | m3230) 803 basic_machine=mips-mips 804 os=-sysv 805 ;; 806 merlin) 807 basic_machine=ns32k-utek 808 os=-sysv 988 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` 989 os=linux 809 990 ;; 810 991 microblaze*) 811 992 basic_machine=microblaze-xilinx 812 993 ;; 813 mingw64)814 basic_machine=x86_64-pc815 os=-mingw64816 ;;817 mingw32)818 basic_machine=i686-pc819 os=-mingw32820 ;;821 mingw32ce)822 basic_machine=arm-unknown823 os=-mingw32ce824 ;;825 994 miniframe) 826 995 basic_machine=m68000-convergent 827 996 ;; 828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)997 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) 829 998 basic_machine=m68k-atari 830 os= -mint999 os=mint 831 1000 ;; 832 1001 mips3*-*) 833 basic_machine=`echo $basic_machine| sed -e 's/mips3/mips64/'`1002 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` 834 1003 ;; 835 1004 mips3*) 836 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 837 ;; 838 monitor) 839 basic_machine=m68k-rom68k 840 os=-coff 841 ;; 842 morphos) 843 basic_machine=powerpc-unknown 844 os=-morphos 845 ;; 846 moxiebox) 847 basic_machine=moxie-unknown 848 os=-moxiebox 849 ;; 850 msdos) 851 basic_machine=i386-pc 852 os=-msdos 1005 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown 853 1006 ;; 854 1007 ms1-*) 855 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 856 ;; 857 msys) 858 basic_machine=i686-pc 859 os=-msys 860 ;; 861 mvs) 862 basic_machine=i370-ibm 863 os=-mvs 864 ;; 865 nacl) 866 basic_machine=le32-unknown 867 os=-nacl 868 ;; 869 ncr3000) 870 basic_machine=i486-ncr 871 os=-sysv4 872 ;; 873 netbsd386) 874 basic_machine=i386-unknown 875 os=-netbsd 876 ;; 877 netwinder) 878 basic_machine=armv4l-rebel 879 os=-linux 880 ;; 881 news | news700 | news800 | news900) 882 basic_machine=m68k-sony 883 os=-newsos 884 ;; 885 news1000) 886 basic_machine=m68030-sony 887 os=-newsos 1008 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` 888 1009 ;; 889 1010 news-3600 | risc-news) 890 1011 basic_machine=mips-sony 891 os=-newsos 892 ;; 893 necv70) 894 basic_machine=v70-nec 895 os=-sysv 896 ;; 897 next | m*-next ) 1012 os=newsos 1013 ;; 1014 next | m*-next) 898 1015 basic_machine=m68k-next 899 1016 case $os in 900 -nextstep* )1017 nextstep* ) 901 1018 ;; 902 -ns2*)903 os= -nextstep21019 ns2*) 1020 os=nextstep2 904 1021 ;; 905 1022 *) 906 os= -nextstep31023 os=nextstep3 907 1024 ;; 908 1025 esac 909 1026 ;; 910 nh3000)911 basic_machine=m68k-harris912 os=-cxux913 ;;914 nh[45]000)915 basic_machine=m88k-harris916 os=-cxux917 ;;918 nindy960)919 basic_machine=i960-intel920 os=-nindy921 ;;922 mon960)923 basic_machine=i960-intel924 os=-mon960925 ;;926 nonstopux)927 basic_machine=mips-compaq928 os=-nonstopux929 ;;930 1027 np1) 931 1028 basic_machine=np1-gould … … 940 1037 basic_machine=nsr-tandem 941 1038 ;; 1039 nsv-tandem) 1040 basic_machine=nsv-tandem 1041 ;; 1042 nsx-tandem) 1043 basic_machine=nsx-tandem 1044 ;; 942 1045 op50n-* | op60c-*) 943 1046 basic_machine=hppa1.1-oki 944 os= -proelf1047 os=proelf 945 1048 ;; 946 1049 openrisc | openrisc-*) 947 1050 basic_machine=or32-unknown 948 1051 ;; 949 os400)950 basic_machine=powerpc-ibm951 os=-os400952 ;;953 OSE68000 | ose68000)954 basic_machine=m68000-ericsson955 os=-ose956 ;;957 os68k)958 basic_machine=m68k-none959 os=-os68k960 ;;961 1052 pa-hitachi) 962 1053 basic_machine=hppa1.1-hitachi 963 os=-hiuxwe2 964 ;; 965 paragon) 966 basic_machine=i860-intel 967 os=-osf 968 ;; 969 parisc) 970 basic_machine=hppa-unknown 971 os=-linux 1054 os=hiuxwe2 972 1055 ;; 973 1056 parisc-*) 974 basic_machine=hppa-`echo $basic_machine| sed 's/^[^-]*-//'`975 os= -linux1057 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1058 os=linux 976 1059 ;; 977 1060 pbd) … … 988 1071 ;; 989 1072 pc98-*) 990 basic_machine=i386-`echo $basic_machine| sed 's/^[^-]*-//'`1073 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` 991 1074 ;; 992 1075 pentium | p5 | k5 | k6 | nexgen | viac3) … … 1003 1086 ;; 1004 1087 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1005 basic_machine=i586-`echo $basic_machine| sed 's/^[^-]*-//'`1088 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1006 1089 ;; 1007 1090 pentiumpro-* | p6-* | 6x86-* | athlon-*) 1008 basic_machine=i686-`echo $basic_machine| sed 's/^[^-]*-//'`1091 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1009 1092 ;; 1010 1093 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1011 basic_machine=i686-`echo $basic_machine| sed 's/^[^-]*-//'`1094 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1012 1095 ;; 1013 1096 pentium4-*) 1014 basic_machine=i786-`echo $basic_machine| sed 's/^[^-]*-//'`1097 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1015 1098 ;; 1016 1099 pn) … … 1022 1105 ;; 1023 1106 ppc-* | ppcbe-*) 1024 basic_machine=powerpc-`echo $basic_machine| sed 's/^[^-]*-//'`1025 ;; 1026 ppcle | powerpclittle | ppc-le | powerpc-little)1107 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1108 ;; 1109 ppcle | powerpclittle) 1027 1110 basic_machine=powerpcle-unknown 1028 1111 ;; 1029 1112 ppcle-* | powerpclittle-*) 1030 basic_machine=powerpcle-`echo $basic_machine| sed 's/^[^-]*-//'`1113 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1031 1114 ;; 1032 1115 ppc64) basic_machine=powerpc64-unknown 1033 1116 ;; 1034 ppc64-*) basic_machine=powerpc64-`echo $basic_machine| sed 's/^[^-]*-//'`1035 ;; 1036 ppc64le | powerpc64little | ppc64-le | powerpc64-little)1117 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1118 ;; 1119 ppc64le | powerpc64little) 1037 1120 basic_machine=powerpc64le-unknown 1038 1121 ;; 1039 1122 ppc64le-* | powerpc64little-*) 1040 basic_machine=powerpc64le-`echo $basic_machine| sed 's/^[^-]*-//'`1123 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1041 1124 ;; 1042 1125 ps2) 1043 1126 basic_machine=i386-ibm 1044 1127 ;; 1045 pw32)1046 basic_machine=i586-unknown1047 os=-pw321048 ;;1049 rdos | rdos64)1050 basic_machine=x86_64-pc1051 os=-rdos1052 ;;1053 rdos32)1054 basic_machine=i386-pc1055 os=-rdos1056 ;;1057 rom68k)1058 basic_machine=m68k-rom68k1059 os=-coff1060 ;;1061 1128 rm[46]00) 1062 1129 basic_machine=mips-siemens … … 1071 1138 basic_machine=s390x-ibm 1072 1139 ;; 1073 sa29200)1074 basic_machine=a29k-amd1075 os=-udi1076 ;;1077 1140 sb1) 1078 1141 basic_machine=mipsisa64sb1-unknown … … 1083 1146 sde) 1084 1147 basic_machine=mipsisa32-sde 1085 os=-elf 1086 ;; 1087 sei) 1088 basic_machine=mips-sei 1089 os=-seiux 1148 os=${os:-elf} 1090 1149 ;; 1091 1150 sequent) 1092 1151 basic_machine=i386-sequent 1093 1152 ;; 1094 sh)1095 basic_machine=sh-hitachi1096 os=-hms1097 ;;1098 1153 sh5el) 1099 1154 basic_machine=sh5le-unknown 1100 1155 ;; 1101 sh64) 1102 basic_machine=sh64-unknown 1103 ;; 1104 sparclite-wrs | simso-wrs) 1156 simso-wrs) 1105 1157 basic_machine=sparclite-wrs 1106 os=-vxworks 1107 ;; 1108 sps7) 1109 basic_machine=m68k-bull 1110 os=-sysv2 1158 os=vxworks 1111 1159 ;; 1112 1160 spur) … … 1116 1164 basic_machine=m68k-tandem 1117 1165 ;; 1118 stratus)1119 basic_machine=i860-stratus1120 os=-sysv41121 ;;1122 1166 strongarm-* | thumb-*) 1123 basic_machine=arm-`echo $basic_machine| sed 's/^[^-]*-//'`1167 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1124 1168 ;; 1125 1169 sun2) 1126 1170 basic_machine=m68000-sun 1127 1171 ;; 1128 sun2os3)1129 basic_machine=m68000-sun1130 os=-sunos31131 ;;1132 sun2os4)1133 basic_machine=m68000-sun1134 os=-sunos41135 ;;1136 sun3os3)1137 basic_machine=m68k-sun1138 os=-sunos31139 ;;1140 sun3os4)1141 basic_machine=m68k-sun1142 os=-sunos41143 ;;1144 sun4os3)1145 basic_machine=sparc-sun1146 os=-sunos31147 ;;1148 sun4os4)1149 basic_machine=sparc-sun1150 os=-sunos41151 ;;1152 sun4sol2)1153 basic_machine=sparc-sun1154 os=-solaris21155 ;;1156 1172 sun3 | sun3-*) 1157 1173 basic_machine=m68k-sun … … 1163 1179 basic_machine=i386-sun 1164 1180 ;; 1165 sv1)1166 basic_machine=sv1-cray1167 os=-unicos1168 ;;1169 symmetry)1170 basic_machine=i386-sequent1171 os=-dynix1172 ;;1173 t3e)1174 basic_machine=alphaev5-cray1175 os=-unicos1176 ;;1177 t90)1178 basic_machine=t90-cray1179 os=-unicos1180 ;;1181 1181 tile*) 1182 1182 basic_machine=$basic_machine-unknown 1183 os= -linux-gnu1183 os=linux-gnu 1184 1184 ;; 1185 1185 tx39) … … 1189 1189 basic_machine=mipstx39el-unknown 1190 1190 ;; 1191 toad1)1192 basic_machine=pdp10-xkl1193 os=-tops201194 ;;1195 1191 tower | tower-32) 1196 1192 basic_machine=m68k-ncr 1197 1193 ;; 1198 tpf)1199 basic_machine=s390x-ibm1200 os=-tpf1201 ;;1202 udi29k)1203 basic_machine=a29k-amd1204 os=-udi1205 ;;1206 ultra3)1207 basic_machine=a29k-nyu1208 os=-sym11209 ;;1210 v810 | necv810)1211 basic_machine=v810-nec1212 os=-none1213 ;;1214 vaxv)1215 basic_machine=vax-dec1216 os=-sysv1217 ;;1218 vms)1219 basic_machine=vax-dec1220 os=-vms1221 ;;1222 1194 vpp*|vx|vx-*) 1223 1195 basic_machine=f301-fujitsu 1224 1196 ;; 1225 vxworks960)1226 basic_machine=i960-wrs1227 os=-vxworks1228 ;;1229 vxworks68)1230 basic_machine=m68k-wrs1231 os=-vxworks1232 ;;1233 vxworks29k)1234 basic_machine=a29k-wrs1235 os=-vxworks1236 ;;1237 1197 w65*) 1238 1198 basic_machine=w65-wdc 1239 os= -none1199 os=none 1240 1200 ;; 1241 1201 w89k-*) 1242 1202 basic_machine=hppa1.1-winbond 1243 os=-proelf 1244 ;; 1245 xbox) 1246 basic_machine=i686-pc 1247 os=-mingw32 1203 os=proelf 1204 ;; 1205 x64) 1206 basic_machine=x86_64-pc 1248 1207 ;; 1249 1208 xps | xps100) … … 1251 1210 ;; 1252 1211 xscale-* | xscalee[bl]-*) 1253 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 1254 ;; 1255 ymp) 1256 basic_machine=ymp-cray 1257 os=-unicos 1258 ;; 1259 z8k-*-coff) 1260 basic_machine=z8k-unknown 1261 os=-sim 1262 ;; 1263 z80-*-coff) 1264 basic_machine=z80-unknown 1265 os=-sim 1212 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` 1266 1213 ;; 1267 1214 none) 1268 1215 basic_machine=none-none 1269 os= -none1216 os=${os:-none} 1270 1217 ;; 1271 1218 … … 1293 1240 basic_machine=vax-dec 1294 1241 ;; 1295 pdp10)1296 # there are many clones, so DEC is not a safe bet1297 basic_machine=pdp10-unknown1298 ;;1299 1242 pdp11) 1300 1243 basic_machine=pdp11-dec … … 1306 1249 basic_machine=sh-unknown 1307 1250 ;; 1308 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)1309 basic_machine=sparc-sun1310 ;;1311 1251 cydra) 1312 1252 basic_machine=cydra-cydrome … … 1328 1268 ;; 1329 1269 *) 1330 echo Invalid configuration \` $1\': machine \`$basic_machine\' not recognized 1>&21270 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 1331 1271 exit 1 1332 1272 ;; … … 1336 1276 case $basic_machine in 1337 1277 *-digital*) 1338 basic_machine=`echo $basic_machine| sed 's/digital.*/dec/'`1278 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` 1339 1279 ;; 1340 1280 *-commodore*) 1341 basic_machine=`echo $basic_machine| sed 's/commodore.*/cbm/'`1281 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` 1342 1282 ;; 1343 1283 *) … … 1347 1287 # Decode manufacturer-specific aliases for certain operating systems. 1348 1288 1349 if [ x "$os" != x""]1289 if [ x$os != x ] 1350 1290 then 1351 1291 case $os in 1352 # First match some system type aliases 1353 # that might get confused with valid system types. 1354 # -solaris* is a basic system type, with this one exception. 1355 -auroraux) 1356 os=-auroraux 1357 ;; 1358 -solaris1 | -solaris1.*) 1292 # First match some system type aliases that might get confused 1293 # with valid system types. 1294 # solaris* is a basic system type, with this one exception. 1295 auroraux) 1296 os=auroraux 1297 ;; 1298 bluegene*) 1299 os=cnk 1300 ;; 1301 solaris1 | solaris1.*) 1359 1302 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1360 1303 ;; 1361 -solaris) 1362 os=-solaris2 1363 ;; 1364 -svr4*) 1365 os=-sysv4 1366 ;; 1367 -unixware*) 1368 os=-sysv4.2uw 1369 ;; 1370 -gnu/linux*) 1304 solaris) 1305 os=solaris2 1306 ;; 1307 unixware*) 1308 os=sysv4.2uw 1309 ;; 1310 gnu/linux*) 1371 1311 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1372 1312 ;; 1373 # First accept the basic system types. 1313 # es1800 is here to avoid being matched by es* (a different OS) 1314 es1800*) 1315 os=ose 1316 ;; 1317 # Some version numbers need modification 1318 chorusos*) 1319 os=chorusos 1320 ;; 1321 isc) 1322 os=isc2.2 1323 ;; 1324 sco6) 1325 os=sco5v6 1326 ;; 1327 sco5) 1328 os=sco3.2v5 1329 ;; 1330 sco4) 1331 os=sco3.2v4 1332 ;; 1333 sco3.2.[4-9]*) 1334 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1335 ;; 1336 sco3.2v[4-9]* | sco5v6*) 1337 # Don't forget version if it is 3.2v4 or newer. 1338 ;; 1339 scout) 1340 # Don't match below 1341 ;; 1342 sco*) 1343 os=sco3.2v2 1344 ;; 1345 psos*) 1346 os=psos 1347 ;; 1348 # Now accept the basic system types. 1374 1349 # The portable systems comes first. 1375 # Each alternative MUST END IN A *, to match a version number. 1376 # -sysv* is not here because it comes later, after sysvr4. 1377 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1378 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1379 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1380 | -sym* | -kopensolaris* | -plan9* \ 1381 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1382 | -aos* | -aros* | -cloudabi* | -sortix* \ 1383 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1384 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1385 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1386 | -bitrig* | -openbsd* | -solidbsd* \ 1387 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1388 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1389 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1390 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1391 | -chorusos* | -chorusrdb* | -cegcc* \ 1392 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1393 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1394 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1395 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ 1396 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1397 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1398 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1399 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1400 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1401 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1402 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) 1350 # Each alternative MUST end in a * to match a version number. 1351 # sysv* is not here because it comes later, after sysvr4. 1352 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ 1353 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ 1354 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ 1355 | sym* | kopensolaris* | plan9* \ 1356 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ 1357 | aos* | aros* | cloudabi* | sortix* \ 1358 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ 1359 | clix* | riscos* | uniplus* | iris* | rtu* | xenix* \ 1360 | knetbsd* | mirbsd* | netbsd* \ 1361 | bitrig* | openbsd* | solidbsd* | libertybsd* \ 1362 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ 1363 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ 1364 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ 1365 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \ 1366 | chorusrdb* | cegcc* | glidix* \ 1367 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ 1368 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \ 1369 | linux-newlib* | linux-musl* | linux-uclibc* \ 1370 | uxpv* | beos* | mpeix* | udk* | moxiebox* \ 1371 | interix* | uwin* | mks* | rhapsody* | darwin* \ 1372 | openstep* | oskit* | conix* | pw32* | nonstopux* \ 1373 | storm-chaos* | tops10* | tenex* | tops20* | its* \ 1374 | os2* | vos* | palmos* | uclinux* | nucleus* \ 1375 | morphos* | superux* | rtmk* | windiss* \ 1376 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ 1377 | skyos* | haiku* | rdos* | toppers* | drops* | es* \ 1378 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ 1379 | midnightbsd*) 1403 1380 # Remember, each alternative MUST END IN *, to match a version number. 1404 1381 ;; 1405 -qnx*)1382 qnx*) 1406 1383 case $basic_machine in 1407 1384 x86-* | i*86-*) 1408 1385 ;; 1409 1386 *) 1410 os= -nto$os1387 os=nto-$os 1411 1388 ;; 1412 1389 esac 1413 1390 ;; 1414 -nto-qnx*) 1415 ;; 1416 -nto*) 1391 hiux*) 1392 os=hiuxwe2 1393 ;; 1394 nto-qnx*) 1395 ;; 1396 nto*) 1417 1397 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1418 1398 ;; 1419 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1420 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1421 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1422 ;; 1423 -mac*) 1424 os=`echo $os | sed -e 's|mac|macos|'` 1425 ;; 1426 -linux-dietlibc) 1427 os=-linux-dietlibc 1428 ;; 1429 -linux*) 1399 sim | xray | os68k* | v88r* \ 1400 | windows* | osx | abug | netware* | os9* \ 1401 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*) 1402 ;; 1403 linux-dietlibc) 1404 os=linux-dietlibc 1405 ;; 1406 linux*) 1430 1407 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1431 1408 ;; 1432 -sunos5*) 1433 os=`echo $os | sed -e 's|sunos5|solaris2|'` 1434 ;; 1435 -sunos6*) 1436 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1437 ;; 1438 -opened*) 1439 os=-openedition 1440 ;; 1441 -os400*) 1442 os=-os400 1443 ;; 1444 -wince*) 1445 os=-wince 1446 ;; 1447 -osfrose*) 1448 os=-osfrose 1449 ;; 1450 -osf*) 1451 os=-osf 1452 ;; 1453 -utek*) 1454 os=-bsd 1455 ;; 1456 -dynix*) 1457 os=-bsd 1458 ;; 1459 -acis*) 1460 os=-aos 1461 ;; 1462 -atheos*) 1463 os=-atheos 1464 ;; 1465 -syllable*) 1466 os=-syllable 1467 ;; 1468 -386bsd) 1469 os=-bsd 1470 ;; 1471 -ctix* | -uts*) 1472 os=-sysv 1473 ;; 1474 -nova*) 1475 os=-rtmk-nova 1476 ;; 1477 -ns2 ) 1478 os=-nextstep2 1479 ;; 1480 -nsk*) 1481 os=-nsk 1409 lynx*178) 1410 os=lynxos178 1411 ;; 1412 lynx*5) 1413 os=lynxos5 1414 ;; 1415 lynx*) 1416 os=lynxos 1417 ;; 1418 mac*) 1419 os=`echo "$os" | sed -e 's|mac|macos|'` 1420 ;; 1421 opened*) 1422 os=openedition 1423 ;; 1424 os400*) 1425 os=os400 1426 ;; 1427 sunos5*) 1428 os=`echo "$os" | sed -e 's|sunos5|solaris2|'` 1429 ;; 1430 sunos6*) 1431 os=`echo "$os" | sed -e 's|sunos6|solaris3|'` 1432 ;; 1433 wince*) 1434 os=wince 1435 ;; 1436 utek*) 1437 os=bsd 1438 ;; 1439 dynix*) 1440 os=bsd 1441 ;; 1442 acis*) 1443 os=aos 1444 ;; 1445 atheos*) 1446 os=atheos 1447 ;; 1448 syllable*) 1449 os=syllable 1450 ;; 1451 386bsd) 1452 os=bsd 1453 ;; 1454 ctix* | uts*) 1455 os=sysv 1456 ;; 1457 nova*) 1458 os=rtmk-nova 1459 ;; 1460 ns2) 1461 os=nextstep2 1462 ;; 1463 nsk*) 1464 os=nsk 1482 1465 ;; 1483 1466 # Preserve the version number of sinix5. 1484 -sinix5.*)1467 sinix5.*) 1485 1468 os=`echo $os | sed -e 's|sinix|sysv|'` 1486 1469 ;; 1487 -sinix*) 1488 os=-sysv4 1489 ;; 1490 -tpf*) 1491 os=-tpf 1492 ;; 1493 -triton*) 1494 os=-sysv3 1495 ;; 1496 -oss*) 1497 os=-sysv3 1498 ;; 1499 -svr4) 1500 os=-sysv4 1501 ;; 1502 -svr3) 1503 os=-sysv3 1504 ;; 1505 -sysvr4) 1506 os=-sysv4 1507 ;; 1508 # This must come after -sysvr4. 1509 -sysv*) 1510 ;; 1511 -ose*) 1512 os=-ose 1513 ;; 1514 -es1800*) 1515 os=-ose 1516 ;; 1517 -xenix) 1518 os=-xenix 1519 ;; 1520 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1521 os=-mint 1522 ;; 1523 -aros*) 1524 os=-aros 1525 ;; 1526 -zvmoe) 1527 os=-zvmoe 1528 ;; 1529 -dicos*) 1530 os=-dicos 1531 ;; 1532 -nacl*) 1533 ;; 1534 -none) 1470 sinix*) 1471 os=sysv4 1472 ;; 1473 tpf*) 1474 os=tpf 1475 ;; 1476 triton*) 1477 os=sysv3 1478 ;; 1479 oss*) 1480 os=sysv3 1481 ;; 1482 svr4*) 1483 os=sysv4 1484 ;; 1485 svr3) 1486 os=sysv3 1487 ;; 1488 sysvr4) 1489 os=sysv4 1490 ;; 1491 # This must come after sysvr4. 1492 sysv*) 1493 ;; 1494 ose*) 1495 os=ose 1496 ;; 1497 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) 1498 os=mint 1499 ;; 1500 zvmoe) 1501 os=zvmoe 1502 ;; 1503 dicos*) 1504 os=dicos 1505 ;; 1506 pikeos*) 1507 # Until real need of OS specific support for 1508 # particular features comes up, bare metal 1509 # configurations are quite functional. 1510 case $basic_machine in 1511 arm*) 1512 os=eabi 1513 ;; 1514 *) 1515 os=elf 1516 ;; 1517 esac 1518 ;; 1519 nacl*) 1520 ;; 1521 ios) 1522 ;; 1523 none) 1524 ;; 1525 *-eabi) 1535 1526 ;; 1536 1527 *) 1537 # Get rid of the `-' at the beginning of $os. 1538 os=`echo $os | sed 's/[^-]*-//'` 1539 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 1528 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 1540 1529 exit 1 1541 1530 ;; … … 1555 1544 case $basic_machine in 1556 1545 score-*) 1557 os= -elf1546 os=elf 1558 1547 ;; 1559 1548 spu-*) 1560 os= -elf1549 os=elf 1561 1550 ;; 1562 1551 *-acorn) 1563 os= -riscix1.21552 os=riscix1.2 1564 1553 ;; 1565 1554 arm*-rebel) 1566 os= -linux1555 os=linux 1567 1556 ;; 1568 1557 arm*-semi) 1569 os= -aout1558 os=aout 1570 1559 ;; 1571 1560 c4x-* | tic4x-*) 1572 os= -coff1561 os=coff 1573 1562 ;; 1574 1563 c8051-*) 1575 os=-elf 1564 os=elf 1565 ;; 1566 clipper-intergraph) 1567 os=clix 1576 1568 ;; 1577 1569 hexagon-*) 1578 os= -elf1570 os=elf 1579 1571 ;; 1580 1572 tic54x-*) 1581 os= -coff1573 os=coff 1582 1574 ;; 1583 1575 tic55x-*) 1584 os= -coff1576 os=coff 1585 1577 ;; 1586 1578 tic6x-*) 1587 os= -coff1579 os=coff 1588 1580 ;; 1589 1581 # This must come before the *-dec entry. 1590 1582 pdp10-*) 1591 os= -tops201583 os=tops20 1592 1584 ;; 1593 1585 pdp11-*) 1594 os= -none1586 os=none 1595 1587 ;; 1596 1588 *-dec | vax-*) 1597 os= -ultrix4.21589 os=ultrix4.2 1598 1590 ;; 1599 1591 m68*-apollo) 1600 os= -domain1592 os=domain 1601 1593 ;; 1602 1594 i386-sun) 1603 os= -sunos4.0.21595 os=sunos4.0.2 1604 1596 ;; 1605 1597 m68000-sun) 1606 os= -sunos31598 os=sunos3 1607 1599 ;; 1608 1600 m68*-cisco) 1609 os= -aout1601 os=aout 1610 1602 ;; 1611 1603 mep-*) 1612 os= -elf1604 os=elf 1613 1605 ;; 1614 1606 mips*-cisco) 1615 os= -elf1607 os=elf 1616 1608 ;; 1617 1609 mips*-*) 1618 os= -elf1610 os=elf 1619 1611 ;; 1620 1612 or32-*) 1621 os= -coff1613 os=coff 1622 1614 ;; 1623 1615 *-tti) # must be before sparc entry or we get the wrong os. 1624 os= -sysv31616 os=sysv3 1625 1617 ;; 1626 1618 sparc-* | *-sun) 1627 os=-sunos4.1.1 1619 os=sunos4.1.1 1620 ;; 1621 pru-*) 1622 os=elf 1628 1623 ;; 1629 1624 *-be) 1630 os=-beos 1631 ;; 1632 *-haiku) 1633 os=-haiku 1625 os=beos 1634 1626 ;; 1635 1627 *-ibm) 1636 os= -aix1628 os=aix 1637 1629 ;; 1638 1630 *-knuth) 1639 os= -mmixware1631 os=mmixware 1640 1632 ;; 1641 1633 *-wec) 1642 os= -proelf1634 os=proelf 1643 1635 ;; 1644 1636 *-winbond) 1645 os= -proelf1637 os=proelf 1646 1638 ;; 1647 1639 *-oki) 1648 os= -proelf1640 os=proelf 1649 1641 ;; 1650 1642 *-hp) 1651 os= -hpux1643 os=hpux 1652 1644 ;; 1653 1645 *-hitachi) 1654 os= -hiux1646 os=hiux 1655 1647 ;; 1656 1648 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1657 os= -sysv1649 os=sysv 1658 1650 ;; 1659 1651 *-cbm) 1660 os= -amigaos1652 os=amigaos 1661 1653 ;; 1662 1654 *-dg) 1663 os= -dgux1655 os=dgux 1664 1656 ;; 1665 1657 *-dolphin) 1666 os= -sysv31658 os=sysv3 1667 1659 ;; 1668 1660 m68k-ccur) 1669 os= -rtu1661 os=rtu 1670 1662 ;; 1671 1663 m88k-omron*) 1672 os= -luna1673 ;; 1674 *-next 1675 os= -nextstep1664 os=luna 1665 ;; 1666 *-next) 1667 os=nextstep 1676 1668 ;; 1677 1669 *-sequent) 1678 os= -ptx1670 os=ptx 1679 1671 ;; 1680 1672 *-crds) 1681 os= -unos1673 os=unos 1682 1674 ;; 1683 1675 *-ns) 1684 os= -genix1676 os=genix 1685 1677 ;; 1686 1678 i370-*) 1687 os=-mvs 1688 ;; 1689 *-next) 1690 os=-nextstep3 1679 os=mvs 1691 1680 ;; 1692 1681 *-gould) 1693 os= -sysv1682 os=sysv 1694 1683 ;; 1695 1684 *-highlevel) 1696 os= -bsd1685 os=bsd 1697 1686 ;; 1698 1687 *-encore) 1699 os= -bsd1688 os=bsd 1700 1689 ;; 1701 1690 *-sgi) 1702 os= -irix1691 os=irix 1703 1692 ;; 1704 1693 *-siemens) 1705 os= -sysv41694 os=sysv4 1706 1695 ;; 1707 1696 *-masscomp) 1708 os= -rtu1697 os=rtu 1709 1698 ;; 1710 1699 f30[01]-fujitsu | f700-fujitsu) 1711 os= -uxpv1700 os=uxpv 1712 1701 ;; 1713 1702 *-rom68k) 1714 os= -coff1703 os=coff 1715 1704 ;; 1716 1705 *-*bug) 1717 os= -coff1706 os=coff 1718 1707 ;; 1719 1708 *-apple) 1720 os= -macos1709 os=macos 1721 1710 ;; 1722 1711 *-atari*) 1723 os=-mint 1712 os=mint 1713 ;; 1714 *-wrs) 1715 os=vxworks 1724 1716 ;; 1725 1717 *) 1726 os= -none1718 os=none 1727 1719 ;; 1728 1720 esac … … 1735 1727 *-unknown) 1736 1728 case $os in 1737 -riscix*)1729 riscix*) 1738 1730 vendor=acorn 1739 1731 ;; 1740 -sunos*)1732 sunos*) 1741 1733 vendor=sun 1742 1734 ;; 1743 -cnk*|-aix*)1735 cnk*|-aix*) 1744 1736 vendor=ibm 1745 1737 ;; 1746 -beos*)1738 beos*) 1747 1739 vendor=be 1748 1740 ;; 1749 -hpux*)1741 hpux*) 1750 1742 vendor=hp 1751 1743 ;; 1752 -mpeix*)1744 mpeix*) 1753 1745 vendor=hp 1754 1746 ;; 1755 -hiux*)1747 hiux*) 1756 1748 vendor=hitachi 1757 1749 ;; 1758 -unos*)1750 unos*) 1759 1751 vendor=crds 1760 1752 ;; 1761 -dgux*)1753 dgux*) 1762 1754 vendor=dg 1763 1755 ;; 1764 -luna*)1756 luna*) 1765 1757 vendor=omron 1766 1758 ;; 1767 -genix*)1759 genix*) 1768 1760 vendor=ns 1769 1761 ;; 1770 -mvs* | -opened*) 1762 clix*) 1763 vendor=intergraph 1764 ;; 1765 mvs* | opened*) 1771 1766 vendor=ibm 1772 1767 ;; 1773 -os400*)1768 os400*) 1774 1769 vendor=ibm 1775 1770 ;; 1776 -ptx*)1771 ptx*) 1777 1772 vendor=sequent 1778 1773 ;; 1779 -tpf*)1774 tpf*) 1780 1775 vendor=ibm 1781 1776 ;; 1782 -vxsim* | -vxworks* | -windiss*)1777 vxsim* | vxworks* | windiss*) 1783 1778 vendor=wrs 1784 1779 ;; 1785 -aux*)1780 aux*) 1786 1781 vendor=apple 1787 1782 ;; 1788 -hms*)1783 hms*) 1789 1784 vendor=hitachi 1790 1785 ;; 1791 -mpw* | -macos*)1786 mpw* | macos*) 1792 1787 vendor=apple 1793 1788 ;; 1794 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)1789 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) 1795 1790 vendor=atari 1796 1791 ;; 1797 -vos*)1792 vos*) 1798 1793 vendor=stratus 1799 1794 ;; 1800 1795 esac 1801 basic_machine=`echo $basic_machine| sed "s/unknown/$vendor/"`1796 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` 1802 1797 ;; 1803 1798 esac 1804 1799 1805 echo $basic_machine$os1800 echo "$basic_machine-$os" 1806 1801 exit 1807 1802 1808 1803 # Local variables: 1809 # eval: (add-hook ' write-file-hooks'time-stamp)1804 # eval: (add-hook 'before-save-hook 'time-stamp) 1810 1805 # time-stamp-start: "timestamp='" 1811 1806 # time-stamp-format: "%:y-%02m-%02d"
Note: See TracChangeset
for help on using the changeset viewer.