Mercurial > hg > xemacs-beta
comparison config.guess @ 5731:ec3712ffd0e6
Update config.guess, config.sub, and install-sh to their latest versions.
This is primarily to gain preliminary support for the new aarch64
architecture. See xemacs-patches message
<CAHCOHQmsxN7ZDaUs=onRPrzbj9S6BnMHHwwEg8HUfXyEVwySGw@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Fri, 15 Mar 2013 13:52:53 -0600 |
parents | afbfad080ddd |
children | 0f2338afbabf |
comparison
equal
deleted
inserted
replaced
5730:4521c9dc64f6 | 5731:ec3712ffd0e6 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright 1992-2013 Free Software Foundation, Inc. |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 |
5 # Free Software Foundation, Inc. | 5 timestamp='2013-02-12' |
6 | |
7 timestamp='2009-02-03' | |
8 | 6 |
9 # This file is free software; you can redistribute it and/or modify it | 7 # This file is free software; you can redistribute it and/or modify it |
10 # under the terms of the GNU General Public License as published by | 8 # under the terms of the GNU General Public License as published by |
11 # the Free Software Foundation; either version 2 of the License, or | 9 # the Free Software Foundation; either version 3 of the License, or |
12 # (at your option) any later version. | 10 # (at your option) any later version. |
13 # | 11 # |
14 # This program is distributed in the hope that it will be useful, but | 12 # This program is distributed in the hope that it will be useful, but |
15 # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 # General Public License for more details. | 15 # General Public License for more details. |
18 # | 16 # |
19 # You should have received a copy of the GNU General Public License | 17 # You should have received a copy of the GNU General Public License |
20 # along with this program; if not, write to the Free Software | 18 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
22 # 02110-1301, USA. | |
23 # | 19 # |
24 # As a special exception to the GNU General Public License, if you | 20 # As a special exception to the GNU General Public License, if you |
25 # distribute this file as part of a program that contains a | 21 # distribute this file as part of a program that contains a |
26 # configuration script generated by Autoconf, you may include it under | 22 # configuration script generated by Autoconf, you may include it under |
27 # the same distribution terms that you use for the rest of that program. | 23 # the same distribution terms that you use for the rest of that |
28 | 24 # program. This Exception is an additional permission under section 7 |
29 | 25 # of the GNU General Public License, version 3 ("GPLv3"). |
30 # Originally written by Per Bothner <per@bothner.com>. | |
31 # Please send patches to <config-patches@gnu.org>. Submit a context | |
32 # diff and a properly formatted ChangeLog entry. | |
33 # | 26 # |
34 # This script attempts to guess a canonical system name similar to | 27 # Originally written by Per Bothner. |
35 # config.sub. If it succeeds, it prints the system name on stdout, and | |
36 # exits with 0. Otherwise, it exits with 1. | |
37 # | 28 # |
38 # The plan is that this can be called by configure scripts if you | 29 # You can get the latest version of this script from: |
39 # don't specify an explicit build system type. | 30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
31 # | |
32 # Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
33 | |
40 | 34 |
41 me=`echo "$0" | sed -e 's,.*/,,'` | 35 me=`echo "$0" | sed -e 's,.*/,,'` |
42 | 36 |
43 usage="\ | 37 usage="\ |
44 Usage: $0 [OPTION] | 38 Usage: $0 [OPTION] |
54 | 48 |
55 version="\ | 49 version="\ |
56 GNU config.guess ($timestamp) | 50 GNU config.guess ($timestamp) |
57 | 51 |
58 Originally written by Per Bothner. | 52 Originally written by Per Bothner. |
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | 53 Copyright 1992-2013 Free Software Foundation, Inc. |
60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
61 | 54 |
62 This is free software; see the source for copying conditions. There is NO | 55 This is free software; see the source for copying conditions. There is NO |
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
64 | 57 |
65 help=" | 58 help=" |
142 # Note: order is significant - the case branches are not exclusive. | 135 # Note: order is significant - the case branches are not exclusive. |
143 | 136 |
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 137 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
145 *:NetBSD:*:*) | 138 *:NetBSD:*:*) |
146 # NetBSD (nbsd) targets should (where applicable) match one or | 139 # NetBSD (nbsd) targets should (where applicable) match one or |
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | 140 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | 141 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
149 # switched to ELF, *-*-netbsd* would select the old | 142 # switched to ELF, *-*-netbsd* would select the old |
150 # object file format. This provides both forward | 143 # object file format. This provides both forward |
151 # compatibility and a consistent mechanism for selecting the | 144 # compatibility and a consistent mechanism for selecting the |
152 # object file format. | 145 # object file format. |
168 # to ELF recently, or will in the future. | 161 # to ELF recently, or will in the future. |
169 case "${UNAME_MACHINE_ARCH}" in | 162 case "${UNAME_MACHINE_ARCH}" in |
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax) | 163 arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 eval $set_cc_for_build | 164 eval $set_cc_for_build |
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 165 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | grep __ELF__ >/dev/null | 166 | grep -q __ELF__ |
174 then | 167 then |
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | 168 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
176 # Return netbsd for either. FIX? | 169 # Return netbsd for either. FIX? |
177 os=netbsd | 170 os=netbsd |
178 else | 171 else |
179 os=netbsdelf | 172 os=netbsdelf |
180 fi | 173 fi |
181 ;; | 174 ;; |
182 *) | 175 *) |
183 os=netbsd | 176 os=netbsd |
184 ;; | 177 ;; |
185 esac | 178 esac |
186 # The OS release | 179 # The OS release |
187 # Debian GNU/NetBSD machines have a different userland, and | 180 # Debian GNU/NetBSD machines have a different userland, and |
188 # thus, need a distinct triplet. However, they do not need | 181 # thus, need a distinct triplet. However, they do not need |
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | 192 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
200 # contains redundant information, the shorter form: | 193 # contains redundant information, the shorter form: |
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | 194 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
202 echo "${machine}-${os}${release}" | 195 echo "${machine}-${os}${release}" |
203 exit ;; | 196 exit ;; |
197 *:Bitrig:*:*) | |
198 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
199 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
200 exit ;; | |
204 *:OpenBSD:*:*) | 201 *:OpenBSD:*:*) |
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | 202 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | 203 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
207 exit ;; | 204 exit ;; |
208 *:ekkoBSD:*:*) | 205 *:ekkoBSD:*:*) |
221 case $UNAME_RELEASE in | 218 case $UNAME_RELEASE in |
222 *4.0) | 219 *4.0) |
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | 220 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
224 ;; | 221 ;; |
225 *5.*) | 222 *5.*) |
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | 223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
227 ;; | 224 ;; |
228 esac | 225 esac |
229 # According to Compaq, /usr/sbin/psrinfo has been available on | 226 # According to Compaq, /usr/sbin/psrinfo has been available on |
230 # OSF/1 and Tru64 systems produced since 1995. I hope that | 227 # OSF/1 and Tru64 systems produced since 1995. I hope that |
231 # covers most systems running today. This code pipes the CPU | 228 # covers most systems running today. This code pipes the CPU |
267 # A Vn.n version is a released version. | 264 # A Vn.n version is a released version. |
268 # A Tn.n version is a released field test version. | 265 # A Tn.n version is a released field test version. |
269 # A Xn.n version is an unreleased experimental baselevel. | 266 # A Xn.n version is an unreleased experimental baselevel. |
270 # 1.2 uses "1.2" for uname -r. | 267 # 1.2 uses "1.2" for uname -r. |
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 268 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
272 exit ;; | 269 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
270 exitcode=$? | |
271 trap '' 0 | |
272 exit $exitcode ;; | |
273 Alpha\ *:Windows_NT*:*) | 273 Alpha\ *:Windows_NT*:*) |
274 # How do we know it's Interix rather than the generic POSIX subsystem? | 274 # How do we know it's Interix rather than the generic POSIX subsystem? |
275 # Should we change UNAME_MACHINE based on the output of uname instead | 275 # Should we change UNAME_MACHINE based on the output of uname instead |
276 # of the specific Alpha model? | 276 # of the specific Alpha model? |
277 echo alpha-pc-interix | 277 echo alpha-pc-interix |
293 exit ;; | 293 exit ;; |
294 *:z/VM:*:*) | 294 *:z/VM:*:*) |
295 echo s390-ibm-zvmoe | 295 echo s390-ibm-zvmoe |
296 exit ;; | 296 exit ;; |
297 *:OS400:*:*) | 297 *:OS400:*:*) |
298 echo powerpc-ibm-os400 | 298 echo powerpc-ibm-os400 |
299 exit ;; | 299 exit ;; |
300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
301 echo arm-acorn-riscix${UNAME_RELEASE} | 301 echo arm-acorn-riscix${UNAME_RELEASE} |
302 exit ;; | 302 exit ;; |
303 arm:riscos:*:*|arm:RISCOS:*:*) | 303 arm*:riscos:*:*|arm*:RISCOS:*:*) |
304 echo arm-unknown-riscos | 304 echo arm-unknown-riscos |
305 exit ;; | 305 exit ;; |
306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | 306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
307 echo hppa1.1-hitachi-hiuxmpp | 307 echo hppa1.1-hitachi-hiuxmpp |
308 exit ;; | 308 exit ;; |
322 exit ;; | 322 exit ;; |
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
324 case `/usr/bin/uname -p` in | 324 case `/usr/bin/uname -p` in |
325 sparc) echo sparc-icl-nx7; exit ;; | 325 sparc) echo sparc-icl-nx7; exit ;; |
326 esac ;; | 326 esac ;; |
327 s390x:SunOS:*:*) | |
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
329 exit ;; | |
327 sun4H:SunOS:5.*:*) | 330 sun4H:SunOS:5.*:*) |
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
329 exit ;; | 332 exit ;; |
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 333 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 exit ;; | |
336 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
337 echo i386-pc-auroraux${UNAME_RELEASE} | |
332 exit ;; | 338 exit ;; |
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 339 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 eval $set_cc_for_build | 340 eval $set_cc_for_build |
335 SUN_ARCH="i386" | 341 SUN_ARCH="i386" |
336 # If there is a compiler, see if it is configured for 64-bit objects. | 342 # If there is a compiler, see if it is configured for 64-bit objects. |
386 # to the lowercase version "mint" (or "freemint"). Finally | 392 # to the lowercase version "mint" (or "freemint"). Finally |
387 # the system name "TOS" denotes a system which is actually not | 393 # the system name "TOS" denotes a system which is actually not |
388 # MiNT. But MiNT is downward compatible to TOS, so this should | 394 # MiNT. But MiNT is downward compatible to TOS, so this should |
389 # be no problem. | 395 # be no problem. |
390 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | 396 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
391 echo m68k-atari-mint${UNAME_RELEASE} | 397 echo m68k-atari-mint${UNAME_RELEASE} |
392 exit ;; | 398 exit ;; |
393 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | 399 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
394 echo m68k-atari-mint${UNAME_RELEASE} | 400 echo m68k-atari-mint${UNAME_RELEASE} |
395 exit ;; | 401 exit ;; |
396 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | 402 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
397 echo m68k-atari-mint${UNAME_RELEASE} | 403 echo m68k-atari-mint${UNAME_RELEASE} |
398 exit ;; | 404 exit ;; |
399 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | 405 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
400 echo m68k-milan-mint${UNAME_RELEASE} | 406 echo m68k-milan-mint${UNAME_RELEASE} |
401 exit ;; | 407 exit ;; |
402 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | 408 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
403 echo m68k-hades-mint${UNAME_RELEASE} | 409 echo m68k-hades-mint${UNAME_RELEASE} |
404 exit ;; | 410 exit ;; |
405 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 411 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
406 echo m68k-unknown-mint${UNAME_RELEASE} | 412 echo m68k-unknown-mint${UNAME_RELEASE} |
407 exit ;; | 413 exit ;; |
408 m68k:machten:*:*) | 414 m68k:machten:*:*) |
409 echo m68k-apple-machten${UNAME_RELEASE} | 415 echo m68k-apple-machten${UNAME_RELEASE} |
410 exit ;; | 416 exit ;; |
411 powerpc:machten:*:*) | 417 powerpc:machten:*:*) |
412 echo powerpc-apple-machten${UNAME_RELEASE} | 418 echo powerpc-apple-machten${UNAME_RELEASE} |
472 exit ;; | 478 exit ;; |
473 m88k:*:3*:R3*) | 479 m88k:*:3*:R3*) |
474 echo m88k-motorola-sysv3 | 480 echo m88k-motorola-sysv3 |
475 exit ;; | 481 exit ;; |
476 AViiON:dgux:*:*) | 482 AViiON:dgux:*:*) |
477 # DG/UX returns AViiON for all architectures | 483 # DG/UX returns AViiON for all architectures |
478 UNAME_PROCESSOR=`/usr/bin/uname -p` | 484 UNAME_PROCESSOR=`/usr/bin/uname -p` |
479 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | 485 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
480 then | 486 then |
481 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | 487 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
482 [ ${TARGET_BINARY_INTERFACE}x = x ] | 488 [ ${TARGET_BINARY_INTERFACE}x = x ] |
483 then | 489 then |
486 echo m88k-dg-dguxbcs${UNAME_RELEASE} | 492 echo m88k-dg-dguxbcs${UNAME_RELEASE} |
487 fi | 493 fi |
488 else | 494 else |
489 echo i586-dg-dgux${UNAME_RELEASE} | 495 echo i586-dg-dgux${UNAME_RELEASE} |
490 fi | 496 fi |
491 exit ;; | 497 exit ;; |
492 M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 498 M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
493 echo m88k-dolphin-sysv3 | 499 echo m88k-dolphin-sysv3 |
494 exit ;; | 500 exit ;; |
495 M88*:*:R3*:*) | 501 M88*:*:R3*:*) |
496 # Delta 88k system running SVR3 | 502 # Delta 88k system running SVR3 |
543 echo rs6000-ibm-aix3.2.4 | 549 echo rs6000-ibm-aix3.2.4 |
544 else | 550 else |
545 echo rs6000-ibm-aix3.2 | 551 echo rs6000-ibm-aix3.2 |
546 fi | 552 fi |
547 exit ;; | 553 exit ;; |
548 *:AIX:*:[456]) | 554 *:AIX:*:[4567]) |
549 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 555 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
550 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | 556 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
551 IBM_ARCH=rs6000 | 557 IBM_ARCH=rs6000 |
552 else | 558 else |
553 IBM_ARCH=powerpc | 559 IBM_ARCH=powerpc |
586 9000/31? ) HP_ARCH=m68000 ;; | 592 9000/31? ) HP_ARCH=m68000 ;; |
587 9000/[34]?? ) HP_ARCH=m68k ;; | 593 9000/[34]?? ) HP_ARCH=m68k ;; |
588 9000/[678][0-9][0-9]) | 594 9000/[678][0-9][0-9]) |
589 if [ -x /usr/bin/getconf ]; then | 595 if [ -x /usr/bin/getconf ]; then |
590 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 596 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
591 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | 597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
592 case "${sc_cpu_version}" in | 598 case "${sc_cpu_version}" in |
593 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | 599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
594 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | 600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
595 532) # CPU_PA_RISC2_0 | 601 532) # CPU_PA_RISC2_0 |
596 case "${sc_kernel_bits}" in | 602 case "${sc_kernel_bits}" in |
597 32) HP_ARCH="hppa2.0n" ;; | 603 32) HP_ARCH="hppa2.0n" ;; |
598 64) HP_ARCH="hppa2.0w" ;; | 604 64) HP_ARCH="hppa2.0w" ;; |
599 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | 605 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
600 esac ;; | 606 esac ;; |
601 esac | 607 esac |
602 fi | 608 fi |
603 if [ "${HP_ARCH}" = "" ]; then | 609 if [ "${HP_ARCH}" = "" ]; then |
604 eval $set_cc_for_build | 610 eval $set_cc_for_build |
605 sed 's/^ //' << EOF >$dummy.c | 611 sed 's/^ //' << EOF >$dummy.c |
606 | 612 |
607 #define _HPUX_SOURCE | 613 #define _HPUX_SOURCE |
608 #include <stdlib.h> | 614 #include <stdlib.h> |
609 #include <unistd.h> | 615 #include <unistd.h> |
610 | 616 |
611 int main () | 617 int main () |
612 { | 618 { |
613 #if defined(_SC_KERNEL_BITS) | 619 #if defined(_SC_KERNEL_BITS) |
614 long bits = sysconf(_SC_KERNEL_BITS); | 620 long bits = sysconf(_SC_KERNEL_BITS); |
615 #endif | 621 #endif |
616 long cpu = sysconf (_SC_CPU_VERSION); | 622 long cpu = sysconf (_SC_CPU_VERSION); |
617 | 623 |
618 switch (cpu) | 624 switch (cpu) |
619 { | 625 { |
620 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | 626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
621 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | 627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
622 case CPU_PA_RISC2_0: | 628 case CPU_PA_RISC2_0: |
623 #if defined(_SC_KERNEL_BITS) | 629 #if defined(_SC_KERNEL_BITS) |
624 switch (bits) | 630 switch (bits) |
625 { | 631 { |
626 case 64: puts ("hppa2.0w"); break; | 632 case 64: puts ("hppa2.0w"); break; |
627 case 32: puts ("hppa2.0n"); break; | 633 case 32: puts ("hppa2.0n"); break; |
628 default: puts ("hppa2.0"); break; | 634 default: puts ("hppa2.0"); break; |
629 } break; | 635 } break; |
630 #else /* !defined(_SC_KERNEL_BITS) */ | 636 #else /* !defined(_SC_KERNEL_BITS) */ |
631 puts ("hppa2.0"); break; | 637 puts ("hppa2.0"); break; |
632 #endif | 638 #endif |
633 default: puts ("hppa1.0"); break; | 639 default: puts ("hppa1.0"); break; |
634 } | 640 } |
635 exit (0); | 641 exit (0); |
636 } | 642 } |
637 EOF | 643 EOF |
638 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | 644 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
639 test -z "$HP_ARCH" && HP_ARCH=hppa | 645 test -z "$HP_ARCH" && HP_ARCH=hppa |
640 fi ;; | 646 fi ;; |
641 esac | 647 esac |
651 # => hppa2.0w-hp-hpux11.23 | 657 # => hppa2.0w-hp-hpux11.23 |
652 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | 658 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
653 # => hppa64-hp-hpux11.23 | 659 # => hppa64-hp-hpux11.23 |
654 | 660 |
655 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | 661 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
656 grep __LP64__ >/dev/null | 662 grep -q __LP64__ |
657 then | 663 then |
658 HP_ARCH="hppa2.0w" | 664 HP_ARCH="hppa2.0w" |
659 else | 665 else |
660 HP_ARCH="hppa64" | 666 HP_ARCH="hppa64" |
661 fi | 667 fi |
722 parisc*:Lites*:*:*) | 728 parisc*:Lites*:*:*) |
723 echo hppa1.1-hp-lites | 729 echo hppa1.1-hp-lites |
724 exit ;; | 730 exit ;; |
725 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | 731 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
726 echo c1-convex-bsd | 732 echo c1-convex-bsd |
727 exit ;; | 733 exit ;; |
728 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | 734 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
729 if getsysinfo -f scalar_acc | 735 if getsysinfo -f scalar_acc |
730 then echo c32-convex-bsd | 736 then echo c32-convex-bsd |
731 else echo c2-convex-bsd | 737 else echo c2-convex-bsd |
732 fi | 738 fi |
733 exit ;; | 739 exit ;; |
734 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | 740 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
735 echo c34-convex-bsd | 741 echo c34-convex-bsd |
736 exit ;; | 742 exit ;; |
737 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | 743 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
738 echo c38-convex-bsd | 744 echo c38-convex-bsd |
739 exit ;; | 745 exit ;; |
740 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | 746 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
741 echo c4-convex-bsd | 747 echo c4-convex-bsd |
742 exit ;; | 748 exit ;; |
743 CRAY*Y-MP:*:*:*) | 749 CRAY*Y-MP:*:*:*) |
744 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | 750 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
745 exit ;; | 751 exit ;; |
746 CRAY*[A-Z]90:*:*:*) | 752 CRAY*[A-Z]90:*:*:*) |
747 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | 753 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
761 *:UNICOS/mp:*:*) | 767 *:UNICOS/mp:*:*) |
762 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | 768 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
763 exit ;; | 769 exit ;; |
764 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | 770 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
765 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 771 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
766 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | 772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
767 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | 773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
768 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
769 exit ;; | 775 exit ;; |
770 5000:UNIX_System_V:4.*:*) | 776 5000:UNIX_System_V:4.*:*) |
771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | 777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
772 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | 778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
773 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
774 exit ;; | 780 exit ;; |
775 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | 781 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
776 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | 782 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
777 exit ;; | 783 exit ;; |
778 sparc*:BSD/OS:*:*) | 784 sparc*:BSD/OS:*:*) |
780 exit ;; | 786 exit ;; |
781 *:BSD/OS:*:*) | 787 *:BSD/OS:*:*) |
782 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | 788 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
783 exit ;; | 789 exit ;; |
784 *:FreeBSD:*:*) | 790 *:FreeBSD:*:*) |
785 case ${UNAME_MACHINE} in | 791 UNAME_PROCESSOR=`/usr/bin/uname -p` |
786 pc98) | 792 case ${UNAME_PROCESSOR} in |
787 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
788 amd64) | 793 amd64) |
789 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | 794 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
790 *) | 795 *) |
791 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | 796 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
792 esac | 797 esac |
793 exit ;; | 798 exit ;; |
794 i*:CYGWIN*:*) | 799 i*:CYGWIN*:*) |
795 echo ${UNAME_MACHINE}-pc-cygwin | 800 echo ${UNAME_MACHINE}-pc-cygwin |
796 exit ;; | 801 exit ;; |
802 *:MINGW64*:*) | |
803 echo ${UNAME_MACHINE}-pc-mingw64 | |
804 exit ;; | |
797 *:MINGW*:*) | 805 *:MINGW*:*) |
798 echo ${UNAME_MACHINE}-pc-mingw32 | 806 echo ${UNAME_MACHINE}-pc-mingw32 |
799 exit ;; | 807 exit ;; |
808 i*:MSYS*:*) | |
809 echo ${UNAME_MACHINE}-pc-msys | |
810 exit ;; | |
800 i*:windows32*:*) | 811 i*:windows32*:*) |
801 # uname -m includes "-pc" on this system. | 812 # uname -m includes "-pc" on this system. |
802 echo ${UNAME_MACHINE}-mingw32 | 813 echo ${UNAME_MACHINE}-mingw32 |
803 exit ;; | 814 exit ;; |
804 i*:PW*:*) | 815 i*:PW*:*) |
805 echo ${UNAME_MACHINE}-pc-pw32 | 816 echo ${UNAME_MACHINE}-pc-pw32 |
806 exit ;; | 817 exit ;; |
807 *:Interix*:[3456]*) | 818 *:Interix*:*) |
808 case ${UNAME_MACHINE} in | 819 case ${UNAME_MACHINE} in |
809 x86) | 820 x86) |
810 echo i586-pc-interix${UNAME_RELEASE} | 821 echo i586-pc-interix${UNAME_RELEASE} |
811 exit ;; | 822 exit ;; |
812 EM64T | authenticamd | genuineintel) | 823 authenticamd | genuineintel | EM64T) |
813 echo x86_64-unknown-interix${UNAME_RELEASE} | 824 echo x86_64-unknown-interix${UNAME_RELEASE} |
814 exit ;; | 825 exit ;; |
815 IA64) | 826 IA64) |
816 echo ia64-unknown-interix${UNAME_RELEASE} | 827 echo ia64-unknown-interix${UNAME_RELEASE} |
817 exit ;; | 828 exit ;; |
818 esac ;; | 829 esac ;; |
819 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 830 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
820 echo i${UNAME_MACHINE}-pc-mks | 831 echo i${UNAME_MACHINE}-pc-mks |
821 exit ;; | 832 exit ;; |
833 8664:Windows_NT:*) | |
834 echo x86_64-pc-mks | |
835 exit ;; | |
822 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | 836 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
823 # How do we know it's Interix rather than the generic POSIX subsystem? | 837 # How do we know it's Interix rather than the generic POSIX subsystem? |
824 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | 838 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
825 # UNAME_MACHINE based on the output of uname instead of i386? | 839 # UNAME_MACHINE based on the output of uname instead of i386? |
826 echo i586-pc-interix | 840 echo i586-pc-interix |
846 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 860 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
847 exit ;; | 861 exit ;; |
848 i*86:Minix:*:*) | 862 i*86:Minix:*:*) |
849 echo ${UNAME_MACHINE}-pc-minix | 863 echo ${UNAME_MACHINE}-pc-minix |
850 exit ;; | 864 exit ;; |
851 arm*:Linux:*:*) | 865 aarch64:Linux:*:*) |
852 eval $set_cc_for_build | |
853 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
854 | grep -q __ARM_EABI__ | |
855 then | |
856 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
857 else | |
858 echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
859 fi | |
860 exit ;; | |
861 avr32*:Linux:*:*) | |
862 echo ${UNAME_MACHINE}-unknown-linux-gnu | 866 echo ${UNAME_MACHINE}-unknown-linux-gnu |
863 exit ;; | 867 exit ;; |
864 cris:Linux:*:*) | 868 aarch64_be:Linux:*:*) |
865 echo cris-axis-linux-gnu | 869 UNAME_MACHINE=aarch64_be |
866 exit ;; | |
867 crisv32:Linux:*:*) | |
868 echo crisv32-axis-linux-gnu | |
869 exit ;; | |
870 frv:Linux:*:*) | |
871 echo frv-unknown-linux-gnu | |
872 exit ;; | |
873 ia64:Linux:*:*) | |
874 echo ${UNAME_MACHINE}-unknown-linux-gnu | 870 echo ${UNAME_MACHINE}-unknown-linux-gnu |
875 exit ;; | |
876 m32r*:Linux:*:*) | |
877 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
878 exit ;; | |
879 m68*:Linux:*:*) | |
880 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
881 exit ;; | |
882 mips:Linux:*:*) | |
883 eval $set_cc_for_build | |
884 sed 's/^ //' << EOF >$dummy.c | |
885 #undef CPU | |
886 #undef mips | |
887 #undef mipsel | |
888 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
889 CPU=mipsel | |
890 #else | |
891 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
892 CPU=mips | |
893 #else | |
894 CPU= | |
895 #endif | |
896 #endif | |
897 EOF | |
898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
899 /^CPU/{ | |
900 s: ::g | |
901 p | |
902 }'`" | |
903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
904 ;; | |
905 mips64:Linux:*:*) | |
906 eval $set_cc_for_build | |
907 sed 's/^ //' << EOF >$dummy.c | |
908 #undef CPU | |
909 #undef mips64 | |
910 #undef mips64el | |
911 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
912 CPU=mips64el | |
913 #else | |
914 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
915 CPU=mips64 | |
916 #else | |
917 CPU= | |
918 #endif | |
919 #endif | |
920 EOF | |
921 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
922 /^CPU/{ | |
923 s: ::g | |
924 p | |
925 }'`" | |
926 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
927 ;; | |
928 or32:Linux:*:*) | |
929 echo or32-unknown-linux-gnu | |
930 exit ;; | |
931 ppc:Linux:*:*) | |
932 echo powerpc-unknown-linux-gnu | |
933 exit ;; | |
934 ppc64:Linux:*:*) | |
935 echo powerpc64-unknown-linux-gnu | |
936 exit ;; | 871 exit ;; |
937 alpha:Linux:*:*) | 872 alpha:Linux:*:*) |
938 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 873 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
939 EV5) UNAME_MACHINE=alphaev5 ;; | 874 EV5) UNAME_MACHINE=alphaev5 ;; |
940 EV56) UNAME_MACHINE=alphaev56 ;; | 875 EV56) UNAME_MACHINE=alphaev56 ;; |
941 PCA56) UNAME_MACHINE=alphapca56 ;; | 876 PCA56) UNAME_MACHINE=alphapca56 ;; |
942 PCA57) UNAME_MACHINE=alphapca56 ;; | 877 PCA57) UNAME_MACHINE=alphapca56 ;; |
943 EV6) UNAME_MACHINE=alphaev6 ;; | 878 EV6) UNAME_MACHINE=alphaev6 ;; |
944 EV67) UNAME_MACHINE=alphaev67 ;; | 879 EV67) UNAME_MACHINE=alphaev67 ;; |
945 EV68*) UNAME_MACHINE=alphaev68 ;; | 880 EV68*) UNAME_MACHINE=alphaev68 ;; |
946 esac | 881 esac |
947 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | 882 objdump --private-headers /bin/sh | grep -q ld.so.1 |
948 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 883 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
949 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 884 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
950 exit ;; | 885 exit ;; |
886 arm*:Linux:*:*) | |
887 eval $set_cc_for_build | |
888 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
889 | grep -q __ARM_EABI__ | |
890 then | |
891 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
892 else | |
893 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
894 | grep -q __ARM_PCS_VFP | |
895 then | |
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
897 else | |
898 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | |
899 fi | |
900 fi | |
901 exit ;; | |
902 avr32*:Linux:*:*) | |
903 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
904 exit ;; | |
905 cris:Linux:*:*) | |
906 echo ${UNAME_MACHINE}-axis-linux-gnu | |
907 exit ;; | |
908 crisv32:Linux:*:*) | |
909 echo ${UNAME_MACHINE}-axis-linux-gnu | |
910 exit ;; | |
911 frv:Linux:*:*) | |
912 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
913 exit ;; | |
914 hexagon:Linux:*:*) | |
915 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
916 exit ;; | |
917 i*86:Linux:*:*) | |
918 LIBC=gnu | |
919 eval $set_cc_for_build | |
920 sed 's/^ //' << EOF >$dummy.c | |
921 #ifdef __dietlibc__ | |
922 LIBC=dietlibc | |
923 #endif | |
924 EOF | |
925 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
926 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
927 exit ;; | |
928 ia64:Linux:*:*) | |
929 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
930 exit ;; | |
931 m32r*:Linux:*:*) | |
932 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
933 exit ;; | |
934 m68*:Linux:*:*) | |
935 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
936 exit ;; | |
937 mips:Linux:*:* | mips64:Linux:*:*) | |
938 eval $set_cc_for_build | |
939 sed 's/^ //' << EOF >$dummy.c | |
940 #undef CPU | |
941 #undef ${UNAME_MACHINE} | |
942 #undef ${UNAME_MACHINE}el | |
943 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
944 CPU=${UNAME_MACHINE}el | |
945 #else | |
946 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
947 CPU=${UNAME_MACHINE} | |
948 #else | |
949 CPU= | |
950 #endif | |
951 #endif | |
952 EOF | |
953 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
954 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
955 ;; | |
956 or1k:Linux:*:*) | |
957 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
958 exit ;; | |
959 or32:Linux:*:*) | |
960 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
961 exit ;; | |
951 padre:Linux:*:*) | 962 padre:Linux:*:*) |
952 echo sparc-unknown-linux-gnu | 963 echo sparc-unknown-linux-gnu |
964 exit ;; | |
965 parisc64:Linux:*:* | hppa64:Linux:*:*) | |
966 echo hppa64-unknown-linux-gnu | |
953 exit ;; | 967 exit ;; |
954 parisc:Linux:*:* | hppa:Linux:*:*) | 968 parisc:Linux:*:* | hppa:Linux:*:*) |
955 # Look for CPU level | 969 # Look for CPU level |
956 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 970 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
957 PA7*) echo hppa1.1-unknown-linux-gnu ;; | 971 PA7*) echo hppa1.1-unknown-linux-gnu ;; |
958 PA8*) echo hppa2.0-unknown-linux-gnu ;; | 972 PA8*) echo hppa2.0-unknown-linux-gnu ;; |
959 *) echo hppa-unknown-linux-gnu ;; | 973 *) echo hppa-unknown-linux-gnu ;; |
960 esac | 974 esac |
961 exit ;; | 975 exit ;; |
962 parisc64:Linux:*:* | hppa64:Linux:*:*) | 976 ppc64:Linux:*:*) |
963 echo hppa64-unknown-linux-gnu | 977 echo powerpc64-unknown-linux-gnu |
978 exit ;; | |
979 ppc:Linux:*:*) | |
980 echo powerpc-unknown-linux-gnu | |
964 exit ;; | 981 exit ;; |
965 s390:Linux:*:* | s390x:Linux:*:*) | 982 s390:Linux:*:* | s390x:Linux:*:*) |
966 echo ${UNAME_MACHINE}-ibm-linux | 983 echo ${UNAME_MACHINE}-ibm-linux |
967 exit ;; | 984 exit ;; |
968 sh64*:Linux:*:*) | 985 sh64*:Linux:*:*) |
969 echo ${UNAME_MACHINE}-unknown-linux-gnu | 986 echo ${UNAME_MACHINE}-unknown-linux-gnu |
970 exit ;; | 987 exit ;; |
971 sh*:Linux:*:*) | 988 sh*:Linux:*:*) |
972 echo ${UNAME_MACHINE}-unknown-linux-gnu | 989 echo ${UNAME_MACHINE}-unknown-linux-gnu |
973 exit ;; | 990 exit ;; |
974 sparc:Linux:*:* | sparc64:Linux:*:*) | 991 sparc:Linux:*:* | sparc64:Linux:*:*) |
975 echo ${UNAME_MACHINE}-unknown-linux-gnu | 992 echo ${UNAME_MACHINE}-unknown-linux-gnu |
976 exit ;; | 993 exit ;; |
994 tile*:Linux:*:*) | |
995 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
996 exit ;; | |
977 vax:Linux:*:*) | 997 vax:Linux:*:*) |
978 echo ${UNAME_MACHINE}-dec-linux-gnu | 998 echo ${UNAME_MACHINE}-dec-linux-gnu |
979 exit ;; | 999 exit ;; |
980 x86_64:Linux:*:*) | 1000 x86_64:Linux:*:*) |
981 echo x86_64-unknown-linux-gnu | 1001 echo ${UNAME_MACHINE}-unknown-linux-gnu |
982 exit ;; | 1002 exit ;; |
983 xtensa*:Linux:*:*) | 1003 xtensa*:Linux:*:*) |
984 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1004 echo ${UNAME_MACHINE}-unknown-linux-gnu |
985 exit ;; | 1005 exit ;; |
986 i*86:Linux:*:*) | |
987 # The BFD linker knows what the default object file format is, so | |
988 # first see if it will tell us. cd to the root directory to prevent | |
989 # problems with other programs or directories called `ld' in the path. | |
990 # Set LC_ALL=C to ensure ld outputs messages in English. | |
991 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | |
992 | sed -ne '/supported targets:/!d | |
993 s/[ ][ ]*/ /g | |
994 s/.*supported targets: *// | |
995 s/ .*// | |
996 p'` | |
997 case "$ld_supported_targets" in | |
998 elf32-i386) | |
999 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
1000 ;; | |
1001 a.out-i386-linux) | |
1002 echo "${UNAME_MACHINE}-pc-linux-gnuaout" | |
1003 exit ;; | |
1004 "") | |
1005 # Either a pre-BFD a.out linker (linux-gnuoldld) or | |
1006 # one that does not give us useful --help. | |
1007 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | |
1008 exit ;; | |
1009 esac | |
1010 # Determine whether the default compiler is a.out or elf | |
1011 eval $set_cc_for_build | |
1012 sed 's/^ //' << EOF >$dummy.c | |
1013 #include <features.h> | |
1014 #ifdef __ELF__ | |
1015 # ifdef __GLIBC__ | |
1016 # if __GLIBC__ >= 2 | |
1017 LIBC=gnu | |
1018 # else | |
1019 LIBC=gnulibc1 | |
1020 # endif | |
1021 # else | |
1022 LIBC=gnulibc1 | |
1023 # endif | |
1024 #else | |
1025 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) | |
1026 LIBC=gnu | |
1027 #else | |
1028 LIBC=gnuaout | |
1029 #endif | |
1030 #endif | |
1031 #ifdef __dietlibc__ | |
1032 LIBC=dietlibc | |
1033 #endif | |
1034 EOF | |
1035 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
1036 /^LIBC/{ | |
1037 s: ::g | |
1038 p | |
1039 }'`" | |
1040 test x"${LIBC}" != x && { | |
1041 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
1042 exit | |
1043 } | |
1044 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | |
1045 ;; | |
1046 i*86:DYNIX/ptx:4*:*) | 1006 i*86:DYNIX/ptx:4*:*) |
1047 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1007 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1048 # earlier versions are messed up and put the nodename in both | 1008 # earlier versions are messed up and put the nodename in both |
1049 # sysname and nodename. | 1009 # sysname and nodename. |
1050 echo i386-sequent-sysv4 | 1010 echo i386-sequent-sysv4 |
1051 exit ;; | 1011 exit ;; |
1052 i*86:UNIX_SV:4.2MP:2.*) | 1012 i*86:UNIX_SV:4.2MP:2.*) |
1053 # Unixware is an offshoot of SVR4, but it has its own version | 1013 # Unixware is an offshoot of SVR4, but it has its own version |
1054 # number series starting with 2... | 1014 # number series starting with 2... |
1055 # I am not positive that other SVR4 systems won't match this, | 1015 # I am not positive that other SVR4 systems won't match this, |
1056 # I just have to hope. -- rms. | 1016 # I just have to hope. -- rms. |
1057 # Use sysv4.2uw... so that sysv4* matches it. | 1017 # Use sysv4.2uw... so that sysv4* matches it. |
1058 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | 1018 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
1059 exit ;; | 1019 exit ;; |
1060 i*86:OS/2:*:*) | 1020 i*86:OS/2:*:*) |
1061 # If we were able to find `uname', then EMX Unix compatibility | 1021 # If we were able to find `uname', then EMX Unix compatibility |
1062 # is probably installed. | 1022 # is probably installed. |
1069 echo ${UNAME_MACHINE}-unknown-atheos | 1029 echo ${UNAME_MACHINE}-unknown-atheos |
1070 exit ;; | 1030 exit ;; |
1071 i*86:syllable:*:*) | 1031 i*86:syllable:*:*) |
1072 echo ${UNAME_MACHINE}-pc-syllable | 1032 echo ${UNAME_MACHINE}-pc-syllable |
1073 exit ;; | 1033 exit ;; |
1074 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | 1034 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1075 echo i386-unknown-lynxos${UNAME_RELEASE} | 1035 echo i386-unknown-lynxos${UNAME_RELEASE} |
1076 exit ;; | 1036 exit ;; |
1077 i*86:*DOS:*:*) | 1037 i*86:*DOS:*:*) |
1078 echo ${UNAME_MACHINE}-pc-msdosdjgpp | 1038 echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1079 exit ;; | 1039 exit ;; |
1084 else | 1044 else |
1085 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | 1045 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1086 fi | 1046 fi |
1087 exit ;; | 1047 exit ;; |
1088 i*86:*:5:[678]*) | 1048 i*86:*:5:[678]*) |
1089 # UnixWare 7.x, OpenUNIX and OpenServer 6. | 1049 # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1090 case `/bin/uname -X | grep "^Machine"` in | 1050 case `/bin/uname -X | grep "^Machine"` in |
1091 *486*) UNAME_MACHINE=i486 ;; | 1051 *486*) UNAME_MACHINE=i486 ;; |
1092 *Pentium) UNAME_MACHINE=i586 ;; | 1052 *Pentium) UNAME_MACHINE=i586 ;; |
1093 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | 1053 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1094 esac | 1054 esac |
1112 echo ${UNAME_MACHINE}-pc-sysv32 | 1072 echo ${UNAME_MACHINE}-pc-sysv32 |
1113 fi | 1073 fi |
1114 exit ;; | 1074 exit ;; |
1115 pc:*:*:*) | 1075 pc:*:*:*) |
1116 # Left here for compatibility: | 1076 # Left here for compatibility: |
1117 # uname -m prints for DJGPP always 'pc', but it prints nothing about | 1077 # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1118 # the processor, so we play safe by assuming i386. | 1078 # the processor, so we play safe by assuming i586. |
1119 echo i386-pc-msdosdjgpp | 1079 # Note: whatever this is, it MUST be the same as what config.sub |
1120 exit ;; | 1080 # prints for the "djgpp" host, or else GDB configury will decide that |
1081 # this is a cross-build. | |
1082 echo i586-pc-msdosdjgpp | |
1083 exit ;; | |
1121 Intel:Mach:3*:*) | 1084 Intel:Mach:3*:*) |
1122 echo i386-pc-mach3 | 1085 echo i386-pc-mach3 |
1123 exit ;; | 1086 exit ;; |
1124 paragon:*:*:*) | 1087 paragon:*:*:*) |
1125 echo i860-intel-osf1 | 1088 echo i860-intel-osf1 |
1150 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1113 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1151 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | 1114 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1152 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | 1115 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1153 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | 1116 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1154 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 1117 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1118 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1156 && { echo i486-ncr-sysv4; exit; } ;; | 1119 && { echo i486-ncr-sysv4; exit; } ;; |
1157 NCR*:*:4.2:* | MPRAS*:*:4.2:*) | 1120 NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
1158 OS_REL='.3' | 1121 OS_REL='.3' |
1159 test -r /etc/.relid \ | 1122 test -r /etc/.relid \ |
1160 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | 1123 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1161 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1124 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1174 echo sparc-unknown-lynxos${UNAME_RELEASE} | 1137 echo sparc-unknown-lynxos${UNAME_RELEASE} |
1175 exit ;; | 1138 exit ;; |
1176 rs6000:LynxOS:2.*:*) | 1139 rs6000:LynxOS:2.*:*) |
1177 echo rs6000-unknown-lynxos${UNAME_RELEASE} | 1140 echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1178 exit ;; | 1141 exit ;; |
1179 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | 1142 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1180 echo powerpc-unknown-lynxos${UNAME_RELEASE} | 1143 echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1181 exit ;; | 1144 exit ;; |
1182 SM[BE]S:UNIX_SV:*:*) | 1145 SM[BE]S:UNIX_SV:*:*) |
1183 echo mips-dde-sysv${UNAME_RELEASE} | 1146 echo mips-dde-sysv${UNAME_RELEASE} |
1184 exit ;; | 1147 exit ;; |
1194 echo ${UNAME_MACHINE}-sni-sysv4 | 1157 echo ${UNAME_MACHINE}-sni-sysv4 |
1195 else | 1158 else |
1196 echo ns32k-sni-sysv | 1159 echo ns32k-sni-sysv |
1197 fi | 1160 fi |
1198 exit ;; | 1161 exit ;; |
1199 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1162 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1200 # says <Richard.M.Bartel@ccMail.Census.GOV> | 1163 # says <Richard.M.Bartel@ccMail.Census.GOV> |
1201 echo i586-unisys-sysv4 | 1164 echo i586-unisys-sysv4 |
1202 exit ;; | 1165 exit ;; |
1203 *:UNIX_System_V:4*:FTX*) | 1166 *:UNIX_System_V:4*:FTX*) |
1204 # From Gerald Hewes <hewes@openmarket.com>. | 1167 # From Gerald Hewes <hewes@openmarket.com>. |
1205 # How about differentiating between stratus architectures? -djm | 1168 # How about differentiating between stratus architectures? -djm |
1206 echo hppa1.1-stratus-sysv4 | 1169 echo hppa1.1-stratus-sysv4 |
1207 exit ;; | 1170 exit ;; |
1223 news*:NEWS-OS:6*:*) | 1186 news*:NEWS-OS:6*:*) |
1224 echo mips-sony-newsos6 | 1187 echo mips-sony-newsos6 |
1225 exit ;; | 1188 exit ;; |
1226 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | 1189 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1227 if [ -d /usr/nec ]; then | 1190 if [ -d /usr/nec ]; then |
1228 echo mips-nec-sysv${UNAME_RELEASE} | 1191 echo mips-nec-sysv${UNAME_RELEASE} |
1229 else | 1192 else |
1230 echo mips-unknown-sysv${UNAME_RELEASE} | 1193 echo mips-unknown-sysv${UNAME_RELEASE} |
1231 fi | 1194 fi |
1232 exit ;; | 1195 exit ;; |
1233 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | 1196 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1234 echo powerpc-be-beos | 1197 echo powerpc-be-beos |
1235 exit ;; | 1198 exit ;; |
1236 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1199 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1237 echo powerpc-apple-beos | 1200 echo powerpc-apple-beos |
1239 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1202 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1240 echo i586-pc-beos | 1203 echo i586-pc-beos |
1241 exit ;; | 1204 exit ;; |
1242 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | 1205 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1243 echo i586-pc-haiku | 1206 echo i586-pc-haiku |
1207 exit ;; | |
1208 x86_64:Haiku:*:*) | |
1209 echo x86_64-unknown-haiku | |
1244 exit ;; | 1210 exit ;; |
1245 SX-4:SUPER-UX:*:*) | 1211 SX-4:SUPER-UX:*:*) |
1246 echo sx4-nec-superux${UNAME_RELEASE} | 1212 echo sx4-nec-superux${UNAME_RELEASE} |
1247 exit ;; | 1213 exit ;; |
1248 SX-5:SUPER-UX:*:*) | 1214 SX-5:SUPER-UX:*:*) |
1267 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1233 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1268 exit ;; | 1234 exit ;; |
1269 *:Darwin:*:*) | 1235 *:Darwin:*:*) |
1270 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1236 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1271 case $UNAME_PROCESSOR in | 1237 case $UNAME_PROCESSOR in |
1238 i386) | |
1239 eval $set_cc_for_build | |
1240 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1241 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1242 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1243 grep IS_64BIT_ARCH >/dev/null | |
1244 then | |
1245 UNAME_PROCESSOR="x86_64" | |
1246 fi | |
1247 fi ;; | |
1272 unknown) UNAME_PROCESSOR=powerpc ;; | 1248 unknown) UNAME_PROCESSOR=powerpc ;; |
1273 esac | 1249 esac |
1274 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1250 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1275 exit ;; | 1251 exit ;; |
1276 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1252 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1282 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | 1258 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1283 exit ;; | 1259 exit ;; |
1284 *:QNX:*:4*) | 1260 *:QNX:*:4*) |
1285 echo i386-pc-qnx | 1261 echo i386-pc-qnx |
1286 exit ;; | 1262 exit ;; |
1287 NSE-?:NONSTOP_KERNEL:*:*) | 1263 NEO-?:NONSTOP_KERNEL:*:*) |
1264 echo neo-tandem-nsk${UNAME_RELEASE} | |
1265 exit ;; | |
1266 NSE-*:NONSTOP_KERNEL:*:*) | |
1288 echo nse-tandem-nsk${UNAME_RELEASE} | 1267 echo nse-tandem-nsk${UNAME_RELEASE} |
1289 exit ;; | 1268 exit ;; |
1290 NSR-?:NONSTOP_KERNEL:*:*) | 1269 NSR-?:NONSTOP_KERNEL:*:*) |
1291 echo nsr-tandem-nsk${UNAME_RELEASE} | 1270 echo nsr-tandem-nsk${UNAME_RELEASE} |
1292 exit ;; | 1271 exit ;; |
1327 exit ;; | 1306 exit ;; |
1328 *:ITS:*:*) | 1307 *:ITS:*:*) |
1329 echo pdp10-unknown-its | 1308 echo pdp10-unknown-its |
1330 exit ;; | 1309 exit ;; |
1331 SEI:*:*:SEIUX) | 1310 SEI:*:*:SEIUX) |
1332 echo mips-sei-seiux${UNAME_RELEASE} | 1311 echo mips-sei-seiux${UNAME_RELEASE} |
1333 exit ;; | 1312 exit ;; |
1334 *:DragonFly:*:*) | 1313 *:DragonFly:*:*) |
1335 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 1314 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1336 exit ;; | 1315 exit ;; |
1337 *:*VMS:*:*) | 1316 *:*VMS:*:*) |
1338 UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1317 UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1339 case "${UNAME_MACHINE}" in | 1318 case "${UNAME_MACHINE}" in |
1340 A*) echo alpha-dec-vms ; exit ;; | 1319 A*) echo alpha-dec-vms ; exit ;; |
1341 I*) echo ia64-dec-vms ; exit ;; | 1320 I*) echo ia64-dec-vms ; exit ;; |
1342 V*) echo vax-dec-vms ; exit ;; | 1321 V*) echo vax-dec-vms ; exit ;; |
1343 esac ;; | 1322 esac ;; |
1351 echo ${UNAME_MACHINE}-pc-rdos | 1330 echo ${UNAME_MACHINE}-pc-rdos |
1352 exit ;; | 1331 exit ;; |
1353 i*86:AROS:*:*) | 1332 i*86:AROS:*:*) |
1354 echo ${UNAME_MACHINE}-pc-aros | 1333 echo ${UNAME_MACHINE}-pc-aros |
1355 exit ;; | 1334 exit ;; |
1335 x86_64:VMkernel:*:*) | |
1336 echo ${UNAME_MACHINE}-unknown-esx | |
1337 exit ;; | |
1356 esac | 1338 esac |
1357 | |
1358 #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1359 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1360 | 1339 |
1361 eval $set_cc_for_build | 1340 eval $set_cc_for_build |
1362 cat >$dummy.c <<EOF | 1341 cat >$dummy.c <<EOF |
1363 #ifdef _SEQUENT_ | 1342 #ifdef _SEQUENT_ |
1364 # include <sys/types.h> | 1343 # include <sys/types.h> |
1373 printf ("mips-sony-bsd\n"); exit (0); | 1352 printf ("mips-sony-bsd\n"); exit (0); |
1374 #else | 1353 #else |
1375 #include <sys/param.h> | 1354 #include <sys/param.h> |
1376 printf ("m68k-sony-newsos%s\n", | 1355 printf ("m68k-sony-newsos%s\n", |
1377 #ifdef NEWSOS4 | 1356 #ifdef NEWSOS4 |
1378 "4" | 1357 "4" |
1379 #else | 1358 #else |
1380 "" | 1359 "" |
1381 #endif | 1360 #endif |
1382 ); exit (0); | 1361 ); exit (0); |
1383 #endif | 1362 #endif |
1384 #endif | 1363 #endif |
1385 | 1364 |
1386 #if defined (__arm) && defined (__acorn) && defined (__unix) | 1365 #if defined (__arm) && defined (__acorn) && defined (__unix) |
1387 printf ("arm-acorn-riscix\n"); exit (0); | 1366 printf ("arm-acorn-riscix\n"); exit (0); |