config.guess revision 9d0ccd10
17914d74bSmrg#! /bin/sh 27914d74bSmrg# Attempt to guess a canonical system name. 39d0ccd10Smrg# Copyright 1992-2015 Free Software Foundation, Inc. 47914d74bSmrg 59d0ccd10Smrgtimestamp='2015-08-20' 67914d74bSmrg 77914d74bSmrg# This file is free software; you can redistribute it and/or modify it 87914d74bSmrg# under the terms of the GNU General Public License as published by 9e6d5e4e0Smrg# the Free Software Foundation; either version 3 of the License, or 107914d74bSmrg# (at your option) any later version. 117914d74bSmrg# 127914d74bSmrg# This program is distributed in the hope that it will be useful, but 137914d74bSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 147914d74bSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 157914d74bSmrg# General Public License for more details. 167914d74bSmrg# 177914d74bSmrg# You should have received a copy of the GNU General Public License 18e6d5e4e0Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 197914d74bSmrg# 207914d74bSmrg# As a special exception to the GNU General Public License, if you 217914d74bSmrg# distribute this file as part of a program that contains a 227914d74bSmrg# configuration script generated by Autoconf, you may include it under 23e6d5e4e0Smrg# the same distribution terms that you use for the rest of that 24e6d5e4e0Smrg# program. This Exception is an additional permission under section 7 25e6d5e4e0Smrg# of the GNU General Public License, version 3 ("GPLv3"). 267914d74bSmrg# 279d0ccd10Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 287914d74bSmrg# 29e8ead290Smrg# You can get the latest version of this script from: 30e8ead290Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 31e6d5e4e0Smrg# 329d0ccd10Smrg# Please send patches to <config-patches@gnu.org>. 33e6d5e4e0Smrg 347914d74bSmrg 357914d74bSmrgme=`echo "$0" | sed -e 's,.*/,,'` 367914d74bSmrg 377914d74bSmrgusage="\ 387914d74bSmrgUsage: $0 [OPTION] 397914d74bSmrg 407914d74bSmrgOutput the configuration name of the system \`$me' is run on. 417914d74bSmrg 427914d74bSmrgOperation modes: 437914d74bSmrg -h, --help print this help, then exit 447914d74bSmrg -t, --time-stamp print date of last modification, then exit 457914d74bSmrg -v, --version print version number, then exit 467914d74bSmrg 477914d74bSmrgReport bugs and patches to <config-patches@gnu.org>." 487914d74bSmrg 497914d74bSmrgversion="\ 507914d74bSmrgGNU config.guess ($timestamp) 517914d74bSmrg 527914d74bSmrgOriginally written by Per Bothner. 539d0ccd10SmrgCopyright 1992-2015 Free Software Foundation, Inc. 547914d74bSmrg 557914d74bSmrgThis is free software; see the source for copying conditions. There is NO 567914d74bSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 577914d74bSmrg 587914d74bSmrghelp=" 597914d74bSmrgTry \`$me --help' for more information." 607914d74bSmrg 617914d74bSmrg# Parse command line 627914d74bSmrgwhile test $# -gt 0 ; do 637914d74bSmrg case $1 in 647914d74bSmrg --time-stamp | --time* | -t ) 657914d74bSmrg echo "$timestamp" ; exit ;; 667914d74bSmrg --version | -v ) 677914d74bSmrg echo "$version" ; exit ;; 687914d74bSmrg --help | --h* | -h ) 697914d74bSmrg echo "$usage"; exit ;; 707914d74bSmrg -- ) # Stop option processing 717914d74bSmrg shift; break ;; 727914d74bSmrg - ) # Use stdin as input. 737914d74bSmrg break ;; 747914d74bSmrg -* ) 757914d74bSmrg echo "$me: invalid option $1$help" >&2 767914d74bSmrg exit 1 ;; 777914d74bSmrg * ) 787914d74bSmrg break ;; 797914d74bSmrg esac 807914d74bSmrgdone 817914d74bSmrg 827914d74bSmrgif test $# != 0; then 837914d74bSmrg echo "$me: too many arguments$help" >&2 847914d74bSmrg exit 1 857914d74bSmrgfi 867914d74bSmrg 87e6d5e4e0Smrgtrap 'exit 1' 1 2 15 887914d74bSmrg 897914d74bSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 907914d74bSmrg# compiler to aid in system detection is discouraged as it requires 917914d74bSmrg# temporary files to be created and, as you can see below, it is a 927914d74bSmrg# headache to deal with in a portable fashion. 937914d74bSmrg 947914d74bSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 957914d74bSmrg# use `HOST_CC' if defined, but it is deprecated. 967914d74bSmrg 977914d74bSmrg# Portable tmp directory creation inspired by the Autoconf team. 987914d74bSmrg 997914d74bSmrgset_cc_for_build=' 1007914d74bSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 101e6d5e4e0Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1027914d74bSmrg: ${TMPDIR=/tmp} ; 1037914d74bSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1047914d74bSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1057914d74bSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1067914d74bSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1077914d74bSmrgdummy=$tmp/dummy ; 1087914d74bSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1097914d74bSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 1107914d74bSmrg ,,) echo "int x;" > $dummy.c ; 1117914d74bSmrg for c in cc gcc c89 c99 ; do 1127914d74bSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 1137914d74bSmrg CC_FOR_BUILD="$c"; break ; 1147914d74bSmrg fi ; 1157914d74bSmrg done ; 1167914d74bSmrg if test x"$CC_FOR_BUILD" = x ; then 1177914d74bSmrg CC_FOR_BUILD=no_compiler_found ; 1187914d74bSmrg fi 1197914d74bSmrg ;; 1207914d74bSmrg ,,*) CC_FOR_BUILD=$CC ;; 1217914d74bSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1227914d74bSmrgesac ; set_cc_for_build= ;' 1237914d74bSmrg 1247914d74bSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1257914d74bSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 1267914d74bSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1277914d74bSmrg PATH=$PATH:/.attbin ; export PATH 1287914d74bSmrgfi 1297914d74bSmrg 1307914d74bSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1317914d74bSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1327914d74bSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1337914d74bSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1347914d74bSmrg 1359d0ccd10Smrgcase "${UNAME_SYSTEM}" in 1369d0ccd10SmrgLinux|GNU|GNU/*) 1379d0ccd10Smrg # If the system lacks a compiler, then just pick glibc. 1389d0ccd10Smrg # We could probably try harder. 1399d0ccd10Smrg LIBC=gnu 1409d0ccd10Smrg 1419d0ccd10Smrg eval $set_cc_for_build 1429d0ccd10Smrg cat <<-EOF > $dummy.c 1439d0ccd10Smrg #include <features.h> 1449d0ccd10Smrg #if defined(__UCLIBC__) 1459d0ccd10Smrg LIBC=uclibc 1469d0ccd10Smrg #elif defined(__dietlibc__) 1479d0ccd10Smrg LIBC=dietlibc 1489d0ccd10Smrg #else 1499d0ccd10Smrg LIBC=gnu 1509d0ccd10Smrg #endif 1519d0ccd10Smrg EOF 1529d0ccd10Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 1539d0ccd10Smrg ;; 1549d0ccd10Smrgesac 1559d0ccd10Smrg 1567914d74bSmrg# Note: order is significant - the case branches are not exclusive. 1577914d74bSmrg 1587914d74bSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 1597914d74bSmrg *:NetBSD:*:*) 1607914d74bSmrg # NetBSD (nbsd) targets should (where applicable) match one or 161e6d5e4e0Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 1627914d74bSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1637914d74bSmrg # switched to ELF, *-*-netbsd* would select the old 1647914d74bSmrg # object file format. This provides both forward 1657914d74bSmrg # compatibility and a consistent mechanism for selecting the 1667914d74bSmrg # object file format. 1677914d74bSmrg # 1687914d74bSmrg # Note: NetBSD doesn't particularly care about the vendor 1697914d74bSmrg # portion of the name. We always set it to "unknown". 1707914d74bSmrg sysctl="sysctl -n hw.machine_arch" 1719d0ccd10Smrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 1729d0ccd10Smrg /sbin/$sysctl 2>/dev/null || \ 1739d0ccd10Smrg /usr/sbin/$sysctl 2>/dev/null || \ 1749d0ccd10Smrg echo unknown)` 1757914d74bSmrg case "${UNAME_MACHINE_ARCH}" in 1767914d74bSmrg armeb) machine=armeb-unknown ;; 1777914d74bSmrg arm*) machine=arm-unknown ;; 1787914d74bSmrg sh3el) machine=shl-unknown ;; 1797914d74bSmrg sh3eb) machine=sh-unknown ;; 1807914d74bSmrg sh5el) machine=sh5le-unknown ;; 1819d0ccd10Smrg earmv*) 1829d0ccd10Smrg arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 1839d0ccd10Smrg endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 1849d0ccd10Smrg machine=${arch}${endian}-unknown 1859d0ccd10Smrg ;; 1867914d74bSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 1877914d74bSmrg esac 1887914d74bSmrg # The Operating System including object format, if it has switched 1897914d74bSmrg # to ELF recently, or will in the future. 1907914d74bSmrg case "${UNAME_MACHINE_ARCH}" in 1919d0ccd10Smrg arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) 1927914d74bSmrg eval $set_cc_for_build 1937914d74bSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 194e8ead290Smrg | grep -q __ELF__ 1957914d74bSmrg then 1967914d74bSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 1977914d74bSmrg # Return netbsd for either. FIX? 1987914d74bSmrg os=netbsd 1997914d74bSmrg else 2007914d74bSmrg os=netbsdelf 2017914d74bSmrg fi 2027914d74bSmrg ;; 2037914d74bSmrg *) 204e6d5e4e0Smrg os=netbsd 2057914d74bSmrg ;; 2067914d74bSmrg esac 2079d0ccd10Smrg # Determine ABI tags. 2089d0ccd10Smrg case "${UNAME_MACHINE_ARCH}" in 2099d0ccd10Smrg earm*) 2109d0ccd10Smrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 2119d0ccd10Smrg abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 2129d0ccd10Smrg ;; 2139d0ccd10Smrg esac 2147914d74bSmrg # The OS release 2157914d74bSmrg # Debian GNU/NetBSD machines have a different userland, and 2167914d74bSmrg # thus, need a distinct triplet. However, they do not need 2177914d74bSmrg # kernel version information, so it can be replaced with a 2187914d74bSmrg # suitable tag, in the style of linux-gnu. 2197914d74bSmrg case "${UNAME_VERSION}" in 2207914d74bSmrg Debian*) 2217914d74bSmrg release='-gnu' 2227914d74bSmrg ;; 2237914d74bSmrg *) 2249d0ccd10Smrg release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 2257914d74bSmrg ;; 2267914d74bSmrg esac 2277914d74bSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 2287914d74bSmrg # contains redundant information, the shorter form: 2297914d74bSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2309d0ccd10Smrg echo "${machine}-${os}${release}${abi}" 2317914d74bSmrg exit ;; 232e6d5e4e0Smrg *:Bitrig:*:*) 233e6d5e4e0Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 234e6d5e4e0Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 235e6d5e4e0Smrg exit ;; 2367914d74bSmrg *:OpenBSD:*:*) 2377914d74bSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 2387914d74bSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 2397914d74bSmrg exit ;; 2407914d74bSmrg *:ekkoBSD:*:*) 2417914d74bSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 2427914d74bSmrg exit ;; 2437914d74bSmrg *:SolidBSD:*:*) 2447914d74bSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 2457914d74bSmrg exit ;; 2467914d74bSmrg macppc:MirBSD:*:*) 2477914d74bSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 2487914d74bSmrg exit ;; 2497914d74bSmrg *:MirBSD:*:*) 2507914d74bSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 2517914d74bSmrg exit ;; 2529d0ccd10Smrg *:Sortix:*:*) 2539d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-sortix 2549d0ccd10Smrg exit ;; 2557914d74bSmrg alpha:OSF1:*:*) 2567914d74bSmrg case $UNAME_RELEASE in 2577914d74bSmrg *4.0) 2587914d74bSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2597914d74bSmrg ;; 2607914d74bSmrg *5.*) 261e6d5e4e0Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2627914d74bSmrg ;; 2637914d74bSmrg esac 2647914d74bSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 2657914d74bSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2667914d74bSmrg # covers most systems running today. This code pipes the CPU 2677914d74bSmrg # types through head -n 1, so we only detect the type of CPU 0. 2687914d74bSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2697914d74bSmrg case "$ALPHA_CPU_TYPE" in 2707914d74bSmrg "EV4 (21064)") 2717914d74bSmrg UNAME_MACHINE="alpha" ;; 2727914d74bSmrg "EV4.5 (21064)") 2737914d74bSmrg UNAME_MACHINE="alpha" ;; 2747914d74bSmrg "LCA4 (21066/21068)") 2757914d74bSmrg UNAME_MACHINE="alpha" ;; 2767914d74bSmrg "EV5 (21164)") 2777914d74bSmrg UNAME_MACHINE="alphaev5" ;; 2787914d74bSmrg "EV5.6 (21164A)") 2797914d74bSmrg UNAME_MACHINE="alphaev56" ;; 2807914d74bSmrg "EV5.6 (21164PC)") 2817914d74bSmrg UNAME_MACHINE="alphapca56" ;; 2827914d74bSmrg "EV5.7 (21164PC)") 2837914d74bSmrg UNAME_MACHINE="alphapca57" ;; 2847914d74bSmrg "EV6 (21264)") 2857914d74bSmrg UNAME_MACHINE="alphaev6" ;; 2867914d74bSmrg "EV6.7 (21264A)") 2877914d74bSmrg UNAME_MACHINE="alphaev67" ;; 2887914d74bSmrg "EV6.8CB (21264C)") 2897914d74bSmrg UNAME_MACHINE="alphaev68" ;; 2907914d74bSmrg "EV6.8AL (21264B)") 2917914d74bSmrg UNAME_MACHINE="alphaev68" ;; 2927914d74bSmrg "EV6.8CX (21264D)") 2937914d74bSmrg UNAME_MACHINE="alphaev68" ;; 2947914d74bSmrg "EV6.9A (21264/EV69A)") 2957914d74bSmrg UNAME_MACHINE="alphaev69" ;; 2967914d74bSmrg "EV7 (21364)") 2977914d74bSmrg UNAME_MACHINE="alphaev7" ;; 2987914d74bSmrg "EV7.9 (21364A)") 2997914d74bSmrg UNAME_MACHINE="alphaev79" ;; 3007914d74bSmrg esac 3017914d74bSmrg # A Pn.n version is a patched version. 3027914d74bSmrg # A Vn.n version is a released version. 3037914d74bSmrg # A Tn.n version is a released field test version. 3047914d74bSmrg # A Xn.n version is an unreleased experimental baselevel. 3057914d74bSmrg # 1.2 uses "1.2" for uname -r. 3067914d74bSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 307e6d5e4e0Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 308e6d5e4e0Smrg exitcode=$? 309e6d5e4e0Smrg trap '' 0 310e6d5e4e0Smrg exit $exitcode ;; 3117914d74bSmrg Alpha\ *:Windows_NT*:*) 3127914d74bSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 3137914d74bSmrg # Should we change UNAME_MACHINE based on the output of uname instead 3147914d74bSmrg # of the specific Alpha model? 3157914d74bSmrg echo alpha-pc-interix 3167914d74bSmrg exit ;; 3177914d74bSmrg 21064:Windows_NT:50:3) 3187914d74bSmrg echo alpha-dec-winnt3.5 3197914d74bSmrg exit ;; 3207914d74bSmrg Amiga*:UNIX_System_V:4.0:*) 3217914d74bSmrg echo m68k-unknown-sysv4 3227914d74bSmrg exit ;; 3237914d74bSmrg *:[Aa]miga[Oo][Ss]:*:*) 3247914d74bSmrg echo ${UNAME_MACHINE}-unknown-amigaos 3257914d74bSmrg exit ;; 3267914d74bSmrg *:[Mm]orph[Oo][Ss]:*:*) 3277914d74bSmrg echo ${UNAME_MACHINE}-unknown-morphos 3287914d74bSmrg exit ;; 3297914d74bSmrg *:OS/390:*:*) 3307914d74bSmrg echo i370-ibm-openedition 3317914d74bSmrg exit ;; 3327914d74bSmrg *:z/VM:*:*) 3337914d74bSmrg echo s390-ibm-zvmoe 3347914d74bSmrg exit ;; 3357914d74bSmrg *:OS400:*:*) 336e6d5e4e0Smrg echo powerpc-ibm-os400 3377914d74bSmrg exit ;; 3387914d74bSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 3397914d74bSmrg echo arm-acorn-riscix${UNAME_RELEASE} 3407914d74bSmrg exit ;; 341e6d5e4e0Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 3427914d74bSmrg echo arm-unknown-riscos 3437914d74bSmrg exit ;; 3447914d74bSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3457914d74bSmrg echo hppa1.1-hitachi-hiuxmpp 3467914d74bSmrg exit ;; 3477914d74bSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3487914d74bSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3497914d74bSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3507914d74bSmrg echo pyramid-pyramid-sysv3 3517914d74bSmrg else 3527914d74bSmrg echo pyramid-pyramid-bsd 3537914d74bSmrg fi 3547914d74bSmrg exit ;; 3557914d74bSmrg NILE*:*:*:dcosx) 3567914d74bSmrg echo pyramid-pyramid-svr4 3577914d74bSmrg exit ;; 3587914d74bSmrg DRS?6000:unix:4.0:6*) 3597914d74bSmrg echo sparc-icl-nx6 3607914d74bSmrg exit ;; 3617914d74bSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3627914d74bSmrg case `/usr/bin/uname -p` in 3637914d74bSmrg sparc) echo sparc-icl-nx7; exit ;; 3647914d74bSmrg esac ;; 365e8ead290Smrg s390x:SunOS:*:*) 366e8ead290Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 367e8ead290Smrg exit ;; 3687914d74bSmrg sun4H:SunOS:5.*:*) 3697914d74bSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3707914d74bSmrg exit ;; 3717914d74bSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 3727914d74bSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3737914d74bSmrg exit ;; 374e8ead290Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 375e8ead290Smrg echo i386-pc-auroraux${UNAME_RELEASE} 376e8ead290Smrg exit ;; 3777914d74bSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 378e8ead290Smrg eval $set_cc_for_build 379e8ead290Smrg SUN_ARCH="i386" 380e8ead290Smrg # If there is a compiler, see if it is configured for 64-bit objects. 381e8ead290Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 382e8ead290Smrg # This test works for both compilers. 383e8ead290Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 384e8ead290Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 385e8ead290Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 386e8ead290Smrg grep IS_64BIT_ARCH >/dev/null 387e8ead290Smrg then 388e8ead290Smrg SUN_ARCH="x86_64" 389e8ead290Smrg fi 390e8ead290Smrg fi 391e8ead290Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3927914d74bSmrg exit ;; 3937914d74bSmrg sun4*:SunOS:6*:*) 3947914d74bSmrg # According to config.sub, this is the proper way to canonicalize 3957914d74bSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 3967914d74bSmrg # it's likely to be more like Solaris than SunOS4. 3977914d74bSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3987914d74bSmrg exit ;; 3997914d74bSmrg sun4*:SunOS:*:*) 4007914d74bSmrg case "`/usr/bin/arch -k`" in 4017914d74bSmrg Series*|S4*) 4027914d74bSmrg UNAME_RELEASE=`uname -v` 4037914d74bSmrg ;; 4047914d74bSmrg esac 4057914d74bSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 4067914d74bSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 4077914d74bSmrg exit ;; 4087914d74bSmrg sun3*:SunOS:*:*) 4097914d74bSmrg echo m68k-sun-sunos${UNAME_RELEASE} 4107914d74bSmrg exit ;; 4117914d74bSmrg sun*:*:4.2BSD:*) 4127914d74bSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 4137914d74bSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 4147914d74bSmrg case "`/bin/arch`" in 4157914d74bSmrg sun3) 4167914d74bSmrg echo m68k-sun-sunos${UNAME_RELEASE} 4177914d74bSmrg ;; 4187914d74bSmrg sun4) 4197914d74bSmrg echo sparc-sun-sunos${UNAME_RELEASE} 4207914d74bSmrg ;; 4217914d74bSmrg esac 4227914d74bSmrg exit ;; 4237914d74bSmrg aushp:SunOS:*:*) 4247914d74bSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 4257914d74bSmrg exit ;; 4267914d74bSmrg # The situation for MiNT is a little confusing. The machine name 4277914d74bSmrg # can be virtually everything (everything which is not 4287914d74bSmrg # "atarist" or "atariste" at least should have a processor 4297914d74bSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 4307914d74bSmrg # to the lowercase version "mint" (or "freemint"). Finally 4317914d74bSmrg # the system name "TOS" denotes a system which is actually not 4327914d74bSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 4337914d74bSmrg # be no problem. 4347914d74bSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 435e6d5e4e0Smrg echo m68k-atari-mint${UNAME_RELEASE} 4367914d74bSmrg exit ;; 4377914d74bSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 4387914d74bSmrg echo m68k-atari-mint${UNAME_RELEASE} 439e6d5e4e0Smrg exit ;; 4407914d74bSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 441e6d5e4e0Smrg echo m68k-atari-mint${UNAME_RELEASE} 4427914d74bSmrg exit ;; 4437914d74bSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 444e6d5e4e0Smrg echo m68k-milan-mint${UNAME_RELEASE} 445e6d5e4e0Smrg exit ;; 4467914d74bSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 447e6d5e4e0Smrg echo m68k-hades-mint${UNAME_RELEASE} 448e6d5e4e0Smrg exit ;; 4497914d74bSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 450e6d5e4e0Smrg echo m68k-unknown-mint${UNAME_RELEASE} 451e6d5e4e0Smrg exit ;; 4527914d74bSmrg m68k:machten:*:*) 4537914d74bSmrg echo m68k-apple-machten${UNAME_RELEASE} 4547914d74bSmrg exit ;; 4557914d74bSmrg powerpc:machten:*:*) 4567914d74bSmrg echo powerpc-apple-machten${UNAME_RELEASE} 4577914d74bSmrg exit ;; 4587914d74bSmrg RISC*:Mach:*:*) 4597914d74bSmrg echo mips-dec-mach_bsd4.3 4607914d74bSmrg exit ;; 4617914d74bSmrg RISC*:ULTRIX:*:*) 4627914d74bSmrg echo mips-dec-ultrix${UNAME_RELEASE} 4637914d74bSmrg exit ;; 4647914d74bSmrg VAX*:ULTRIX*:*:*) 4657914d74bSmrg echo vax-dec-ultrix${UNAME_RELEASE} 4667914d74bSmrg exit ;; 4677914d74bSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 4687914d74bSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 4697914d74bSmrg exit ;; 4707914d74bSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 4717914d74bSmrg eval $set_cc_for_build 4727914d74bSmrg sed 's/^ //' << EOF >$dummy.c 4737914d74bSmrg#ifdef __cplusplus 4747914d74bSmrg#include <stdio.h> /* for printf() prototype */ 4757914d74bSmrg int main (int argc, char *argv[]) { 4767914d74bSmrg#else 4777914d74bSmrg int main (argc, argv) int argc; char *argv[]; { 4787914d74bSmrg#endif 4797914d74bSmrg #if defined (host_mips) && defined (MIPSEB) 4807914d74bSmrg #if defined (SYSTYPE_SYSV) 4817914d74bSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 4827914d74bSmrg #endif 4837914d74bSmrg #if defined (SYSTYPE_SVR4) 4847914d74bSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 4857914d74bSmrg #endif 4867914d74bSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 4877914d74bSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 4887914d74bSmrg #endif 4897914d74bSmrg #endif 4907914d74bSmrg exit (-1); 4917914d74bSmrg } 4927914d74bSmrgEOF 4937914d74bSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 4947914d74bSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 4957914d74bSmrg SYSTEM_NAME=`$dummy $dummyarg` && 4967914d74bSmrg { echo "$SYSTEM_NAME"; exit; } 4977914d74bSmrg echo mips-mips-riscos${UNAME_RELEASE} 4987914d74bSmrg exit ;; 4997914d74bSmrg Motorola:PowerMAX_OS:*:*) 5007914d74bSmrg echo powerpc-motorola-powermax 5017914d74bSmrg exit ;; 5027914d74bSmrg Motorola:*:4.3:PL8-*) 5037914d74bSmrg echo powerpc-harris-powermax 5047914d74bSmrg exit ;; 5057914d74bSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 5067914d74bSmrg echo powerpc-harris-powermax 5077914d74bSmrg exit ;; 5087914d74bSmrg Night_Hawk:Power_UNIX:*:*) 5097914d74bSmrg echo powerpc-harris-powerunix 5107914d74bSmrg exit ;; 5117914d74bSmrg m88k:CX/UX:7*:*) 5127914d74bSmrg echo m88k-harris-cxux7 5137914d74bSmrg exit ;; 5147914d74bSmrg m88k:*:4*:R4*) 5157914d74bSmrg echo m88k-motorola-sysv4 5167914d74bSmrg exit ;; 5177914d74bSmrg m88k:*:3*:R3*) 5187914d74bSmrg echo m88k-motorola-sysv3 5197914d74bSmrg exit ;; 5207914d74bSmrg AViiON:dgux:*:*) 521e6d5e4e0Smrg # DG/UX returns AViiON for all architectures 522e6d5e4e0Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 5237914d74bSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 5247914d74bSmrg then 5257914d74bSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 5267914d74bSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 5277914d74bSmrg then 5287914d74bSmrg echo m88k-dg-dgux${UNAME_RELEASE} 5297914d74bSmrg else 5307914d74bSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 5317914d74bSmrg fi 5327914d74bSmrg else 5337914d74bSmrg echo i586-dg-dgux${UNAME_RELEASE} 5347914d74bSmrg fi 535e6d5e4e0Smrg exit ;; 5367914d74bSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 5377914d74bSmrg echo m88k-dolphin-sysv3 5387914d74bSmrg exit ;; 5397914d74bSmrg M88*:*:R3*:*) 5407914d74bSmrg # Delta 88k system running SVR3 5417914d74bSmrg echo m88k-motorola-sysv3 5427914d74bSmrg exit ;; 5437914d74bSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 5447914d74bSmrg echo m88k-tektronix-sysv3 5457914d74bSmrg exit ;; 5467914d74bSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 5477914d74bSmrg echo m68k-tektronix-bsd 5487914d74bSmrg exit ;; 5497914d74bSmrg *:IRIX*:*:*) 5507914d74bSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 5517914d74bSmrg exit ;; 5527914d74bSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 5537914d74bSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 5547914d74bSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 5557914d74bSmrg i*86:AIX:*:*) 5567914d74bSmrg echo i386-ibm-aix 5577914d74bSmrg exit ;; 5587914d74bSmrg ia64:AIX:*:*) 5597914d74bSmrg if [ -x /usr/bin/oslevel ] ; then 5607914d74bSmrg IBM_REV=`/usr/bin/oslevel` 5617914d74bSmrg else 5627914d74bSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5637914d74bSmrg fi 5647914d74bSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 5657914d74bSmrg exit ;; 5667914d74bSmrg *:AIX:2:3) 5677914d74bSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 5687914d74bSmrg eval $set_cc_for_build 5697914d74bSmrg sed 's/^ //' << EOF >$dummy.c 5707914d74bSmrg #include <sys/systemcfg.h> 5717914d74bSmrg 5727914d74bSmrg main() 5737914d74bSmrg { 5747914d74bSmrg if (!__power_pc()) 5757914d74bSmrg exit(1); 5767914d74bSmrg puts("powerpc-ibm-aix3.2.5"); 5777914d74bSmrg exit(0); 5787914d74bSmrg } 5797914d74bSmrgEOF 5807914d74bSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 5817914d74bSmrg then 5827914d74bSmrg echo "$SYSTEM_NAME" 5837914d74bSmrg else 5847914d74bSmrg echo rs6000-ibm-aix3.2.5 5857914d74bSmrg fi 5867914d74bSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 5877914d74bSmrg echo rs6000-ibm-aix3.2.4 5887914d74bSmrg else 5897914d74bSmrg echo rs6000-ibm-aix3.2 5907914d74bSmrg fi 5917914d74bSmrg exit ;; 592e8ead290Smrg *:AIX:*:[4567]) 5937914d74bSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 5947914d74bSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 5957914d74bSmrg IBM_ARCH=rs6000 5967914d74bSmrg else 5977914d74bSmrg IBM_ARCH=powerpc 5987914d74bSmrg fi 5999d0ccd10Smrg if [ -x /usr/bin/lslpp ] ; then 6009d0ccd10Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 6019d0ccd10Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 6027914d74bSmrg else 6037914d74bSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 6047914d74bSmrg fi 6057914d74bSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 6067914d74bSmrg exit ;; 6077914d74bSmrg *:AIX:*:*) 6087914d74bSmrg echo rs6000-ibm-aix 6097914d74bSmrg exit ;; 6107914d74bSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 6117914d74bSmrg echo romp-ibm-bsd4.4 6127914d74bSmrg exit ;; 6137914d74bSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 6147914d74bSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 6157914d74bSmrg exit ;; # report: romp-ibm BSD 4.3 6167914d74bSmrg *:BOSX:*:*) 6177914d74bSmrg echo rs6000-bull-bosx 6187914d74bSmrg exit ;; 6197914d74bSmrg DPX/2?00:B.O.S.:*:*) 6207914d74bSmrg echo m68k-bull-sysv3 6217914d74bSmrg exit ;; 6227914d74bSmrg 9000/[34]??:4.3bsd:1.*:*) 6237914d74bSmrg echo m68k-hp-bsd 6247914d74bSmrg exit ;; 6257914d74bSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 6267914d74bSmrg echo m68k-hp-bsd4.4 6277914d74bSmrg exit ;; 6287914d74bSmrg 9000/[34678]??:HP-UX:*:*) 6297914d74bSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6307914d74bSmrg case "${UNAME_MACHINE}" in 6317914d74bSmrg 9000/31? ) HP_ARCH=m68000 ;; 6327914d74bSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 6337914d74bSmrg 9000/[678][0-9][0-9]) 6347914d74bSmrg if [ -x /usr/bin/getconf ]; then 6357914d74bSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 636e6d5e4e0Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 637e6d5e4e0Smrg case "${sc_cpu_version}" in 638e6d5e4e0Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 639e6d5e4e0Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 640e6d5e4e0Smrg 532) # CPU_PA_RISC2_0 641e6d5e4e0Smrg case "${sc_kernel_bits}" in 642e6d5e4e0Smrg 32) HP_ARCH="hppa2.0n" ;; 643e6d5e4e0Smrg 64) HP_ARCH="hppa2.0w" ;; 6447914d74bSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 645e6d5e4e0Smrg esac ;; 646e6d5e4e0Smrg esac 6477914d74bSmrg fi 6487914d74bSmrg if [ "${HP_ARCH}" = "" ]; then 6497914d74bSmrg eval $set_cc_for_build 650e6d5e4e0Smrg sed 's/^ //' << EOF >$dummy.c 6517914d74bSmrg 652e6d5e4e0Smrg #define _HPUX_SOURCE 653e6d5e4e0Smrg #include <stdlib.h> 654e6d5e4e0Smrg #include <unistd.h> 6557914d74bSmrg 656e6d5e4e0Smrg int main () 657e6d5e4e0Smrg { 658e6d5e4e0Smrg #if defined(_SC_KERNEL_BITS) 659e6d5e4e0Smrg long bits = sysconf(_SC_KERNEL_BITS); 660e6d5e4e0Smrg #endif 661e6d5e4e0Smrg long cpu = sysconf (_SC_CPU_VERSION); 6627914d74bSmrg 663e6d5e4e0Smrg switch (cpu) 664e6d5e4e0Smrg { 665e6d5e4e0Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 666e6d5e4e0Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 667e6d5e4e0Smrg case CPU_PA_RISC2_0: 668e6d5e4e0Smrg #if defined(_SC_KERNEL_BITS) 669e6d5e4e0Smrg switch (bits) 670e6d5e4e0Smrg { 671e6d5e4e0Smrg case 64: puts ("hppa2.0w"); break; 672e6d5e4e0Smrg case 32: puts ("hppa2.0n"); break; 673e6d5e4e0Smrg default: puts ("hppa2.0"); break; 674e6d5e4e0Smrg } break; 675e6d5e4e0Smrg #else /* !defined(_SC_KERNEL_BITS) */ 676e6d5e4e0Smrg puts ("hppa2.0"); break; 677e6d5e4e0Smrg #endif 678e6d5e4e0Smrg default: puts ("hppa1.0"); break; 679e6d5e4e0Smrg } 680e6d5e4e0Smrg exit (0); 681e6d5e4e0Smrg } 6827914d74bSmrgEOF 6837914d74bSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 6847914d74bSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 6857914d74bSmrg fi ;; 6867914d74bSmrg esac 6877914d74bSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 6887914d74bSmrg then 6897914d74bSmrg eval $set_cc_for_build 6907914d74bSmrg 6917914d74bSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 6927914d74bSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 6937914d74bSmrg # generating 64-bit code. GNU and HP use different nomenclature: 6947914d74bSmrg # 6957914d74bSmrg # $ CC_FOR_BUILD=cc ./config.guess 6967914d74bSmrg # => hppa2.0w-hp-hpux11.23 6977914d74bSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 6987914d74bSmrg # => hppa64-hp-hpux11.23 6997914d74bSmrg 7007914d74bSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 701e8ead290Smrg grep -q __LP64__ 7027914d74bSmrg then 7037914d74bSmrg HP_ARCH="hppa2.0w" 7047914d74bSmrg else 7057914d74bSmrg HP_ARCH="hppa64" 7067914d74bSmrg fi 7077914d74bSmrg fi 7087914d74bSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 7097914d74bSmrg exit ;; 7107914d74bSmrg ia64:HP-UX:*:*) 7117914d74bSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 7127914d74bSmrg echo ia64-hp-hpux${HPUX_REV} 7137914d74bSmrg exit ;; 7147914d74bSmrg 3050*:HI-UX:*:*) 7157914d74bSmrg eval $set_cc_for_build 7167914d74bSmrg sed 's/^ //' << EOF >$dummy.c 7177914d74bSmrg #include <unistd.h> 7187914d74bSmrg int 7197914d74bSmrg main () 7207914d74bSmrg { 7217914d74bSmrg long cpu = sysconf (_SC_CPU_VERSION); 7227914d74bSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 7237914d74bSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 7247914d74bSmrg results, however. */ 7257914d74bSmrg if (CPU_IS_PA_RISC (cpu)) 7267914d74bSmrg { 7277914d74bSmrg switch (cpu) 7287914d74bSmrg { 7297914d74bSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 7307914d74bSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 7317914d74bSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 7327914d74bSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 7337914d74bSmrg } 7347914d74bSmrg } 7357914d74bSmrg else if (CPU_IS_HP_MC68K (cpu)) 7367914d74bSmrg puts ("m68k-hitachi-hiuxwe2"); 7377914d74bSmrg else puts ("unknown-hitachi-hiuxwe2"); 7387914d74bSmrg exit (0); 7397914d74bSmrg } 7407914d74bSmrgEOF 7417914d74bSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 7427914d74bSmrg { echo "$SYSTEM_NAME"; exit; } 7437914d74bSmrg echo unknown-hitachi-hiuxwe2 7447914d74bSmrg exit ;; 7457914d74bSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 7467914d74bSmrg echo hppa1.1-hp-bsd 7477914d74bSmrg exit ;; 7487914d74bSmrg 9000/8??:4.3bsd:*:*) 7497914d74bSmrg echo hppa1.0-hp-bsd 7507914d74bSmrg exit ;; 7517914d74bSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 7527914d74bSmrg echo hppa1.0-hp-mpeix 7537914d74bSmrg exit ;; 7547914d74bSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 7557914d74bSmrg echo hppa1.1-hp-osf 7567914d74bSmrg exit ;; 7577914d74bSmrg hp8??:OSF1:*:*) 7587914d74bSmrg echo hppa1.0-hp-osf 7597914d74bSmrg exit ;; 7607914d74bSmrg i*86:OSF1:*:*) 7617914d74bSmrg if [ -x /usr/sbin/sysversion ] ; then 7627914d74bSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 7637914d74bSmrg else 7647914d74bSmrg echo ${UNAME_MACHINE}-unknown-osf1 7657914d74bSmrg fi 7667914d74bSmrg exit ;; 7677914d74bSmrg parisc*:Lites*:*:*) 7687914d74bSmrg echo hppa1.1-hp-lites 7697914d74bSmrg exit ;; 7707914d74bSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7717914d74bSmrg echo c1-convex-bsd 772e6d5e4e0Smrg exit ;; 7737914d74bSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7747914d74bSmrg if getsysinfo -f scalar_acc 7757914d74bSmrg then echo c32-convex-bsd 7767914d74bSmrg else echo c2-convex-bsd 7777914d74bSmrg fi 778e6d5e4e0Smrg exit ;; 7797914d74bSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7807914d74bSmrg echo c34-convex-bsd 781e6d5e4e0Smrg exit ;; 7827914d74bSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7837914d74bSmrg echo c38-convex-bsd 784e6d5e4e0Smrg exit ;; 7857914d74bSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 7867914d74bSmrg echo c4-convex-bsd 787e6d5e4e0Smrg exit ;; 7887914d74bSmrg CRAY*Y-MP:*:*:*) 7897914d74bSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7907914d74bSmrg exit ;; 7917914d74bSmrg CRAY*[A-Z]90:*:*:*) 7927914d74bSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 7937914d74bSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 7947914d74bSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 7957914d74bSmrg -e 's/\.[^.]*$/.X/' 7967914d74bSmrg exit ;; 7977914d74bSmrg CRAY*TS:*:*:*) 7987914d74bSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7997914d74bSmrg exit ;; 8007914d74bSmrg CRAY*T3E:*:*:*) 8017914d74bSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 8027914d74bSmrg exit ;; 8037914d74bSmrg CRAY*SV1:*:*:*) 8047914d74bSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 8057914d74bSmrg exit ;; 8067914d74bSmrg *:UNICOS/mp:*:*) 8077914d74bSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 8087914d74bSmrg exit ;; 8097914d74bSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 8107914d74bSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 811e6d5e4e0Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 812e6d5e4e0Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 813e6d5e4e0Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 814e6d5e4e0Smrg exit ;; 8157914d74bSmrg 5000:UNIX_System_V:4.*:*) 816e6d5e4e0Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 817e6d5e4e0Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 818e6d5e4e0Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 8197914d74bSmrg exit ;; 8207914d74bSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 8217914d74bSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 8227914d74bSmrg exit ;; 8237914d74bSmrg sparc*:BSD/OS:*:*) 8247914d74bSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 8257914d74bSmrg exit ;; 8267914d74bSmrg *:BSD/OS:*:*) 8277914d74bSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 8287914d74bSmrg exit ;; 8297914d74bSmrg *:FreeBSD:*:*) 830e6d5e4e0Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 831e6d5e4e0Smrg case ${UNAME_PROCESSOR} in 8327914d74bSmrg amd64) 8337914d74bSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8347914d74bSmrg *) 835e6d5e4e0Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8367914d74bSmrg esac 8377914d74bSmrg exit ;; 8387914d74bSmrg i*:CYGWIN*:*) 8397914d74bSmrg echo ${UNAME_MACHINE}-pc-cygwin 8407914d74bSmrg exit ;; 841e6d5e4e0Smrg *:MINGW64*:*) 842e6d5e4e0Smrg echo ${UNAME_MACHINE}-pc-mingw64 843e6d5e4e0Smrg exit ;; 8447914d74bSmrg *:MINGW*:*) 8457914d74bSmrg echo ${UNAME_MACHINE}-pc-mingw32 8467914d74bSmrg exit ;; 8479d0ccd10Smrg *:MSYS*:*) 848e6d5e4e0Smrg echo ${UNAME_MACHINE}-pc-msys 849e6d5e4e0Smrg exit ;; 8507914d74bSmrg i*:windows32*:*) 851e6d5e4e0Smrg # uname -m includes "-pc" on this system. 852e6d5e4e0Smrg echo ${UNAME_MACHINE}-mingw32 8537914d74bSmrg exit ;; 8547914d74bSmrg i*:PW*:*) 8557914d74bSmrg echo ${UNAME_MACHINE}-pc-pw32 8567914d74bSmrg exit ;; 857e8ead290Smrg *:Interix*:*) 858e6d5e4e0Smrg case ${UNAME_MACHINE} in 8597914d74bSmrg x86) 8607914d74bSmrg echo i586-pc-interix${UNAME_RELEASE} 8617914d74bSmrg exit ;; 862e8ead290Smrg authenticamd | genuineintel | EM64T) 8637914d74bSmrg echo x86_64-unknown-interix${UNAME_RELEASE} 8647914d74bSmrg exit ;; 865e169010aSmrg IA64) 866e169010aSmrg echo ia64-unknown-interix${UNAME_RELEASE} 867e169010aSmrg exit ;; 8687914d74bSmrg esac ;; 8697914d74bSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 8707914d74bSmrg echo i${UNAME_MACHINE}-pc-mks 8717914d74bSmrg exit ;; 872e8ead290Smrg 8664:Windows_NT:*) 873e8ead290Smrg echo x86_64-pc-mks 874e8ead290Smrg exit ;; 8757914d74bSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 8767914d74bSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 8777914d74bSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 8787914d74bSmrg # UNAME_MACHINE based on the output of uname instead of i386? 8797914d74bSmrg echo i586-pc-interix 8807914d74bSmrg exit ;; 8817914d74bSmrg i*:UWIN*:*) 8827914d74bSmrg echo ${UNAME_MACHINE}-pc-uwin 8837914d74bSmrg exit ;; 8847914d74bSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8857914d74bSmrg echo x86_64-unknown-cygwin 8867914d74bSmrg exit ;; 8877914d74bSmrg p*:CYGWIN*:*) 8887914d74bSmrg echo powerpcle-unknown-cygwin 8897914d74bSmrg exit ;; 8907914d74bSmrg prep*:SunOS:5.*:*) 8917914d74bSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 8927914d74bSmrg exit ;; 8937914d74bSmrg *:GNU:*:*) 8947914d74bSmrg # the GNU system 8959d0ccd10Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 8967914d74bSmrg exit ;; 8977914d74bSmrg *:GNU/*:*:*) 8987914d74bSmrg # other systems with GNU libc and userland 8999d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 9007914d74bSmrg exit ;; 9017914d74bSmrg i*86:Minix:*:*) 9027914d74bSmrg echo ${UNAME_MACHINE}-pc-minix 9037914d74bSmrg exit ;; 904e6d5e4e0Smrg aarch64:Linux:*:*) 9059d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 906e6d5e4e0Smrg exit ;; 907e6d5e4e0Smrg aarch64_be:Linux:*:*) 908e6d5e4e0Smrg UNAME_MACHINE=aarch64_be 9099d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 910e6d5e4e0Smrg exit ;; 911e8ead290Smrg alpha:Linux:*:*) 912e8ead290Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 913e8ead290Smrg EV5) UNAME_MACHINE=alphaev5 ;; 914e8ead290Smrg EV56) UNAME_MACHINE=alphaev56 ;; 915e8ead290Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 916e8ead290Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 917e8ead290Smrg EV6) UNAME_MACHINE=alphaev6 ;; 918e8ead290Smrg EV67) UNAME_MACHINE=alphaev67 ;; 919e8ead290Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 920e6d5e4e0Smrg esac 921e8ead290Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 9229d0ccd10Smrg if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 9239d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 924e8ead290Smrg exit ;; 925e6d5e4e0Smrg arc:Linux:*:* | arceb:Linux:*:*) 9269d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 927e6d5e4e0Smrg exit ;; 9287914d74bSmrg arm*:Linux:*:*) 929e169010aSmrg eval $set_cc_for_build 930e169010aSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 931e169010aSmrg | grep -q __ARM_EABI__ 932e169010aSmrg then 9339d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 934e169010aSmrg else 935e6d5e4e0Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 936e6d5e4e0Smrg | grep -q __ARM_PCS_VFP 937e6d5e4e0Smrg then 9389d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 939e6d5e4e0Smrg else 9409d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 941e6d5e4e0Smrg fi 942e169010aSmrg fi 9437914d74bSmrg exit ;; 9447914d74bSmrg avr32*:Linux:*:*) 9459d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9467914d74bSmrg exit ;; 9477914d74bSmrg cris:Linux:*:*) 9489d0ccd10Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9497914d74bSmrg exit ;; 9507914d74bSmrg crisv32:Linux:*:*) 9519d0ccd10Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9529d0ccd10Smrg exit ;; 9539d0ccd10Smrg e2k:Linux:*:*) 9549d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9557914d74bSmrg exit ;; 9567914d74bSmrg frv:Linux:*:*) 9579d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 958e6d5e4e0Smrg exit ;; 959e6d5e4e0Smrg hexagon:Linux:*:*) 9609d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9617914d74bSmrg exit ;; 962e8ead290Smrg i*86:Linux:*:*) 9639d0ccd10Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 964e8ead290Smrg exit ;; 9657914d74bSmrg ia64:Linux:*:*) 9669d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9677914d74bSmrg exit ;; 9687914d74bSmrg m32r*:Linux:*:*) 9699d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9707914d74bSmrg exit ;; 9717914d74bSmrg m68*:Linux:*:*) 9729d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9737914d74bSmrg exit ;; 974e8ead290Smrg mips:Linux:*:* | mips64:Linux:*:*) 9757914d74bSmrg eval $set_cc_for_build 9767914d74bSmrg sed 's/^ //' << EOF >$dummy.c 9777914d74bSmrg #undef CPU 978e8ead290Smrg #undef ${UNAME_MACHINE} 979e8ead290Smrg #undef ${UNAME_MACHINE}el 9807914d74bSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 981e8ead290Smrg CPU=${UNAME_MACHINE}el 9827914d74bSmrg #else 9837914d74bSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 984e8ead290Smrg CPU=${UNAME_MACHINE} 9857914d74bSmrg #else 9867914d74bSmrg CPU= 9877914d74bSmrg #endif 9887914d74bSmrg #endif 9897914d74bSmrgEOF 990e8ead290Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 9919d0ccd10Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 9927914d74bSmrg ;; 9939d0ccd10Smrg openrisc*:Linux:*:*) 9949d0ccd10Smrg echo or1k-unknown-linux-${LIBC} 995e6d5e4e0Smrg exit ;; 9969d0ccd10Smrg or32:Linux:*:* | or1k*:Linux:*:*) 9979d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9987914d74bSmrg exit ;; 999e8ead290Smrg padre:Linux:*:*) 10009d0ccd10Smrg echo sparc-unknown-linux-${LIBC} 10017914d74bSmrg exit ;; 1002e8ead290Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 10039d0ccd10Smrg echo hppa64-unknown-linux-${LIBC} 10047914d74bSmrg exit ;; 10057914d74bSmrg parisc:Linux:*:* | hppa:Linux:*:*) 10067914d74bSmrg # Look for CPU level 10077914d74bSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 10089d0ccd10Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 10099d0ccd10Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 10109d0ccd10Smrg *) echo hppa-unknown-linux-${LIBC} ;; 10117914d74bSmrg esac 10127914d74bSmrg exit ;; 1013e8ead290Smrg ppc64:Linux:*:*) 10149d0ccd10Smrg echo powerpc64-unknown-linux-${LIBC} 1015e8ead290Smrg exit ;; 1016e8ead290Smrg ppc:Linux:*:*) 10179d0ccd10Smrg echo powerpc-unknown-linux-${LIBC} 10189d0ccd10Smrg exit ;; 10199d0ccd10Smrg ppc64le:Linux:*:*) 10209d0ccd10Smrg echo powerpc64le-unknown-linux-${LIBC} 10219d0ccd10Smrg exit ;; 10229d0ccd10Smrg ppcle:Linux:*:*) 10239d0ccd10Smrg echo powerpcle-unknown-linux-${LIBC} 10247914d74bSmrg exit ;; 10257914d74bSmrg s390:Linux:*:* | s390x:Linux:*:*) 10269d0ccd10Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 10277914d74bSmrg exit ;; 10287914d74bSmrg sh64*:Linux:*:*) 10299d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10307914d74bSmrg exit ;; 10317914d74bSmrg sh*:Linux:*:*) 10329d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10337914d74bSmrg exit ;; 10347914d74bSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 10359d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10367914d74bSmrg exit ;; 1037e8ead290Smrg tile*:Linux:*:*) 10389d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1039e8ead290Smrg exit ;; 10407914d74bSmrg vax:Linux:*:*) 10419d0ccd10Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 10427914d74bSmrg exit ;; 10437914d74bSmrg x86_64:Linux:*:*) 10449d0ccd10Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 10457914d74bSmrg exit ;; 1046e169010aSmrg xtensa*:Linux:*:*) 10479d0ccd10Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10487914d74bSmrg exit ;; 10497914d74bSmrg i*86:DYNIX/ptx:4*:*) 10507914d74bSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10517914d74bSmrg # earlier versions are messed up and put the nodename in both 10527914d74bSmrg # sysname and nodename. 10537914d74bSmrg echo i386-sequent-sysv4 10547914d74bSmrg exit ;; 10557914d74bSmrg i*86:UNIX_SV:4.2MP:2.*) 1056e6d5e4e0Smrg # Unixware is an offshoot of SVR4, but it has its own version 1057e6d5e4e0Smrg # number series starting with 2... 1058e6d5e4e0Smrg # I am not positive that other SVR4 systems won't match this, 10597914d74bSmrg # I just have to hope. -- rms. 1060e6d5e4e0Smrg # Use sysv4.2uw... so that sysv4* matches it. 10617914d74bSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 10627914d74bSmrg exit ;; 10637914d74bSmrg i*86:OS/2:*:*) 10647914d74bSmrg # If we were able to find `uname', then EMX Unix compatibility 10657914d74bSmrg # is probably installed. 10667914d74bSmrg echo ${UNAME_MACHINE}-pc-os2-emx 10677914d74bSmrg exit ;; 10687914d74bSmrg i*86:XTS-300:*:STOP) 10697914d74bSmrg echo ${UNAME_MACHINE}-unknown-stop 10707914d74bSmrg exit ;; 10717914d74bSmrg i*86:atheos:*:*) 10727914d74bSmrg echo ${UNAME_MACHINE}-unknown-atheos 10737914d74bSmrg exit ;; 10747914d74bSmrg i*86:syllable:*:*) 10757914d74bSmrg echo ${UNAME_MACHINE}-pc-syllable 10767914d74bSmrg exit ;; 1077e8ead290Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 10787914d74bSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 10797914d74bSmrg exit ;; 10807914d74bSmrg i*86:*DOS:*:*) 10817914d74bSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 10827914d74bSmrg exit ;; 10837914d74bSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 10847914d74bSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 10857914d74bSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 10867914d74bSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 10877914d74bSmrg else 10887914d74bSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 10897914d74bSmrg fi 10907914d74bSmrg exit ;; 10917914d74bSmrg i*86:*:5:[678]*) 1092e6d5e4e0Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10937914d74bSmrg case `/bin/uname -X | grep "^Machine"` in 10947914d74bSmrg *486*) UNAME_MACHINE=i486 ;; 10957914d74bSmrg *Pentium) UNAME_MACHINE=i586 ;; 10967914d74bSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 10977914d74bSmrg esac 10987914d74bSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 10997914d74bSmrg exit ;; 11007914d74bSmrg i*86:*:3.2:*) 11017914d74bSmrg if test -f /usr/options/cb.name; then 11027914d74bSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 11037914d74bSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 11047914d74bSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 11057914d74bSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 11067914d74bSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 11077914d74bSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 11087914d74bSmrg && UNAME_MACHINE=i586 11097914d74bSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 11107914d74bSmrg && UNAME_MACHINE=i686 11117914d74bSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 11127914d74bSmrg && UNAME_MACHINE=i686 11137914d74bSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 11147914d74bSmrg else 11157914d74bSmrg echo ${UNAME_MACHINE}-pc-sysv32 11167914d74bSmrg fi 11177914d74bSmrg exit ;; 11187914d74bSmrg pc:*:*:*) 11197914d74bSmrg # Left here for compatibility: 1120e6d5e4e0Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 1121e6d5e4e0Smrg # the processor, so we play safe by assuming i586. 1122e8ead290Smrg # Note: whatever this is, it MUST be the same as what config.sub 1123e8ead290Smrg # prints for the "djgpp" host, or else GDB configury will decide that 1124e8ead290Smrg # this is a cross-build. 1125e8ead290Smrg echo i586-pc-msdosdjgpp 1126e6d5e4e0Smrg exit ;; 11277914d74bSmrg Intel:Mach:3*:*) 11287914d74bSmrg echo i386-pc-mach3 11297914d74bSmrg exit ;; 11307914d74bSmrg paragon:*:*:*) 11317914d74bSmrg echo i860-intel-osf1 11327914d74bSmrg exit ;; 11337914d74bSmrg i860:*:4.*:*) # i860-SVR4 11347914d74bSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 11357914d74bSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 11367914d74bSmrg else # Add other i860-SVR4 vendors below as they are discovered. 11377914d74bSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 11387914d74bSmrg fi 11397914d74bSmrg exit ;; 11407914d74bSmrg mini*:CTIX:SYS*5:*) 11417914d74bSmrg # "miniframe" 11427914d74bSmrg echo m68010-convergent-sysv 11437914d74bSmrg exit ;; 11447914d74bSmrg mc68k:UNIX:SYSTEM5:3.51m) 11457914d74bSmrg echo m68k-convergent-sysv 11467914d74bSmrg exit ;; 11477914d74bSmrg M680?0:D-NIX:5.3:*) 11487914d74bSmrg echo m68k-diab-dnix 11497914d74bSmrg exit ;; 11507914d74bSmrg M68*:*:R3V[5678]*:*) 11517914d74bSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11527914d74bSmrg 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 11537914d74bSmrg OS_REL='' 11547914d74bSmrg test -r /etc/.relid \ 11557914d74bSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11567914d74bSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11577914d74bSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11587914d74bSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11597914d74bSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11607914d74bSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1161e6d5e4e0Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1162e6d5e4e0Smrg && { echo i486-ncr-sysv4; exit; } ;; 1163e8ead290Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1164e8ead290Smrg OS_REL='.3' 1165e8ead290Smrg test -r /etc/.relid \ 1166e8ead290Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1167e8ead290Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1168e8ead290Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1169e8ead290Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1170e8ead290Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1171e8ead290Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1172e8ead290Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11737914d74bSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 11747914d74bSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 11757914d74bSmrg exit ;; 11767914d74bSmrg mc68030:UNIX_System_V:4.*:*) 11777914d74bSmrg echo m68k-atari-sysv4 11787914d74bSmrg exit ;; 11797914d74bSmrg TSUNAMI:LynxOS:2.*:*) 11807914d74bSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 11817914d74bSmrg exit ;; 11827914d74bSmrg rs6000:LynxOS:2.*:*) 11837914d74bSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 11847914d74bSmrg exit ;; 1185e8ead290Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 11867914d74bSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 11877914d74bSmrg exit ;; 11887914d74bSmrg SM[BE]S:UNIX_SV:*:*) 11897914d74bSmrg echo mips-dde-sysv${UNAME_RELEASE} 11907914d74bSmrg exit ;; 11917914d74bSmrg RM*:ReliantUNIX-*:*:*) 11927914d74bSmrg echo mips-sni-sysv4 11937914d74bSmrg exit ;; 11947914d74bSmrg RM*:SINIX-*:*:*) 11957914d74bSmrg echo mips-sni-sysv4 11967914d74bSmrg exit ;; 11977914d74bSmrg *:SINIX-*:*:*) 11987914d74bSmrg if uname -p 2>/dev/null >/dev/null ; then 11997914d74bSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 12007914d74bSmrg echo ${UNAME_MACHINE}-sni-sysv4 12017914d74bSmrg else 12027914d74bSmrg echo ns32k-sni-sysv 12037914d74bSmrg fi 12047914d74bSmrg exit ;; 1205e6d5e4e0Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1206e6d5e4e0Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 1207e6d5e4e0Smrg echo i586-unisys-sysv4 1208e6d5e4e0Smrg exit ;; 12097914d74bSmrg *:UNIX_System_V:4*:FTX*) 12107914d74bSmrg # From Gerald Hewes <hewes@openmarket.com>. 12117914d74bSmrg # How about differentiating between stratus architectures? -djm 12127914d74bSmrg echo hppa1.1-stratus-sysv4 12137914d74bSmrg exit ;; 12147914d74bSmrg *:*:*:FTX*) 12157914d74bSmrg # From seanf@swdc.stratus.com. 12167914d74bSmrg echo i860-stratus-sysv4 12177914d74bSmrg exit ;; 12187914d74bSmrg i*86:VOS:*:*) 12197914d74bSmrg # From Paul.Green@stratus.com. 12207914d74bSmrg echo ${UNAME_MACHINE}-stratus-vos 12217914d74bSmrg exit ;; 12227914d74bSmrg *:VOS:*:*) 12237914d74bSmrg # From Paul.Green@stratus.com. 12247914d74bSmrg echo hppa1.1-stratus-vos 12257914d74bSmrg exit ;; 12267914d74bSmrg mc68*:A/UX:*:*) 12277914d74bSmrg echo m68k-apple-aux${UNAME_RELEASE} 12287914d74bSmrg exit ;; 12297914d74bSmrg news*:NEWS-OS:6*:*) 12307914d74bSmrg echo mips-sony-newsos6 12317914d74bSmrg exit ;; 12327914d74bSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12337914d74bSmrg if [ -d /usr/nec ]; then 1234e6d5e4e0Smrg echo mips-nec-sysv${UNAME_RELEASE} 12357914d74bSmrg else 1236e6d5e4e0Smrg echo mips-unknown-sysv${UNAME_RELEASE} 12377914d74bSmrg fi 1238e6d5e4e0Smrg exit ;; 12397914d74bSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12407914d74bSmrg echo powerpc-be-beos 12417914d74bSmrg exit ;; 12427914d74bSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12437914d74bSmrg echo powerpc-apple-beos 12447914d74bSmrg exit ;; 12457914d74bSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12467914d74bSmrg echo i586-pc-beos 12477914d74bSmrg exit ;; 1248e8ead290Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1249e8ead290Smrg echo i586-pc-haiku 1250e8ead290Smrg exit ;; 1251e6d5e4e0Smrg x86_64:Haiku:*:*) 1252e6d5e4e0Smrg echo x86_64-unknown-haiku 1253e6d5e4e0Smrg exit ;; 12547914d74bSmrg SX-4:SUPER-UX:*:*) 12557914d74bSmrg echo sx4-nec-superux${UNAME_RELEASE} 12567914d74bSmrg exit ;; 12577914d74bSmrg SX-5:SUPER-UX:*:*) 12587914d74bSmrg echo sx5-nec-superux${UNAME_RELEASE} 12597914d74bSmrg exit ;; 12607914d74bSmrg SX-6:SUPER-UX:*:*) 12617914d74bSmrg echo sx6-nec-superux${UNAME_RELEASE} 12627914d74bSmrg exit ;; 12637914d74bSmrg SX-7:SUPER-UX:*:*) 12647914d74bSmrg echo sx7-nec-superux${UNAME_RELEASE} 12657914d74bSmrg exit ;; 12667914d74bSmrg SX-8:SUPER-UX:*:*) 12677914d74bSmrg echo sx8-nec-superux${UNAME_RELEASE} 12687914d74bSmrg exit ;; 12697914d74bSmrg SX-8R:SUPER-UX:*:*) 12707914d74bSmrg echo sx8r-nec-superux${UNAME_RELEASE} 12717914d74bSmrg exit ;; 12727914d74bSmrg Power*:Rhapsody:*:*) 12737914d74bSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 12747914d74bSmrg exit ;; 12757914d74bSmrg *:Rhapsody:*:*) 12767914d74bSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12777914d74bSmrg exit ;; 12787914d74bSmrg *:Darwin:*:*) 12797914d74bSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 12809d0ccd10Smrg eval $set_cc_for_build 12819d0ccd10Smrg if test "$UNAME_PROCESSOR" = unknown ; then 12829d0ccd10Smrg UNAME_PROCESSOR=powerpc 12839d0ccd10Smrg fi 12849d0ccd10Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 12859d0ccd10Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 12869d0ccd10Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 12879d0ccd10Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 12889d0ccd10Smrg grep IS_64BIT_ARCH >/dev/null 12899d0ccd10Smrg then 12909d0ccd10Smrg case $UNAME_PROCESSOR in 12919d0ccd10Smrg i386) UNAME_PROCESSOR=x86_64 ;; 12929d0ccd10Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 12939d0ccd10Smrg esac 12949d0ccd10Smrg fi 12959d0ccd10Smrg fi 12969d0ccd10Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 12979d0ccd10Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 12989d0ccd10Smrg # that puts up a graphical alert prompting to install 12999d0ccd10Smrg # developer tools. Any system running Mac OS X 10.7 or 13009d0ccd10Smrg # later (Darwin 11 and later) is required to have a 64-bit 13019d0ccd10Smrg # processor. This is not true of the ARM version of Darwin 13029d0ccd10Smrg # that Apple uses in portable devices. 13039d0ccd10Smrg UNAME_PROCESSOR=x86_64 13049d0ccd10Smrg fi 13057914d74bSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 13067914d74bSmrg exit ;; 13077914d74bSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 13087914d74bSmrg UNAME_PROCESSOR=`uname -p` 13097914d74bSmrg if test "$UNAME_PROCESSOR" = "x86"; then 13107914d74bSmrg UNAME_PROCESSOR=i386 13117914d74bSmrg UNAME_MACHINE=pc 13127914d74bSmrg fi 13137914d74bSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 13147914d74bSmrg exit ;; 13157914d74bSmrg *:QNX:*:4*) 13167914d74bSmrg echo i386-pc-qnx 13177914d74bSmrg exit ;; 1318e6d5e4e0Smrg NEO-?:NONSTOP_KERNEL:*:*) 1319e6d5e4e0Smrg echo neo-tandem-nsk${UNAME_RELEASE} 1320e6d5e4e0Smrg exit ;; 1321e6d5e4e0Smrg NSE-*:NONSTOP_KERNEL:*:*) 13227914d74bSmrg echo nse-tandem-nsk${UNAME_RELEASE} 13237914d74bSmrg exit ;; 13247914d74bSmrg NSR-?:NONSTOP_KERNEL:*:*) 13257914d74bSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 13267914d74bSmrg exit ;; 13277914d74bSmrg *:NonStop-UX:*:*) 13287914d74bSmrg echo mips-compaq-nonstopux 13297914d74bSmrg exit ;; 13307914d74bSmrg BS2000:POSIX*:*:*) 13317914d74bSmrg echo bs2000-siemens-sysv 13327914d74bSmrg exit ;; 13337914d74bSmrg DS/*:UNIX_System_V:*:*) 13347914d74bSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 13357914d74bSmrg exit ;; 13367914d74bSmrg *:Plan9:*:*) 13377914d74bSmrg # "uname -m" is not consistent, so use $cputype instead. 386 13387914d74bSmrg # is converted to i386 for consistency with other x86 13397914d74bSmrg # operating systems. 13407914d74bSmrg if test "$cputype" = "386"; then 13417914d74bSmrg UNAME_MACHINE=i386 13427914d74bSmrg else 13437914d74bSmrg UNAME_MACHINE="$cputype" 13447914d74bSmrg fi 13457914d74bSmrg echo ${UNAME_MACHINE}-unknown-plan9 13467914d74bSmrg exit ;; 13477914d74bSmrg *:TOPS-10:*:*) 13487914d74bSmrg echo pdp10-unknown-tops10 13497914d74bSmrg exit ;; 13507914d74bSmrg *:TENEX:*:*) 13517914d74bSmrg echo pdp10-unknown-tenex 13527914d74bSmrg exit ;; 13537914d74bSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 13547914d74bSmrg echo pdp10-dec-tops20 13557914d74bSmrg exit ;; 13567914d74bSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 13577914d74bSmrg echo pdp10-xkl-tops20 13587914d74bSmrg exit ;; 13597914d74bSmrg *:TOPS-20:*:*) 13607914d74bSmrg echo pdp10-unknown-tops20 13617914d74bSmrg exit ;; 13627914d74bSmrg *:ITS:*:*) 13637914d74bSmrg echo pdp10-unknown-its 13647914d74bSmrg exit ;; 13657914d74bSmrg SEI:*:*:SEIUX) 1366e6d5e4e0Smrg echo mips-sei-seiux${UNAME_RELEASE} 13677914d74bSmrg exit ;; 13687914d74bSmrg *:DragonFly:*:*) 13697914d74bSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 13707914d74bSmrg exit ;; 13717914d74bSmrg *:*VMS:*:*) 1372e6d5e4e0Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 13737914d74bSmrg case "${UNAME_MACHINE}" in 13747914d74bSmrg A*) echo alpha-dec-vms ; exit ;; 13757914d74bSmrg I*) echo ia64-dec-vms ; exit ;; 13767914d74bSmrg V*) echo vax-dec-vms ; exit ;; 13777914d74bSmrg esac ;; 13787914d74bSmrg *:XENIX:*:SysV) 13797914d74bSmrg echo i386-pc-xenix 13807914d74bSmrg exit ;; 13817914d74bSmrg i*86:skyos:*:*) 13827914d74bSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 13837914d74bSmrg exit ;; 13847914d74bSmrg i*86:rdos:*:*) 13857914d74bSmrg echo ${UNAME_MACHINE}-pc-rdos 13867914d74bSmrg exit ;; 1387e8ead290Smrg i*86:AROS:*:*) 1388e8ead290Smrg echo ${UNAME_MACHINE}-pc-aros 1389e8ead290Smrg exit ;; 1390e6d5e4e0Smrg x86_64:VMkernel:*:*) 1391e6d5e4e0Smrg echo ${UNAME_MACHINE}-unknown-esx 1392e6d5e4e0Smrg exit ;; 13937914d74bSmrgesac 13947914d74bSmrg 13957914d74bSmrgcat >&2 <<EOF 13967914d74bSmrg$0: unable to guess system type 13977914d74bSmrg 13987914d74bSmrgThis script, last modified $timestamp, has failed to recognize 13997914d74bSmrgthe operating system you are using. It is advised that you 14007914d74bSmrgdownload the most up to date version of the config scripts from 14017914d74bSmrg 1402e169010aSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 14037914d74bSmrgand 1404e169010aSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 14057914d74bSmrg 14067914d74bSmrgIf the version you run ($0) is already up to date, please 14077914d74bSmrgsend the following data and any information you think might be 14087914d74bSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 14097914d74bSmrginformation to handle your system. 14107914d74bSmrg 14117914d74bSmrgconfig.guess timestamp = $timestamp 14127914d74bSmrg 14137914d74bSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 14147914d74bSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 14157914d74bSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 14167914d74bSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 14177914d74bSmrg 14187914d74bSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 14197914d74bSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 14207914d74bSmrg 14217914d74bSmrghostinfo = `(hostinfo) 2>/dev/null` 14227914d74bSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 14237914d74bSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 14247914d74bSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 14257914d74bSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 14267914d74bSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 14277914d74bSmrg 14287914d74bSmrgUNAME_MACHINE = ${UNAME_MACHINE} 14297914d74bSmrgUNAME_RELEASE = ${UNAME_RELEASE} 14307914d74bSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 14317914d74bSmrgUNAME_VERSION = ${UNAME_VERSION} 14327914d74bSmrgEOF 14337914d74bSmrg 14347914d74bSmrgexit 1 14357914d74bSmrg 14367914d74bSmrg# Local variables: 14377914d74bSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 14387914d74bSmrg# time-stamp-start: "timestamp='" 14397914d74bSmrg# time-stamp-format: "%:y-%02m-%02d" 14407914d74bSmrg# time-stamp-end: "'" 14417914d74bSmrg# End: 1442