Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | # Attempt to guess a canonical system name. |
michael@0 | 3 | # Copyright 1992-2014 Free Software Foundation, Inc. |
michael@0 | 4 | |
michael@0 | 5 | timestamp='2014-02-12' |
michael@0 | 6 | |
michael@0 | 7 | # This file is free software; you can redistribute it and/or modify it |
michael@0 | 8 | # under the terms of the GNU General Public License as published by |
michael@0 | 9 | # the Free Software Foundation; either version 3 of the License, or |
michael@0 | 10 | # (at your option) any later version. |
michael@0 | 11 | # |
michael@0 | 12 | # This program is distributed in the hope that it will be useful, but |
michael@0 | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
michael@0 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
michael@0 | 15 | # General Public License for more details. |
michael@0 | 16 | # |
michael@0 | 17 | # You should have received a copy of the GNU General Public License |
michael@0 | 18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
michael@0 | 19 | # |
michael@0 | 20 | # As a special exception to the GNU General Public License, if you |
michael@0 | 21 | # distribute this file as part of a program that contains a |
michael@0 | 22 | # configuration script generated by Autoconf, you may include it under |
michael@0 | 23 | # the same distribution terms that you use for the rest of that |
michael@0 | 24 | # program. This Exception is an additional permission under section 7 |
michael@0 | 25 | # of the GNU General Public License, version 3 ("GPLv3"). |
michael@0 | 26 | # |
michael@0 | 27 | # Originally written by Per Bothner. |
michael@0 | 28 | # |
michael@0 | 29 | # You can get the latest version of this script from: |
michael@0 | 30 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
michael@0 | 31 | # |
michael@0 | 32 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. |
michael@0 | 33 | |
michael@0 | 34 | |
michael@0 | 35 | me=`echo "$0" | sed -e 's,.*/,,'` |
michael@0 | 36 | |
michael@0 | 37 | usage="\ |
michael@0 | 38 | Usage: $0 [OPTION] |
michael@0 | 39 | |
michael@0 | 40 | Output the configuration name of the system \`$me' is run on. |
michael@0 | 41 | |
michael@0 | 42 | Operation modes: |
michael@0 | 43 | -h, --help print this help, then exit |
michael@0 | 44 | -t, --time-stamp print date of last modification, then exit |
michael@0 | 45 | -v, --version print version number, then exit |
michael@0 | 46 | |
michael@0 | 47 | Report bugs and patches to <config-patches@gnu.org>." |
michael@0 | 48 | |
michael@0 | 49 | version="\ |
michael@0 | 50 | GNU config.guess ($timestamp) |
michael@0 | 51 | |
michael@0 | 52 | Originally written by Per Bothner. |
michael@0 | 53 | Copyright 1992-2014 Free Software Foundation, Inc. |
michael@0 | 54 | |
michael@0 | 55 | This is free software; see the source for copying conditions. There is NO |
michael@0 | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
michael@0 | 57 | |
michael@0 | 58 | help=" |
michael@0 | 59 | Try \`$me --help' for more information." |
michael@0 | 60 | |
michael@0 | 61 | # Parse command line |
michael@0 | 62 | while test $# -gt 0 ; do |
michael@0 | 63 | case $1 in |
michael@0 | 64 | --time-stamp | --time* | -t ) |
michael@0 | 65 | echo "$timestamp" ; exit ;; |
michael@0 | 66 | --version | -v ) |
michael@0 | 67 | echo "$version" ; exit ;; |
michael@0 | 68 | --help | --h* | -h ) |
michael@0 | 69 | echo "$usage"; exit ;; |
michael@0 | 70 | -- ) # Stop option processing |
michael@0 | 71 | shift; break ;; |
michael@0 | 72 | - ) # Use stdin as input. |
michael@0 | 73 | break ;; |
michael@0 | 74 | -* ) |
michael@0 | 75 | echo "$me: invalid option $1$help" >&2 |
michael@0 | 76 | exit 1 ;; |
michael@0 | 77 | * ) |
michael@0 | 78 | break ;; |
michael@0 | 79 | esac |
michael@0 | 80 | done |
michael@0 | 81 | |
michael@0 | 82 | if test $# != 0; then |
michael@0 | 83 | echo "$me: too many arguments$help" >&2 |
michael@0 | 84 | exit 1 |
michael@0 | 85 | fi |
michael@0 | 86 | |
michael@0 | 87 | trap 'exit 1' 1 2 15 |
michael@0 | 88 | |
michael@0 | 89 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
michael@0 | 90 | # compiler to aid in system detection is discouraged as it requires |
michael@0 | 91 | # temporary files to be created and, as you can see below, it is a |
michael@0 | 92 | # headache to deal with in a portable fashion. |
michael@0 | 93 | |
michael@0 | 94 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
michael@0 | 95 | # use `HOST_CC' if defined, but it is deprecated. |
michael@0 | 96 | |
michael@0 | 97 | # Portable tmp directory creation inspired by the Autoconf team. |
michael@0 | 98 | |
michael@0 | 99 | set_cc_for_build=' |
michael@0 | 100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
michael@0 | 101 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
michael@0 | 102 | : ${TMPDIR=/tmp} ; |
michael@0 | 103 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
michael@0 | 104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
michael@0 | 105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
michael@0 | 106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
michael@0 | 107 | dummy=$tmp/dummy ; |
michael@0 | 108 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
michael@0 | 109 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
michael@0 | 110 | ,,) echo "int x;" > $dummy.c ; |
michael@0 | 111 | for c in cc gcc c89 c99 ; do |
michael@0 | 112 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then |
michael@0 | 113 | CC_FOR_BUILD="$c"; break ; |
michael@0 | 114 | fi ; |
michael@0 | 115 | done ; |
michael@0 | 116 | if test x"$CC_FOR_BUILD" = x ; then |
michael@0 | 117 | CC_FOR_BUILD=no_compiler_found ; |
michael@0 | 118 | fi |
michael@0 | 119 | ;; |
michael@0 | 120 | ,,*) CC_FOR_BUILD=$CC ;; |
michael@0 | 121 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
michael@0 | 122 | esac ; set_cc_for_build= ;' |
michael@0 | 123 | |
michael@0 | 124 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
michael@0 | 125 | # (ghazi@noc.rutgers.edu 1994-08-24) |
michael@0 | 126 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
michael@0 | 127 | PATH=$PATH:/.attbin ; export PATH |
michael@0 | 128 | fi |
michael@0 | 129 | |
michael@0 | 130 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
michael@0 | 131 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
michael@0 | 132 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
michael@0 | 133 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
michael@0 | 134 | |
michael@0 | 135 | case "${UNAME_SYSTEM}" in |
michael@0 | 136 | Linux|GNU|GNU/*) |
michael@0 | 137 | # If the system lacks a compiler, then just pick glibc. |
michael@0 | 138 | # We could probably try harder. |
michael@0 | 139 | LIBC=gnu |
michael@0 | 140 | |
michael@0 | 141 | eval $set_cc_for_build |
michael@0 | 142 | cat <<-EOF > $dummy.c |
michael@0 | 143 | #include <features.h> |
michael@0 | 144 | #if defined(__UCLIBC__) |
michael@0 | 145 | LIBC=uclibc |
michael@0 | 146 | #elif defined(__dietlibc__) |
michael@0 | 147 | LIBC=dietlibc |
michael@0 | 148 | #else |
michael@0 | 149 | LIBC=gnu |
michael@0 | 150 | #endif |
michael@0 | 151 | EOF |
michael@0 | 152 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
michael@0 | 153 | ;; |
michael@0 | 154 | esac |
michael@0 | 155 | |
michael@0 | 156 | # Note: order is significant - the case branches are not exclusive. |
michael@0 | 157 | |
michael@0 | 158 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
michael@0 | 159 | *:NetBSD:*:*) |
michael@0 | 160 | # NetBSD (nbsd) targets should (where applicable) match one or |
michael@0 | 161 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
michael@0 | 162 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
michael@0 | 163 | # switched to ELF, *-*-netbsd* would select the old |
michael@0 | 164 | # object file format. This provides both forward |
michael@0 | 165 | # compatibility and a consistent mechanism for selecting the |
michael@0 | 166 | # object file format. |
michael@0 | 167 | # |
michael@0 | 168 | # Note: NetBSD doesn't particularly care about the vendor |
michael@0 | 169 | # portion of the name. We always set it to "unknown". |
michael@0 | 170 | sysctl="sysctl -n hw.machine_arch" |
michael@0 | 171 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
michael@0 | 172 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
michael@0 | 173 | case "${UNAME_MACHINE_ARCH}" in |
michael@0 | 174 | armeb) machine=armeb-unknown ;; |
michael@0 | 175 | arm*) machine=arm-unknown ;; |
michael@0 | 176 | sh3el) machine=shl-unknown ;; |
michael@0 | 177 | sh3eb) machine=sh-unknown ;; |
michael@0 | 178 | sh5el) machine=sh5le-unknown ;; |
michael@0 | 179 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
michael@0 | 180 | esac |
michael@0 | 181 | # The Operating System including object format, if it has switched |
michael@0 | 182 | # to ELF recently, or will in the future. |
michael@0 | 183 | case "${UNAME_MACHINE_ARCH}" in |
michael@0 | 184 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
michael@0 | 185 | eval $set_cc_for_build |
michael@0 | 186 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
michael@0 | 187 | | grep -q __ELF__ |
michael@0 | 188 | then |
michael@0 | 189 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
michael@0 | 190 | # Return netbsd for either. FIX? |
michael@0 | 191 | os=netbsd |
michael@0 | 192 | else |
michael@0 | 193 | os=netbsdelf |
michael@0 | 194 | fi |
michael@0 | 195 | ;; |
michael@0 | 196 | *) |
michael@0 | 197 | os=netbsd |
michael@0 | 198 | ;; |
michael@0 | 199 | esac |
michael@0 | 200 | # The OS release |
michael@0 | 201 | # Debian GNU/NetBSD machines have a different userland, and |
michael@0 | 202 | # thus, need a distinct triplet. However, they do not need |
michael@0 | 203 | # kernel version information, so it can be replaced with a |
michael@0 | 204 | # suitable tag, in the style of linux-gnu. |
michael@0 | 205 | case "${UNAME_VERSION}" in |
michael@0 | 206 | Debian*) |
michael@0 | 207 | release='-gnu' |
michael@0 | 208 | ;; |
michael@0 | 209 | *) |
michael@0 | 210 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
michael@0 | 211 | ;; |
michael@0 | 212 | esac |
michael@0 | 213 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
michael@0 | 214 | # contains redundant information, the shorter form: |
michael@0 | 215 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
michael@0 | 216 | echo "${machine}-${os}${release}" |
michael@0 | 217 | exit ;; |
michael@0 | 218 | *:Bitrig:*:*) |
michael@0 | 219 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
michael@0 | 220 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} |
michael@0 | 221 | exit ;; |
michael@0 | 222 | *:OpenBSD:*:*) |
michael@0 | 223 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
michael@0 | 224 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
michael@0 | 225 | exit ;; |
michael@0 | 226 | *:ekkoBSD:*:*) |
michael@0 | 227 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
michael@0 | 228 | exit ;; |
michael@0 | 229 | *:SolidBSD:*:*) |
michael@0 | 230 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
michael@0 | 231 | exit ;; |
michael@0 | 232 | macppc:MirBSD:*:*) |
michael@0 | 233 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
michael@0 | 234 | exit ;; |
michael@0 | 235 | *:MirBSD:*:*) |
michael@0 | 236 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
michael@0 | 237 | exit ;; |
michael@0 | 238 | alpha:OSF1:*:*) |
michael@0 | 239 | case $UNAME_RELEASE in |
michael@0 | 240 | *4.0) |
michael@0 | 241 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
michael@0 | 242 | ;; |
michael@0 | 243 | *5.*) |
michael@0 | 244 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
michael@0 | 245 | ;; |
michael@0 | 246 | esac |
michael@0 | 247 | # According to Compaq, /usr/sbin/psrinfo has been available on |
michael@0 | 248 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
michael@0 | 249 | # covers most systems running today. This code pipes the CPU |
michael@0 | 250 | # types through head -n 1, so we only detect the type of CPU 0. |
michael@0 | 251 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
michael@0 | 252 | case "$ALPHA_CPU_TYPE" in |
michael@0 | 253 | "EV4 (21064)") |
michael@0 | 254 | UNAME_MACHINE="alpha" ;; |
michael@0 | 255 | "EV4.5 (21064)") |
michael@0 | 256 | UNAME_MACHINE="alpha" ;; |
michael@0 | 257 | "LCA4 (21066/21068)") |
michael@0 | 258 | UNAME_MACHINE="alpha" ;; |
michael@0 | 259 | "EV5 (21164)") |
michael@0 | 260 | UNAME_MACHINE="alphaev5" ;; |
michael@0 | 261 | "EV5.6 (21164A)") |
michael@0 | 262 | UNAME_MACHINE="alphaev56" ;; |
michael@0 | 263 | "EV5.6 (21164PC)") |
michael@0 | 264 | UNAME_MACHINE="alphapca56" ;; |
michael@0 | 265 | "EV5.7 (21164PC)") |
michael@0 | 266 | UNAME_MACHINE="alphapca57" ;; |
michael@0 | 267 | "EV6 (21264)") |
michael@0 | 268 | UNAME_MACHINE="alphaev6" ;; |
michael@0 | 269 | "EV6.7 (21264A)") |
michael@0 | 270 | UNAME_MACHINE="alphaev67" ;; |
michael@0 | 271 | "EV6.8CB (21264C)") |
michael@0 | 272 | UNAME_MACHINE="alphaev68" ;; |
michael@0 | 273 | "EV6.8AL (21264B)") |
michael@0 | 274 | UNAME_MACHINE="alphaev68" ;; |
michael@0 | 275 | "EV6.8CX (21264D)") |
michael@0 | 276 | UNAME_MACHINE="alphaev68" ;; |
michael@0 | 277 | "EV6.9A (21264/EV69A)") |
michael@0 | 278 | UNAME_MACHINE="alphaev69" ;; |
michael@0 | 279 | "EV7 (21364)") |
michael@0 | 280 | UNAME_MACHINE="alphaev7" ;; |
michael@0 | 281 | "EV7.9 (21364A)") |
michael@0 | 282 | UNAME_MACHINE="alphaev79" ;; |
michael@0 | 283 | esac |
michael@0 | 284 | # A Pn.n version is a patched version. |
michael@0 | 285 | # A Vn.n version is a released version. |
michael@0 | 286 | # A Tn.n version is a released field test version. |
michael@0 | 287 | # A Xn.n version is an unreleased experimental baselevel. |
michael@0 | 288 | # 1.2 uses "1.2" for uname -r. |
michael@0 | 289 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
michael@0 | 290 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
michael@0 | 291 | exitcode=$? |
michael@0 | 292 | trap '' 0 |
michael@0 | 293 | exit $exitcode ;; |
michael@0 | 294 | Alpha\ *:Windows_NT*:*) |
michael@0 | 295 | # How do we know it's Interix rather than the generic POSIX subsystem? |
michael@0 | 296 | # Should we change UNAME_MACHINE based on the output of uname instead |
michael@0 | 297 | # of the specific Alpha model? |
michael@0 | 298 | echo alpha-pc-interix |
michael@0 | 299 | exit ;; |
michael@0 | 300 | 21064:Windows_NT:50:3) |
michael@0 | 301 | echo alpha-dec-winnt3.5 |
michael@0 | 302 | exit ;; |
michael@0 | 303 | Amiga*:UNIX_System_V:4.0:*) |
michael@0 | 304 | echo m68k-unknown-sysv4 |
michael@0 | 305 | exit ;; |
michael@0 | 306 | *:[Aa]miga[Oo][Ss]:*:*) |
michael@0 | 307 | echo ${UNAME_MACHINE}-unknown-amigaos |
michael@0 | 308 | exit ;; |
michael@0 | 309 | *:[Mm]orph[Oo][Ss]:*:*) |
michael@0 | 310 | echo ${UNAME_MACHINE}-unknown-morphos |
michael@0 | 311 | exit ;; |
michael@0 | 312 | *:OS/390:*:*) |
michael@0 | 313 | echo i370-ibm-openedition |
michael@0 | 314 | exit ;; |
michael@0 | 315 | *:z/VM:*:*) |
michael@0 | 316 | echo s390-ibm-zvmoe |
michael@0 | 317 | exit ;; |
michael@0 | 318 | *:OS400:*:*) |
michael@0 | 319 | echo powerpc-ibm-os400 |
michael@0 | 320 | exit ;; |
michael@0 | 321 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
michael@0 | 322 | echo arm-acorn-riscix${UNAME_RELEASE} |
michael@0 | 323 | exit ;; |
michael@0 | 324 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
michael@0 | 325 | echo arm-unknown-riscos |
michael@0 | 326 | exit ;; |
michael@0 | 327 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
michael@0 | 328 | echo hppa1.1-hitachi-hiuxmpp |
michael@0 | 329 | exit ;; |
michael@0 | 330 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
michael@0 | 331 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
michael@0 | 332 | if test "`(/bin/universe) 2>/dev/null`" = att ; then |
michael@0 | 333 | echo pyramid-pyramid-sysv3 |
michael@0 | 334 | else |
michael@0 | 335 | echo pyramid-pyramid-bsd |
michael@0 | 336 | fi |
michael@0 | 337 | exit ;; |
michael@0 | 338 | NILE*:*:*:dcosx) |
michael@0 | 339 | echo pyramid-pyramid-svr4 |
michael@0 | 340 | exit ;; |
michael@0 | 341 | DRS?6000:unix:4.0:6*) |
michael@0 | 342 | echo sparc-icl-nx6 |
michael@0 | 343 | exit ;; |
michael@0 | 344 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
michael@0 | 345 | case `/usr/bin/uname -p` in |
michael@0 | 346 | sparc) echo sparc-icl-nx7; exit ;; |
michael@0 | 347 | esac ;; |
michael@0 | 348 | s390x:SunOS:*:*) |
michael@0 | 349 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 350 | exit ;; |
michael@0 | 351 | sun4H:SunOS:5.*:*) |
michael@0 | 352 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 353 | exit ;; |
michael@0 | 354 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
michael@0 | 355 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 356 | exit ;; |
michael@0 | 357 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
michael@0 | 358 | echo i386-pc-auroraux${UNAME_RELEASE} |
michael@0 | 359 | exit ;; |
michael@0 | 360 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
michael@0 | 361 | eval $set_cc_for_build |
michael@0 | 362 | SUN_ARCH="i386" |
michael@0 | 363 | # If there is a compiler, see if it is configured for 64-bit objects. |
michael@0 | 364 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
michael@0 | 365 | # This test works for both compilers. |
michael@0 | 366 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
michael@0 | 367 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
michael@0 | 368 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
michael@0 | 369 | grep IS_64BIT_ARCH >/dev/null |
michael@0 | 370 | then |
michael@0 | 371 | SUN_ARCH="x86_64" |
michael@0 | 372 | fi |
michael@0 | 373 | fi |
michael@0 | 374 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 375 | exit ;; |
michael@0 | 376 | sun4*:SunOS:6*:*) |
michael@0 | 377 | # According to config.sub, this is the proper way to canonicalize |
michael@0 | 378 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
michael@0 | 379 | # it's likely to be more like Solaris than SunOS4. |
michael@0 | 380 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 381 | exit ;; |
michael@0 | 382 | sun4*:SunOS:*:*) |
michael@0 | 383 | case "`/usr/bin/arch -k`" in |
michael@0 | 384 | Series*|S4*) |
michael@0 | 385 | UNAME_RELEASE=`uname -v` |
michael@0 | 386 | ;; |
michael@0 | 387 | esac |
michael@0 | 388 | # Japanese Language versions have a version number like `4.1.3-JL'. |
michael@0 | 389 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
michael@0 | 390 | exit ;; |
michael@0 | 391 | sun3*:SunOS:*:*) |
michael@0 | 392 | echo m68k-sun-sunos${UNAME_RELEASE} |
michael@0 | 393 | exit ;; |
michael@0 | 394 | sun*:*:4.2BSD:*) |
michael@0 | 395 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
michael@0 | 396 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
michael@0 | 397 | case "`/bin/arch`" in |
michael@0 | 398 | sun3) |
michael@0 | 399 | echo m68k-sun-sunos${UNAME_RELEASE} |
michael@0 | 400 | ;; |
michael@0 | 401 | sun4) |
michael@0 | 402 | echo sparc-sun-sunos${UNAME_RELEASE} |
michael@0 | 403 | ;; |
michael@0 | 404 | esac |
michael@0 | 405 | exit ;; |
michael@0 | 406 | aushp:SunOS:*:*) |
michael@0 | 407 | echo sparc-auspex-sunos${UNAME_RELEASE} |
michael@0 | 408 | exit ;; |
michael@0 | 409 | # The situation for MiNT is a little confusing. The machine name |
michael@0 | 410 | # can be virtually everything (everything which is not |
michael@0 | 411 | # "atarist" or "atariste" at least should have a processor |
michael@0 | 412 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
michael@0 | 413 | # to the lowercase version "mint" (or "freemint"). Finally |
michael@0 | 414 | # the system name "TOS" denotes a system which is actually not |
michael@0 | 415 | # MiNT. But MiNT is downward compatible to TOS, so this should |
michael@0 | 416 | # be no problem. |
michael@0 | 417 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
michael@0 | 418 | echo m68k-atari-mint${UNAME_RELEASE} |
michael@0 | 419 | exit ;; |
michael@0 | 420 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
michael@0 | 421 | echo m68k-atari-mint${UNAME_RELEASE} |
michael@0 | 422 | exit ;; |
michael@0 | 423 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
michael@0 | 424 | echo m68k-atari-mint${UNAME_RELEASE} |
michael@0 | 425 | exit ;; |
michael@0 | 426 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
michael@0 | 427 | echo m68k-milan-mint${UNAME_RELEASE} |
michael@0 | 428 | exit ;; |
michael@0 | 429 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
michael@0 | 430 | echo m68k-hades-mint${UNAME_RELEASE} |
michael@0 | 431 | exit ;; |
michael@0 | 432 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
michael@0 | 433 | echo m68k-unknown-mint${UNAME_RELEASE} |
michael@0 | 434 | exit ;; |
michael@0 | 435 | m68k:machten:*:*) |
michael@0 | 436 | echo m68k-apple-machten${UNAME_RELEASE} |
michael@0 | 437 | exit ;; |
michael@0 | 438 | powerpc:machten:*:*) |
michael@0 | 439 | echo powerpc-apple-machten${UNAME_RELEASE} |
michael@0 | 440 | exit ;; |
michael@0 | 441 | RISC*:Mach:*:*) |
michael@0 | 442 | echo mips-dec-mach_bsd4.3 |
michael@0 | 443 | exit ;; |
michael@0 | 444 | RISC*:ULTRIX:*:*) |
michael@0 | 445 | echo mips-dec-ultrix${UNAME_RELEASE} |
michael@0 | 446 | exit ;; |
michael@0 | 447 | VAX*:ULTRIX*:*:*) |
michael@0 | 448 | echo vax-dec-ultrix${UNAME_RELEASE} |
michael@0 | 449 | exit ;; |
michael@0 | 450 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
michael@0 | 451 | echo clipper-intergraph-clix${UNAME_RELEASE} |
michael@0 | 452 | exit ;; |
michael@0 | 453 | mips:*:*:UMIPS | mips:*:*:RISCos) |
michael@0 | 454 | eval $set_cc_for_build |
michael@0 | 455 | sed 's/^ //' << EOF >$dummy.c |
michael@0 | 456 | #ifdef __cplusplus |
michael@0 | 457 | #include <stdio.h> /* for printf() prototype */ |
michael@0 | 458 | int main (int argc, char *argv[]) { |
michael@0 | 459 | #else |
michael@0 | 460 | int main (argc, argv) int argc; char *argv[]; { |
michael@0 | 461 | #endif |
michael@0 | 462 | #if defined (host_mips) && defined (MIPSEB) |
michael@0 | 463 | #if defined (SYSTYPE_SYSV) |
michael@0 | 464 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); |
michael@0 | 465 | #endif |
michael@0 | 466 | #if defined (SYSTYPE_SVR4) |
michael@0 | 467 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); |
michael@0 | 468 | #endif |
michael@0 | 469 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
michael@0 | 470 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); |
michael@0 | 471 | #endif |
michael@0 | 472 | #endif |
michael@0 | 473 | exit (-1); |
michael@0 | 474 | } |
michael@0 | 475 | EOF |
michael@0 | 476 | $CC_FOR_BUILD -o $dummy $dummy.c && |
michael@0 | 477 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && |
michael@0 | 478 | SYSTEM_NAME=`$dummy $dummyarg` && |
michael@0 | 479 | { echo "$SYSTEM_NAME"; exit; } |
michael@0 | 480 | echo mips-mips-riscos${UNAME_RELEASE} |
michael@0 | 481 | exit ;; |
michael@0 | 482 | Motorola:PowerMAX_OS:*:*) |
michael@0 | 483 | echo powerpc-motorola-powermax |
michael@0 | 484 | exit ;; |
michael@0 | 485 | Motorola:*:4.3:PL8-*) |
michael@0 | 486 | echo powerpc-harris-powermax |
michael@0 | 487 | exit ;; |
michael@0 | 488 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
michael@0 | 489 | echo powerpc-harris-powermax |
michael@0 | 490 | exit ;; |
michael@0 | 491 | Night_Hawk:Power_UNIX:*:*) |
michael@0 | 492 | echo powerpc-harris-powerunix |
michael@0 | 493 | exit ;; |
michael@0 | 494 | m88k:CX/UX:7*:*) |
michael@0 | 495 | echo m88k-harris-cxux7 |
michael@0 | 496 | exit ;; |
michael@0 | 497 | m88k:*:4*:R4*) |
michael@0 | 498 | echo m88k-motorola-sysv4 |
michael@0 | 499 | exit ;; |
michael@0 | 500 | m88k:*:3*:R3*) |
michael@0 | 501 | echo m88k-motorola-sysv3 |
michael@0 | 502 | exit ;; |
michael@0 | 503 | AViiON:dgux:*:*) |
michael@0 | 504 | # DG/UX returns AViiON for all architectures |
michael@0 | 505 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
michael@0 | 506 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
michael@0 | 507 | then |
michael@0 | 508 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
michael@0 | 509 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
michael@0 | 510 | then |
michael@0 | 511 | echo m88k-dg-dgux${UNAME_RELEASE} |
michael@0 | 512 | else |
michael@0 | 513 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
michael@0 | 514 | fi |
michael@0 | 515 | else |
michael@0 | 516 | echo i586-dg-dgux${UNAME_RELEASE} |
michael@0 | 517 | fi |
michael@0 | 518 | exit ;; |
michael@0 | 519 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
michael@0 | 520 | echo m88k-dolphin-sysv3 |
michael@0 | 521 | exit ;; |
michael@0 | 522 | M88*:*:R3*:*) |
michael@0 | 523 | # Delta 88k system running SVR3 |
michael@0 | 524 | echo m88k-motorola-sysv3 |
michael@0 | 525 | exit ;; |
michael@0 | 526 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
michael@0 | 527 | echo m88k-tektronix-sysv3 |
michael@0 | 528 | exit ;; |
michael@0 | 529 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
michael@0 | 530 | echo m68k-tektronix-bsd |
michael@0 | 531 | exit ;; |
michael@0 | 532 | *:IRIX*:*:*) |
michael@0 | 533 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
michael@0 | 534 | exit ;; |
michael@0 | 535 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
michael@0 | 536 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
michael@0 | 537 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
michael@0 | 538 | i*86:AIX:*:*) |
michael@0 | 539 | echo i386-ibm-aix |
michael@0 | 540 | exit ;; |
michael@0 | 541 | ia64:AIX:*:*) |
michael@0 | 542 | if [ -x /usr/bin/oslevel ] ; then |
michael@0 | 543 | IBM_REV=`/usr/bin/oslevel` |
michael@0 | 544 | else |
michael@0 | 545 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
michael@0 | 546 | fi |
michael@0 | 547 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} |
michael@0 | 548 | exit ;; |
michael@0 | 549 | *:AIX:2:3) |
michael@0 | 550 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
michael@0 | 551 | eval $set_cc_for_build |
michael@0 | 552 | sed 's/^ //' << EOF >$dummy.c |
michael@0 | 553 | #include <sys/systemcfg.h> |
michael@0 | 554 | |
michael@0 | 555 | main() |
michael@0 | 556 | { |
michael@0 | 557 | if (!__power_pc()) |
michael@0 | 558 | exit(1); |
michael@0 | 559 | puts("powerpc-ibm-aix3.2.5"); |
michael@0 | 560 | exit(0); |
michael@0 | 561 | } |
michael@0 | 562 | EOF |
michael@0 | 563 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` |
michael@0 | 564 | then |
michael@0 | 565 | echo "$SYSTEM_NAME" |
michael@0 | 566 | else |
michael@0 | 567 | echo rs6000-ibm-aix3.2.5 |
michael@0 | 568 | fi |
michael@0 | 569 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
michael@0 | 570 | echo rs6000-ibm-aix3.2.4 |
michael@0 | 571 | else |
michael@0 | 572 | echo rs6000-ibm-aix3.2 |
michael@0 | 573 | fi |
michael@0 | 574 | exit ;; |
michael@0 | 575 | *:AIX:*:[4567]) |
michael@0 | 576 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
michael@0 | 577 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
michael@0 | 578 | IBM_ARCH=rs6000 |
michael@0 | 579 | else |
michael@0 | 580 | IBM_ARCH=powerpc |
michael@0 | 581 | fi |
michael@0 | 582 | if [ -x /usr/bin/oslevel ] ; then |
michael@0 | 583 | IBM_REV=`/usr/bin/oslevel` |
michael@0 | 584 | else |
michael@0 | 585 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
michael@0 | 586 | fi |
michael@0 | 587 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
michael@0 | 588 | exit ;; |
michael@0 | 589 | *:AIX:*:*) |
michael@0 | 590 | echo rs6000-ibm-aix |
michael@0 | 591 | exit ;; |
michael@0 | 592 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
michael@0 | 593 | echo romp-ibm-bsd4.4 |
michael@0 | 594 | exit ;; |
michael@0 | 595 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
michael@0 | 596 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
michael@0 | 597 | exit ;; # report: romp-ibm BSD 4.3 |
michael@0 | 598 | *:BOSX:*:*) |
michael@0 | 599 | echo rs6000-bull-bosx |
michael@0 | 600 | exit ;; |
michael@0 | 601 | DPX/2?00:B.O.S.:*:*) |
michael@0 | 602 | echo m68k-bull-sysv3 |
michael@0 | 603 | exit ;; |
michael@0 | 604 | 9000/[34]??:4.3bsd:1.*:*) |
michael@0 | 605 | echo m68k-hp-bsd |
michael@0 | 606 | exit ;; |
michael@0 | 607 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
michael@0 | 608 | echo m68k-hp-bsd4.4 |
michael@0 | 609 | exit ;; |
michael@0 | 610 | 9000/[34678]??:HP-UX:*:*) |
michael@0 | 611 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
michael@0 | 612 | case "${UNAME_MACHINE}" in |
michael@0 | 613 | 9000/31? ) HP_ARCH=m68000 ;; |
michael@0 | 614 | 9000/[34]?? ) HP_ARCH=m68k ;; |
michael@0 | 615 | 9000/[678][0-9][0-9]) |
michael@0 | 616 | if [ -x /usr/bin/getconf ]; then |
michael@0 | 617 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
michael@0 | 618 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
michael@0 | 619 | case "${sc_cpu_version}" in |
michael@0 | 620 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
michael@0 | 621 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
michael@0 | 622 | 532) # CPU_PA_RISC2_0 |
michael@0 | 623 | case "${sc_kernel_bits}" in |
michael@0 | 624 | 32) HP_ARCH="hppa2.0n" ;; |
michael@0 | 625 | 64) HP_ARCH="hppa2.0w" ;; |
michael@0 | 626 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
michael@0 | 627 | esac ;; |
michael@0 | 628 | esac |
michael@0 | 629 | fi |
michael@0 | 630 | if [ "${HP_ARCH}" = "" ]; then |
michael@0 | 631 | eval $set_cc_for_build |
michael@0 | 632 | sed 's/^ //' << EOF >$dummy.c |
michael@0 | 633 | |
michael@0 | 634 | #define _HPUX_SOURCE |
michael@0 | 635 | #include <stdlib.h> |
michael@0 | 636 | #include <unistd.h> |
michael@0 | 637 | |
michael@0 | 638 | int main () |
michael@0 | 639 | { |
michael@0 | 640 | #if defined(_SC_KERNEL_BITS) |
michael@0 | 641 | long bits = sysconf(_SC_KERNEL_BITS); |
michael@0 | 642 | #endif |
michael@0 | 643 | long cpu = sysconf (_SC_CPU_VERSION); |
michael@0 | 644 | |
michael@0 | 645 | switch (cpu) |
michael@0 | 646 | { |
michael@0 | 647 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
michael@0 | 648 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
michael@0 | 649 | case CPU_PA_RISC2_0: |
michael@0 | 650 | #if defined(_SC_KERNEL_BITS) |
michael@0 | 651 | switch (bits) |
michael@0 | 652 | { |
michael@0 | 653 | case 64: puts ("hppa2.0w"); break; |
michael@0 | 654 | case 32: puts ("hppa2.0n"); break; |
michael@0 | 655 | default: puts ("hppa2.0"); break; |
michael@0 | 656 | } break; |
michael@0 | 657 | #else /* !defined(_SC_KERNEL_BITS) */ |
michael@0 | 658 | puts ("hppa2.0"); break; |
michael@0 | 659 | #endif |
michael@0 | 660 | default: puts ("hppa1.0"); break; |
michael@0 | 661 | } |
michael@0 | 662 | exit (0); |
michael@0 | 663 | } |
michael@0 | 664 | EOF |
michael@0 | 665 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
michael@0 | 666 | test -z "$HP_ARCH" && HP_ARCH=hppa |
michael@0 | 667 | fi ;; |
michael@0 | 668 | esac |
michael@0 | 669 | if [ ${HP_ARCH} = "hppa2.0w" ] |
michael@0 | 670 | then |
michael@0 | 671 | eval $set_cc_for_build |
michael@0 | 672 | |
michael@0 | 673 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
michael@0 | 674 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
michael@0 | 675 | # generating 64-bit code. GNU and HP use different nomenclature: |
michael@0 | 676 | # |
michael@0 | 677 | # $ CC_FOR_BUILD=cc ./config.guess |
michael@0 | 678 | # => hppa2.0w-hp-hpux11.23 |
michael@0 | 679 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
michael@0 | 680 | # => hppa64-hp-hpux11.23 |
michael@0 | 681 | |
michael@0 | 682 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
michael@0 | 683 | grep -q __LP64__ |
michael@0 | 684 | then |
michael@0 | 685 | HP_ARCH="hppa2.0w" |
michael@0 | 686 | else |
michael@0 | 687 | HP_ARCH="hppa64" |
michael@0 | 688 | fi |
michael@0 | 689 | fi |
michael@0 | 690 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
michael@0 | 691 | exit ;; |
michael@0 | 692 | ia64:HP-UX:*:*) |
michael@0 | 693 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
michael@0 | 694 | echo ia64-hp-hpux${HPUX_REV} |
michael@0 | 695 | exit ;; |
michael@0 | 696 | 3050*:HI-UX:*:*) |
michael@0 | 697 | eval $set_cc_for_build |
michael@0 | 698 | sed 's/^ //' << EOF >$dummy.c |
michael@0 | 699 | #include <unistd.h> |
michael@0 | 700 | int |
michael@0 | 701 | main () |
michael@0 | 702 | { |
michael@0 | 703 | long cpu = sysconf (_SC_CPU_VERSION); |
michael@0 | 704 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
michael@0 | 705 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
michael@0 | 706 | results, however. */ |
michael@0 | 707 | if (CPU_IS_PA_RISC (cpu)) |
michael@0 | 708 | { |
michael@0 | 709 | switch (cpu) |
michael@0 | 710 | { |
michael@0 | 711 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
michael@0 | 712 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
michael@0 | 713 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
michael@0 | 714 | default: puts ("hppa-hitachi-hiuxwe2"); break; |
michael@0 | 715 | } |
michael@0 | 716 | } |
michael@0 | 717 | else if (CPU_IS_HP_MC68K (cpu)) |
michael@0 | 718 | puts ("m68k-hitachi-hiuxwe2"); |
michael@0 | 719 | else puts ("unknown-hitachi-hiuxwe2"); |
michael@0 | 720 | exit (0); |
michael@0 | 721 | } |
michael@0 | 722 | EOF |
michael@0 | 723 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && |
michael@0 | 724 | { echo "$SYSTEM_NAME"; exit; } |
michael@0 | 725 | echo unknown-hitachi-hiuxwe2 |
michael@0 | 726 | exit ;; |
michael@0 | 727 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
michael@0 | 728 | echo hppa1.1-hp-bsd |
michael@0 | 729 | exit ;; |
michael@0 | 730 | 9000/8??:4.3bsd:*:*) |
michael@0 | 731 | echo hppa1.0-hp-bsd |
michael@0 | 732 | exit ;; |
michael@0 | 733 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
michael@0 | 734 | echo hppa1.0-hp-mpeix |
michael@0 | 735 | exit ;; |
michael@0 | 736 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
michael@0 | 737 | echo hppa1.1-hp-osf |
michael@0 | 738 | exit ;; |
michael@0 | 739 | hp8??:OSF1:*:*) |
michael@0 | 740 | echo hppa1.0-hp-osf |
michael@0 | 741 | exit ;; |
michael@0 | 742 | i*86:OSF1:*:*) |
michael@0 | 743 | if [ -x /usr/sbin/sysversion ] ; then |
michael@0 | 744 | echo ${UNAME_MACHINE}-unknown-osf1mk |
michael@0 | 745 | else |
michael@0 | 746 | echo ${UNAME_MACHINE}-unknown-osf1 |
michael@0 | 747 | fi |
michael@0 | 748 | exit ;; |
michael@0 | 749 | parisc*:Lites*:*:*) |
michael@0 | 750 | echo hppa1.1-hp-lites |
michael@0 | 751 | exit ;; |
michael@0 | 752 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
michael@0 | 753 | echo c1-convex-bsd |
michael@0 | 754 | exit ;; |
michael@0 | 755 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
michael@0 | 756 | if getsysinfo -f scalar_acc |
michael@0 | 757 | then echo c32-convex-bsd |
michael@0 | 758 | else echo c2-convex-bsd |
michael@0 | 759 | fi |
michael@0 | 760 | exit ;; |
michael@0 | 761 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
michael@0 | 762 | echo c34-convex-bsd |
michael@0 | 763 | exit ;; |
michael@0 | 764 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
michael@0 | 765 | echo c38-convex-bsd |
michael@0 | 766 | exit ;; |
michael@0 | 767 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
michael@0 | 768 | echo c4-convex-bsd |
michael@0 | 769 | exit ;; |
michael@0 | 770 | CRAY*Y-MP:*:*:*) |
michael@0 | 771 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
michael@0 | 772 | exit ;; |
michael@0 | 773 | CRAY*[A-Z]90:*:*:*) |
michael@0 | 774 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
michael@0 | 775 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
michael@0 | 776 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
michael@0 | 777 | -e 's/\.[^.]*$/.X/' |
michael@0 | 778 | exit ;; |
michael@0 | 779 | CRAY*TS:*:*:*) |
michael@0 | 780 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
michael@0 | 781 | exit ;; |
michael@0 | 782 | CRAY*T3E:*:*:*) |
michael@0 | 783 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
michael@0 | 784 | exit ;; |
michael@0 | 785 | CRAY*SV1:*:*:*) |
michael@0 | 786 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
michael@0 | 787 | exit ;; |
michael@0 | 788 | *:UNICOS/mp:*:*) |
michael@0 | 789 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
michael@0 | 790 | exit ;; |
michael@0 | 791 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
michael@0 | 792 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
michael@0 | 793 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
michael@0 | 794 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
michael@0 | 795 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
michael@0 | 796 | exit ;; |
michael@0 | 797 | 5000:UNIX_System_V:4.*:*) |
michael@0 | 798 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
michael@0 | 799 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
michael@0 | 800 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
michael@0 | 801 | exit ;; |
michael@0 | 802 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
michael@0 | 803 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
michael@0 | 804 | exit ;; |
michael@0 | 805 | sparc*:BSD/OS:*:*) |
michael@0 | 806 | echo sparc-unknown-bsdi${UNAME_RELEASE} |
michael@0 | 807 | exit ;; |
michael@0 | 808 | *:BSD/OS:*:*) |
michael@0 | 809 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
michael@0 | 810 | exit ;; |
michael@0 | 811 | *:FreeBSD:*:*) |
michael@0 | 812 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
michael@0 | 813 | case ${UNAME_PROCESSOR} in |
michael@0 | 814 | amd64) |
michael@0 | 815 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
michael@0 | 816 | *) |
michael@0 | 817 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
michael@0 | 818 | esac |
michael@0 | 819 | exit ;; |
michael@0 | 820 | i*:CYGWIN*:*) |
michael@0 | 821 | echo ${UNAME_MACHINE}-pc-cygwin |
michael@0 | 822 | exit ;; |
michael@0 | 823 | *:MINGW64*:*) |
michael@0 | 824 | echo ${UNAME_MACHINE}-pc-mingw64 |
michael@0 | 825 | exit ;; |
michael@0 | 826 | *:MINGW*:*) |
michael@0 | 827 | echo ${UNAME_MACHINE}-pc-mingw32 |
michael@0 | 828 | exit ;; |
michael@0 | 829 | i*:MSYS*:*) |
michael@0 | 830 | echo ${UNAME_MACHINE}-pc-msys |
michael@0 | 831 | exit ;; |
michael@0 | 832 | i*:windows32*:*) |
michael@0 | 833 | # uname -m includes "-pc" on this system. |
michael@0 | 834 | echo ${UNAME_MACHINE}-mingw32 |
michael@0 | 835 | exit ;; |
michael@0 | 836 | i*:PW*:*) |
michael@0 | 837 | echo ${UNAME_MACHINE}-pc-pw32 |
michael@0 | 838 | exit ;; |
michael@0 | 839 | *:Interix*:*) |
michael@0 | 840 | case ${UNAME_MACHINE} in |
michael@0 | 841 | x86) |
michael@0 | 842 | echo i586-pc-interix${UNAME_RELEASE} |
michael@0 | 843 | exit ;; |
michael@0 | 844 | authenticamd | genuineintel | EM64T) |
michael@0 | 845 | echo x86_64-unknown-interix${UNAME_RELEASE} |
michael@0 | 846 | exit ;; |
michael@0 | 847 | IA64) |
michael@0 | 848 | echo ia64-unknown-interix${UNAME_RELEASE} |
michael@0 | 849 | exit ;; |
michael@0 | 850 | esac ;; |
michael@0 | 851 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
michael@0 | 852 | echo i${UNAME_MACHINE}-pc-mks |
michael@0 | 853 | exit ;; |
michael@0 | 854 | 8664:Windows_NT:*) |
michael@0 | 855 | echo x86_64-pc-mks |
michael@0 | 856 | exit ;; |
michael@0 | 857 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
michael@0 | 858 | # How do we know it's Interix rather than the generic POSIX subsystem? |
michael@0 | 859 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
michael@0 | 860 | # UNAME_MACHINE based on the output of uname instead of i386? |
michael@0 | 861 | echo i586-pc-interix |
michael@0 | 862 | exit ;; |
michael@0 | 863 | i*:UWIN*:*) |
michael@0 | 864 | echo ${UNAME_MACHINE}-pc-uwin |
michael@0 | 865 | exit ;; |
michael@0 | 866 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
michael@0 | 867 | echo x86_64-unknown-cygwin |
michael@0 | 868 | exit ;; |
michael@0 | 869 | p*:CYGWIN*:*) |
michael@0 | 870 | echo powerpcle-unknown-cygwin |
michael@0 | 871 | exit ;; |
michael@0 | 872 | prep*:SunOS:5.*:*) |
michael@0 | 873 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
michael@0 | 874 | exit ;; |
michael@0 | 875 | *:GNU:*:*) |
michael@0 | 876 | # the GNU system |
michael@0 | 877 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
michael@0 | 878 | exit ;; |
michael@0 | 879 | *:GNU/*:*:*) |
michael@0 | 880 | # other systems with GNU libc and userland |
michael@0 | 881 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
michael@0 | 882 | exit ;; |
michael@0 | 883 | i*86:Minix:*:*) |
michael@0 | 884 | echo ${UNAME_MACHINE}-pc-minix |
michael@0 | 885 | exit ;; |
michael@0 | 886 | aarch64:Linux:*:*) |
michael@0 | 887 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 888 | exit ;; |
michael@0 | 889 | aarch64_be:Linux:*:*) |
michael@0 | 890 | UNAME_MACHINE=aarch64_be |
michael@0 | 891 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 892 | exit ;; |
michael@0 | 893 | alpha:Linux:*:*) |
michael@0 | 894 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
michael@0 | 895 | EV5) UNAME_MACHINE=alphaev5 ;; |
michael@0 | 896 | EV56) UNAME_MACHINE=alphaev56 ;; |
michael@0 | 897 | PCA56) UNAME_MACHINE=alphapca56 ;; |
michael@0 | 898 | PCA57) UNAME_MACHINE=alphapca56 ;; |
michael@0 | 899 | EV6) UNAME_MACHINE=alphaev6 ;; |
michael@0 | 900 | EV67) UNAME_MACHINE=alphaev67 ;; |
michael@0 | 901 | EV68*) UNAME_MACHINE=alphaev68 ;; |
michael@0 | 902 | esac |
michael@0 | 903 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
michael@0 | 904 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
michael@0 | 905 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 906 | exit ;; |
michael@0 | 907 | arc:Linux:*:* | arceb:Linux:*:*) |
michael@0 | 908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 909 | exit ;; |
michael@0 | 910 | arm*:Linux:*:*) |
michael@0 | 911 | eval $set_cc_for_build |
michael@0 | 912 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
michael@0 | 913 | | grep -q __ARM_EABI__ |
michael@0 | 914 | then |
michael@0 | 915 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 916 | else |
michael@0 | 917 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
michael@0 | 918 | | grep -q __ARM_PCS_VFP |
michael@0 | 919 | then |
michael@0 | 920 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
michael@0 | 921 | else |
michael@0 | 922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
michael@0 | 923 | fi |
michael@0 | 924 | fi |
michael@0 | 925 | exit ;; |
michael@0 | 926 | avr32*:Linux:*:*) |
michael@0 | 927 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 928 | exit ;; |
michael@0 | 929 | cris:Linux:*:*) |
michael@0 | 930 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
michael@0 | 931 | exit ;; |
michael@0 | 932 | crisv32:Linux:*:*) |
michael@0 | 933 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
michael@0 | 934 | exit ;; |
michael@0 | 935 | frv:Linux:*:*) |
michael@0 | 936 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 937 | exit ;; |
michael@0 | 938 | hexagon:Linux:*:*) |
michael@0 | 939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 940 | exit ;; |
michael@0 | 941 | i*86:Linux:*:*) |
michael@0 | 942 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
michael@0 | 943 | exit ;; |
michael@0 | 944 | ia64:Linux:*:*) |
michael@0 | 945 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 946 | exit ;; |
michael@0 | 947 | m32r*:Linux:*:*) |
michael@0 | 948 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 949 | exit ;; |
michael@0 | 950 | m68*:Linux:*:*) |
michael@0 | 951 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 952 | exit ;; |
michael@0 | 953 | mips:Linux:*:* | mips64:Linux:*:*) |
michael@0 | 954 | eval $set_cc_for_build |
michael@0 | 955 | sed 's/^ //' << EOF >$dummy.c |
michael@0 | 956 | #undef CPU |
michael@0 | 957 | #undef ${UNAME_MACHINE} |
michael@0 | 958 | #undef ${UNAME_MACHINE}el |
michael@0 | 959 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
michael@0 | 960 | CPU=${UNAME_MACHINE}el |
michael@0 | 961 | #else |
michael@0 | 962 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
michael@0 | 963 | CPU=${UNAME_MACHINE} |
michael@0 | 964 | #else |
michael@0 | 965 | CPU= |
michael@0 | 966 | #endif |
michael@0 | 967 | #endif |
michael@0 | 968 | EOF |
michael@0 | 969 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
michael@0 | 970 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
michael@0 | 971 | ;; |
michael@0 | 972 | or1k:Linux:*:*) |
michael@0 | 973 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 974 | exit ;; |
michael@0 | 975 | or32:Linux:*:*) |
michael@0 | 976 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 977 | exit ;; |
michael@0 | 978 | padre:Linux:*:*) |
michael@0 | 979 | echo sparc-unknown-linux-${LIBC} |
michael@0 | 980 | exit ;; |
michael@0 | 981 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
michael@0 | 982 | echo hppa64-unknown-linux-${LIBC} |
michael@0 | 983 | exit ;; |
michael@0 | 984 | parisc:Linux:*:* | hppa:Linux:*:*) |
michael@0 | 985 | # Look for CPU level |
michael@0 | 986 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
michael@0 | 987 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
michael@0 | 988 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
michael@0 | 989 | *) echo hppa-unknown-linux-${LIBC} ;; |
michael@0 | 990 | esac |
michael@0 | 991 | exit ;; |
michael@0 | 992 | ppc64:Linux:*:*) |
michael@0 | 993 | echo powerpc64-unknown-linux-${LIBC} |
michael@0 | 994 | exit ;; |
michael@0 | 995 | ppc:Linux:*:*) |
michael@0 | 996 | echo powerpc-unknown-linux-${LIBC} |
michael@0 | 997 | exit ;; |
michael@0 | 998 | ppc64le:Linux:*:*) |
michael@0 | 999 | echo powerpc64le-unknown-linux-${LIBC} |
michael@0 | 1000 | exit ;; |
michael@0 | 1001 | ppcle:Linux:*:*) |
michael@0 | 1002 | echo powerpcle-unknown-linux-${LIBC} |
michael@0 | 1003 | exit ;; |
michael@0 | 1004 | s390:Linux:*:* | s390x:Linux:*:*) |
michael@0 | 1005 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
michael@0 | 1006 | exit ;; |
michael@0 | 1007 | sh64*:Linux:*:*) |
michael@0 | 1008 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1009 | exit ;; |
michael@0 | 1010 | sh*:Linux:*:*) |
michael@0 | 1011 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1012 | exit ;; |
michael@0 | 1013 | sparc:Linux:*:* | sparc64:Linux:*:*) |
michael@0 | 1014 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1015 | exit ;; |
michael@0 | 1016 | tile*:Linux:*:*) |
michael@0 | 1017 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1018 | exit ;; |
michael@0 | 1019 | vax:Linux:*:*) |
michael@0 | 1020 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
michael@0 | 1021 | exit ;; |
michael@0 | 1022 | x86_64:Linux:*:*) |
michael@0 | 1023 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1024 | exit ;; |
michael@0 | 1025 | xtensa*:Linux:*:*) |
michael@0 | 1026 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
michael@0 | 1027 | exit ;; |
michael@0 | 1028 | i*86:DYNIX/ptx:4*:*) |
michael@0 | 1029 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
michael@0 | 1030 | # earlier versions are messed up and put the nodename in both |
michael@0 | 1031 | # sysname and nodename. |
michael@0 | 1032 | echo i386-sequent-sysv4 |
michael@0 | 1033 | exit ;; |
michael@0 | 1034 | i*86:UNIX_SV:4.2MP:2.*) |
michael@0 | 1035 | # Unixware is an offshoot of SVR4, but it has its own version |
michael@0 | 1036 | # number series starting with 2... |
michael@0 | 1037 | # I am not positive that other SVR4 systems won't match this, |
michael@0 | 1038 | # I just have to hope. -- rms. |
michael@0 | 1039 | # Use sysv4.2uw... so that sysv4* matches it. |
michael@0 | 1040 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
michael@0 | 1041 | exit ;; |
michael@0 | 1042 | i*86:OS/2:*:*) |
michael@0 | 1043 | # If we were able to find `uname', then EMX Unix compatibility |
michael@0 | 1044 | # is probably installed. |
michael@0 | 1045 | echo ${UNAME_MACHINE}-pc-os2-emx |
michael@0 | 1046 | exit ;; |
michael@0 | 1047 | i*86:XTS-300:*:STOP) |
michael@0 | 1048 | echo ${UNAME_MACHINE}-unknown-stop |
michael@0 | 1049 | exit ;; |
michael@0 | 1050 | i*86:atheos:*:*) |
michael@0 | 1051 | echo ${UNAME_MACHINE}-unknown-atheos |
michael@0 | 1052 | exit ;; |
michael@0 | 1053 | i*86:syllable:*:*) |
michael@0 | 1054 | echo ${UNAME_MACHINE}-pc-syllable |
michael@0 | 1055 | exit ;; |
michael@0 | 1056 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
michael@0 | 1057 | echo i386-unknown-lynxos${UNAME_RELEASE} |
michael@0 | 1058 | exit ;; |
michael@0 | 1059 | i*86:*DOS:*:*) |
michael@0 | 1060 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
michael@0 | 1061 | exit ;; |
michael@0 | 1062 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
michael@0 | 1063 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
michael@0 | 1064 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
michael@0 | 1065 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
michael@0 | 1066 | else |
michael@0 | 1067 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
michael@0 | 1068 | fi |
michael@0 | 1069 | exit ;; |
michael@0 | 1070 | i*86:*:5:[678]*) |
michael@0 | 1071 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
michael@0 | 1072 | case `/bin/uname -X | grep "^Machine"` in |
michael@0 | 1073 | *486*) UNAME_MACHINE=i486 ;; |
michael@0 | 1074 | *Pentium) UNAME_MACHINE=i586 ;; |
michael@0 | 1075 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
michael@0 | 1076 | esac |
michael@0 | 1077 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
michael@0 | 1078 | exit ;; |
michael@0 | 1079 | i*86:*:3.2:*) |
michael@0 | 1080 | if test -f /usr/options/cb.name; then |
michael@0 | 1081 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
michael@0 | 1082 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
michael@0 | 1083 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
michael@0 | 1084 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
michael@0 | 1085 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
michael@0 | 1086 | (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
michael@0 | 1087 | && UNAME_MACHINE=i586 |
michael@0 | 1088 | (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
michael@0 | 1089 | && UNAME_MACHINE=i686 |
michael@0 | 1090 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
michael@0 | 1091 | && UNAME_MACHINE=i686 |
michael@0 | 1092 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
michael@0 | 1093 | else |
michael@0 | 1094 | echo ${UNAME_MACHINE}-pc-sysv32 |
michael@0 | 1095 | fi |
michael@0 | 1096 | exit ;; |
michael@0 | 1097 | pc:*:*:*) |
michael@0 | 1098 | # Left here for compatibility: |
michael@0 | 1099 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
michael@0 | 1100 | # the processor, so we play safe by assuming i586. |
michael@0 | 1101 | # Note: whatever this is, it MUST be the same as what config.sub |
michael@0 | 1102 | # prints for the "djgpp" host, or else GDB configury will decide that |
michael@0 | 1103 | # this is a cross-build. |
michael@0 | 1104 | echo i586-pc-msdosdjgpp |
michael@0 | 1105 | exit ;; |
michael@0 | 1106 | Intel:Mach:3*:*) |
michael@0 | 1107 | echo i386-pc-mach3 |
michael@0 | 1108 | exit ;; |
michael@0 | 1109 | paragon:*:*:*) |
michael@0 | 1110 | echo i860-intel-osf1 |
michael@0 | 1111 | exit ;; |
michael@0 | 1112 | i860:*:4.*:*) # i860-SVR4 |
michael@0 | 1113 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
michael@0 | 1114 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
michael@0 | 1115 | else # Add other i860-SVR4 vendors below as they are discovered. |
michael@0 | 1116 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
michael@0 | 1117 | fi |
michael@0 | 1118 | exit ;; |
michael@0 | 1119 | mini*:CTIX:SYS*5:*) |
michael@0 | 1120 | # "miniframe" |
michael@0 | 1121 | echo m68010-convergent-sysv |
michael@0 | 1122 | exit ;; |
michael@0 | 1123 | mc68k:UNIX:SYSTEM5:3.51m) |
michael@0 | 1124 | echo m68k-convergent-sysv |
michael@0 | 1125 | exit ;; |
michael@0 | 1126 | M680?0:D-NIX:5.3:*) |
michael@0 | 1127 | echo m68k-diab-dnix |
michael@0 | 1128 | exit ;; |
michael@0 | 1129 | M68*:*:R3V[5678]*:*) |
michael@0 | 1130 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
michael@0 | 1131 | 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) |
michael@0 | 1132 | OS_REL='' |
michael@0 | 1133 | test -r /etc/.relid \ |
michael@0 | 1134 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
michael@0 | 1135 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
michael@0 | 1136 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
michael@0 | 1137 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
michael@0 | 1138 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
michael@0 | 1139 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
michael@0 | 1140 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
michael@0 | 1141 | && { echo i486-ncr-sysv4; exit; } ;; |
michael@0 | 1142 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
michael@0 | 1143 | OS_REL='.3' |
michael@0 | 1144 | test -r /etc/.relid \ |
michael@0 | 1145 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
michael@0 | 1146 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
michael@0 | 1147 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
michael@0 | 1148 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
michael@0 | 1149 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
michael@0 | 1150 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
michael@0 | 1151 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
michael@0 | 1152 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
michael@0 | 1153 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
michael@0 | 1154 | exit ;; |
michael@0 | 1155 | mc68030:UNIX_System_V:4.*:*) |
michael@0 | 1156 | echo m68k-atari-sysv4 |
michael@0 | 1157 | exit ;; |
michael@0 | 1158 | TSUNAMI:LynxOS:2.*:*) |
michael@0 | 1159 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
michael@0 | 1160 | exit ;; |
michael@0 | 1161 | rs6000:LynxOS:2.*:*) |
michael@0 | 1162 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
michael@0 | 1163 | exit ;; |
michael@0 | 1164 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
michael@0 | 1165 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
michael@0 | 1166 | exit ;; |
michael@0 | 1167 | SM[BE]S:UNIX_SV:*:*) |
michael@0 | 1168 | echo mips-dde-sysv${UNAME_RELEASE} |
michael@0 | 1169 | exit ;; |
michael@0 | 1170 | RM*:ReliantUNIX-*:*:*) |
michael@0 | 1171 | echo mips-sni-sysv4 |
michael@0 | 1172 | exit ;; |
michael@0 | 1173 | RM*:SINIX-*:*:*) |
michael@0 | 1174 | echo mips-sni-sysv4 |
michael@0 | 1175 | exit ;; |
michael@0 | 1176 | *:SINIX-*:*:*) |
michael@0 | 1177 | if uname -p 2>/dev/null >/dev/null ; then |
michael@0 | 1178 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
michael@0 | 1179 | echo ${UNAME_MACHINE}-sni-sysv4 |
michael@0 | 1180 | else |
michael@0 | 1181 | echo ns32k-sni-sysv |
michael@0 | 1182 | fi |
michael@0 | 1183 | exit ;; |
michael@0 | 1184 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
michael@0 | 1185 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
michael@0 | 1186 | echo i586-unisys-sysv4 |
michael@0 | 1187 | exit ;; |
michael@0 | 1188 | *:UNIX_System_V:4*:FTX*) |
michael@0 | 1189 | # From Gerald Hewes <hewes@openmarket.com>. |
michael@0 | 1190 | # How about differentiating between stratus architectures? -djm |
michael@0 | 1191 | echo hppa1.1-stratus-sysv4 |
michael@0 | 1192 | exit ;; |
michael@0 | 1193 | *:*:*:FTX*) |
michael@0 | 1194 | # From seanf@swdc.stratus.com. |
michael@0 | 1195 | echo i860-stratus-sysv4 |
michael@0 | 1196 | exit ;; |
michael@0 | 1197 | i*86:VOS:*:*) |
michael@0 | 1198 | # From Paul.Green@stratus.com. |
michael@0 | 1199 | echo ${UNAME_MACHINE}-stratus-vos |
michael@0 | 1200 | exit ;; |
michael@0 | 1201 | *:VOS:*:*) |
michael@0 | 1202 | # From Paul.Green@stratus.com. |
michael@0 | 1203 | echo hppa1.1-stratus-vos |
michael@0 | 1204 | exit ;; |
michael@0 | 1205 | mc68*:A/UX:*:*) |
michael@0 | 1206 | echo m68k-apple-aux${UNAME_RELEASE} |
michael@0 | 1207 | exit ;; |
michael@0 | 1208 | news*:NEWS-OS:6*:*) |
michael@0 | 1209 | echo mips-sony-newsos6 |
michael@0 | 1210 | exit ;; |
michael@0 | 1211 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
michael@0 | 1212 | if [ -d /usr/nec ]; then |
michael@0 | 1213 | echo mips-nec-sysv${UNAME_RELEASE} |
michael@0 | 1214 | else |
michael@0 | 1215 | echo mips-unknown-sysv${UNAME_RELEASE} |
michael@0 | 1216 | fi |
michael@0 | 1217 | exit ;; |
michael@0 | 1218 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
michael@0 | 1219 | echo powerpc-be-beos |
michael@0 | 1220 | exit ;; |
michael@0 | 1221 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
michael@0 | 1222 | echo powerpc-apple-beos |
michael@0 | 1223 | exit ;; |
michael@0 | 1224 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
michael@0 | 1225 | echo i586-pc-beos |
michael@0 | 1226 | exit ;; |
michael@0 | 1227 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
michael@0 | 1228 | echo i586-pc-haiku |
michael@0 | 1229 | exit ;; |
michael@0 | 1230 | x86_64:Haiku:*:*) |
michael@0 | 1231 | echo x86_64-unknown-haiku |
michael@0 | 1232 | exit ;; |
michael@0 | 1233 | SX-4:SUPER-UX:*:*) |
michael@0 | 1234 | echo sx4-nec-superux${UNAME_RELEASE} |
michael@0 | 1235 | exit ;; |
michael@0 | 1236 | SX-5:SUPER-UX:*:*) |
michael@0 | 1237 | echo sx5-nec-superux${UNAME_RELEASE} |
michael@0 | 1238 | exit ;; |
michael@0 | 1239 | SX-6:SUPER-UX:*:*) |
michael@0 | 1240 | echo sx6-nec-superux${UNAME_RELEASE} |
michael@0 | 1241 | exit ;; |
michael@0 | 1242 | SX-7:SUPER-UX:*:*) |
michael@0 | 1243 | echo sx7-nec-superux${UNAME_RELEASE} |
michael@0 | 1244 | exit ;; |
michael@0 | 1245 | SX-8:SUPER-UX:*:*) |
michael@0 | 1246 | echo sx8-nec-superux${UNAME_RELEASE} |
michael@0 | 1247 | exit ;; |
michael@0 | 1248 | SX-8R:SUPER-UX:*:*) |
michael@0 | 1249 | echo sx8r-nec-superux${UNAME_RELEASE} |
michael@0 | 1250 | exit ;; |
michael@0 | 1251 | Power*:Rhapsody:*:*) |
michael@0 | 1252 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
michael@0 | 1253 | exit ;; |
michael@0 | 1254 | *:Rhapsody:*:*) |
michael@0 | 1255 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
michael@0 | 1256 | exit ;; |
michael@0 | 1257 | *:Darwin:*:*) |
michael@0 | 1258 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
michael@0 | 1259 | eval $set_cc_for_build |
michael@0 | 1260 | if test "$UNAME_PROCESSOR" = unknown ; then |
michael@0 | 1261 | UNAME_PROCESSOR=powerpc |
michael@0 | 1262 | fi |
michael@0 | 1263 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then |
michael@0 | 1264 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
michael@0 | 1265 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
michael@0 | 1266 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
michael@0 | 1267 | grep IS_64BIT_ARCH >/dev/null |
michael@0 | 1268 | then |
michael@0 | 1269 | case $UNAME_PROCESSOR in |
michael@0 | 1270 | i386) UNAME_PROCESSOR=x86_64 ;; |
michael@0 | 1271 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
michael@0 | 1272 | esac |
michael@0 | 1273 | fi |
michael@0 | 1274 | fi |
michael@0 | 1275 | elif test "$UNAME_PROCESSOR" = i386 ; then |
michael@0 | 1276 | # Avoid executing cc on OS X 10.9, as it ships with a stub |
michael@0 | 1277 | # that puts up a graphical alert prompting to install |
michael@0 | 1278 | # developer tools. Any system running Mac OS X 10.7 or |
michael@0 | 1279 | # later (Darwin 11 and later) is required to have a 64-bit |
michael@0 | 1280 | # processor. This is not true of the ARM version of Darwin |
michael@0 | 1281 | # that Apple uses in portable devices. |
michael@0 | 1282 | UNAME_PROCESSOR=x86_64 |
michael@0 | 1283 | fi |
michael@0 | 1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
michael@0 | 1285 | exit ;; |
michael@0 | 1286 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
michael@0 | 1287 | UNAME_PROCESSOR=`uname -p` |
michael@0 | 1288 | if test "$UNAME_PROCESSOR" = "x86"; then |
michael@0 | 1289 | UNAME_PROCESSOR=i386 |
michael@0 | 1290 | UNAME_MACHINE=pc |
michael@0 | 1291 | fi |
michael@0 | 1292 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
michael@0 | 1293 | exit ;; |
michael@0 | 1294 | *:QNX:*:4*) |
michael@0 | 1295 | echo i386-pc-qnx |
michael@0 | 1296 | exit ;; |
michael@0 | 1297 | NEO-?:NONSTOP_KERNEL:*:*) |
michael@0 | 1298 | echo neo-tandem-nsk${UNAME_RELEASE} |
michael@0 | 1299 | exit ;; |
michael@0 | 1300 | NSE-*:NONSTOP_KERNEL:*:*) |
michael@0 | 1301 | echo nse-tandem-nsk${UNAME_RELEASE} |
michael@0 | 1302 | exit ;; |
michael@0 | 1303 | NSR-?:NONSTOP_KERNEL:*:*) |
michael@0 | 1304 | echo nsr-tandem-nsk${UNAME_RELEASE} |
michael@0 | 1305 | exit ;; |
michael@0 | 1306 | *:NonStop-UX:*:*) |
michael@0 | 1307 | echo mips-compaq-nonstopux |
michael@0 | 1308 | exit ;; |
michael@0 | 1309 | BS2000:POSIX*:*:*) |
michael@0 | 1310 | echo bs2000-siemens-sysv |
michael@0 | 1311 | exit ;; |
michael@0 | 1312 | DS/*:UNIX_System_V:*:*) |
michael@0 | 1313 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
michael@0 | 1314 | exit ;; |
michael@0 | 1315 | *:Plan9:*:*) |
michael@0 | 1316 | # "uname -m" is not consistent, so use $cputype instead. 386 |
michael@0 | 1317 | # is converted to i386 for consistency with other x86 |
michael@0 | 1318 | # operating systems. |
michael@0 | 1319 | if test "$cputype" = "386"; then |
michael@0 | 1320 | UNAME_MACHINE=i386 |
michael@0 | 1321 | else |
michael@0 | 1322 | UNAME_MACHINE="$cputype" |
michael@0 | 1323 | fi |
michael@0 | 1324 | echo ${UNAME_MACHINE}-unknown-plan9 |
michael@0 | 1325 | exit ;; |
michael@0 | 1326 | *:TOPS-10:*:*) |
michael@0 | 1327 | echo pdp10-unknown-tops10 |
michael@0 | 1328 | exit ;; |
michael@0 | 1329 | *:TENEX:*:*) |
michael@0 | 1330 | echo pdp10-unknown-tenex |
michael@0 | 1331 | exit ;; |
michael@0 | 1332 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
michael@0 | 1333 | echo pdp10-dec-tops20 |
michael@0 | 1334 | exit ;; |
michael@0 | 1335 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
michael@0 | 1336 | echo pdp10-xkl-tops20 |
michael@0 | 1337 | exit ;; |
michael@0 | 1338 | *:TOPS-20:*:*) |
michael@0 | 1339 | echo pdp10-unknown-tops20 |
michael@0 | 1340 | exit ;; |
michael@0 | 1341 | *:ITS:*:*) |
michael@0 | 1342 | echo pdp10-unknown-its |
michael@0 | 1343 | exit ;; |
michael@0 | 1344 | SEI:*:*:SEIUX) |
michael@0 | 1345 | echo mips-sei-seiux${UNAME_RELEASE} |
michael@0 | 1346 | exit ;; |
michael@0 | 1347 | *:DragonFly:*:*) |
michael@0 | 1348 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
michael@0 | 1349 | exit ;; |
michael@0 | 1350 | *:*VMS:*:*) |
michael@0 | 1351 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
michael@0 | 1352 | case "${UNAME_MACHINE}" in |
michael@0 | 1353 | A*) echo alpha-dec-vms ; exit ;; |
michael@0 | 1354 | I*) echo ia64-dec-vms ; exit ;; |
michael@0 | 1355 | V*) echo vax-dec-vms ; exit ;; |
michael@0 | 1356 | esac ;; |
michael@0 | 1357 | *:XENIX:*:SysV) |
michael@0 | 1358 | echo i386-pc-xenix |
michael@0 | 1359 | exit ;; |
michael@0 | 1360 | i*86:skyos:*:*) |
michael@0 | 1361 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
michael@0 | 1362 | exit ;; |
michael@0 | 1363 | i*86:rdos:*:*) |
michael@0 | 1364 | echo ${UNAME_MACHINE}-pc-rdos |
michael@0 | 1365 | exit ;; |
michael@0 | 1366 | i*86:AROS:*:*) |
michael@0 | 1367 | echo ${UNAME_MACHINE}-pc-aros |
michael@0 | 1368 | exit ;; |
michael@0 | 1369 | x86_64:VMkernel:*:*) |
michael@0 | 1370 | echo ${UNAME_MACHINE}-unknown-esx |
michael@0 | 1371 | exit ;; |
michael@0 | 1372 | esac |
michael@0 | 1373 | |
michael@0 | 1374 | cat >&2 <<EOF |
michael@0 | 1375 | $0: unable to guess system type |
michael@0 | 1376 | |
michael@0 | 1377 | This script, last modified $timestamp, has failed to recognize |
michael@0 | 1378 | the operating system you are using. It is advised that you |
michael@0 | 1379 | download the most up to date version of the config scripts from |
michael@0 | 1380 | |
michael@0 | 1381 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
michael@0 | 1382 | and |
michael@0 | 1383 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
michael@0 | 1384 | |
michael@0 | 1385 | If the version you run ($0) is already up to date, please |
michael@0 | 1386 | send the following data and any information you think might be |
michael@0 | 1387 | pertinent to <config-patches@gnu.org> in order to provide the needed |
michael@0 | 1388 | information to handle your system. |
michael@0 | 1389 | |
michael@0 | 1390 | config.guess timestamp = $timestamp |
michael@0 | 1391 | |
michael@0 | 1392 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
michael@0 | 1393 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
michael@0 | 1394 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
michael@0 | 1395 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
michael@0 | 1396 | |
michael@0 | 1397 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` |
michael@0 | 1398 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null` |
michael@0 | 1399 | |
michael@0 | 1400 | hostinfo = `(hostinfo) 2>/dev/null` |
michael@0 | 1401 | /bin/universe = `(/bin/universe) 2>/dev/null` |
michael@0 | 1402 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` |
michael@0 | 1403 | /bin/arch = `(/bin/arch) 2>/dev/null` |
michael@0 | 1404 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
michael@0 | 1405 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
michael@0 | 1406 | |
michael@0 | 1407 | UNAME_MACHINE = ${UNAME_MACHINE} |
michael@0 | 1408 | UNAME_RELEASE = ${UNAME_RELEASE} |
michael@0 | 1409 | UNAME_SYSTEM = ${UNAME_SYSTEM} |
michael@0 | 1410 | UNAME_VERSION = ${UNAME_VERSION} |
michael@0 | 1411 | EOF |
michael@0 | 1412 | |
michael@0 | 1413 | exit 1 |
michael@0 | 1414 | |
michael@0 | 1415 | # Local variables: |
michael@0 | 1416 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
michael@0 | 1417 | # time-stamp-start: "timestamp='" |
michael@0 | 1418 | # time-stamp-format: "%:y-%02m-%02d" |
michael@0 | 1419 | # time-stamp-end: "'" |
michael@0 | 1420 | # End: |