Lines Matching +full:x86_64 +full:- +full:linux +full:- +full:gnu

3 #   Copyright 1992-2015 Free Software Foundation, Inc.
5 timestamp='2015-03-04'
8 # under the terms of the GNU General Public License as published by
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
20 # As a special exception to the GNU General Public License, if you
25 # of the GNU General Public License, version 3 ("GPLv3").
30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
32 # Please send patches to <config-patches@gnu.org>.
35 me=`echo "$0" | sed -e 's,.*/,,'`
43 -h, --help print this help, then exit
44 -t, --time-stamp print date of last modification, then exit
45 -v, --version print version number, then exit
47 Report bugs and patches to <config-patches@gnu.org>."
50 GNU config.guess ($timestamp)
53 Copyright 1992-2015 Free Software Foundation, Inc.
59 Try \`$me --help' for more information."
62 while test $# -gt 0 ; do
64 --time-stamp | --time* | -t )
66 --version | -v )
68 --help | --h* | -h )
70 -- ) # Stop option processing
72 - ) # Use stdin as input.
74 -* )
89 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
100 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
101 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
103 …{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp…
104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
105 …{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp director…
112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
125 # (ghazi@noc.rutgers.edu 1994-08-24)
126 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
130 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
131 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
136 Linux|GNU|GNU/*)
139 LIBC=gnu
142 cat <<-EOF > $dummy.c
149 LIBC=gnu
152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
156 # Note: order is significant - the case branches are not exclusive.
161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
162 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
163 # switched to ELF, *-*-netbsd* would select the old
170 sysctl="sysctl -n hw.machine_arch"
171 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
176 armeb) machine=armeb-unknown ;;
177 arm*) machine=arm-unknown ;;
178 sh3el) machine=shl-unknown ;;
179 sh3eb) machine=sh-unknown ;;
180 sh5el) machine=sh5le-unknown ;;
182 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
183 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
184 machine=${arch}${endian}-unknown
186 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
193 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
194 | grep -q __ELF__
210 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
211 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
215 # Debian GNU/NetBSD machines have a different userland, and
218 # suitable tag, in the style of linux-gnu.
221 release='-gnu'
224 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
227 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
229 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
230 echo "${machine}-${os}${release}${abi}"
234 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
238 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
241 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
244 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
247 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
250 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
255 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
258 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
264 # types through head -n 1, so we only detect the type of CPU 0.
265 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head
302 # 1.2 uses "1.2" for uname -r.
303 …echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQ…
304 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
312 echo alpha-pc-interix
315 echo alpha-dec-winnt3.5
318 echo m68k-unknown-sysv4
321 echo ${UNAME_MACHINE}-unknown-amigaos
324 echo ${UNAME_MACHINE}-unknown-morphos
327 echo i370-ibm-openedition
330 echo s390-ibm-zvmoe
333 echo powerpc-ibm-os400
336 echo arm-acorn-riscix${UNAME_RELEASE}
339 echo arm-unknown-riscos
341 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
342 echo hppa1.1-hitachi-hiuxmpp
344 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
347 echo pyramid-pyramid-sysv3
349 echo pyramid-pyramid-bsd
353 echo pyramid-pyramid-svr4
356 echo sparc-icl-nx6
359 case `/usr/bin/uname -p` in
360 sparc) echo sparc-icl-nx7; exit ;;
363 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
366 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
369 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
372 echo i386-pc-auroraux${UNAME_RELEASE}
377 # If there is a compiler, see if it is configured for 64-bit objects.
382 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
385 SUN_ARCH="x86_64"
388 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
394 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
397 case "`/usr/bin/arch -k`" in
399 UNAME_RELEASE=`uname -v`
402 # Japanese Language versions have a version number like `4.1.3-JL'.
403 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
406 echo m68k-sun-sunos${UNAME_RELEASE}
413 echo m68k-sun-sunos${UNAME_RELEASE}
416 echo sparc-sun-sunos${UNAME_RELEASE}
421 echo sparc-auspex-sunos${UNAME_RELEASE}
432 echo m68k-atari-mint${UNAME_RELEASE}
435 echo m68k-atari-mint${UNAME_RELEASE}
438 echo m68k-atari-mint${UNAME_RELEASE}
441 echo m68k-milan-mint${UNAME_RELEASE}
444 echo m68k-hades-mint${UNAME_RELEASE}
447 echo m68k-unknown-mint${UNAME_RELEASE}
450 echo m68k-apple-machten${UNAME_RELEASE}
453 echo powerpc-apple-machten${UNAME_RELEASE}
456 echo mips-dec-mach_bsd4.3
459 echo mips-dec-ultrix${UNAME_RELEASE}
462 echo vax-dec-ultrix${UNAME_RELEASE}
465 echo clipper-intergraph-clix${UNAME_RELEASE}
478 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
481 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
484 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
487 exit (-1);
490 $CC_FOR_BUILD -o $dummy $dummy.c &&
491 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
494 echo mips-mips-riscos${UNAME_RELEASE}
497 echo powerpc-motorola-powermax
499 Motorola:*:4.3:PL8-*)
500 echo powerpc-harris-powermax
503 echo powerpc-harris-powermax
506 echo powerpc-harris-powerunix
509 echo m88k-harris-cxux7
512 echo m88k-motorola-sysv4
515 echo m88k-motorola-sysv3
519 UNAME_PROCESSOR=`/usr/bin/uname -p`
525 echo m88k-dg-dgux${UNAME_RELEASE}
527 echo m88k-dg-dguxbcs${UNAME_RELEASE}
530 echo i586-dg-dgux${UNAME_RELEASE}
534 echo m88k-dolphin-sysv3
538 echo m88k-motorola-sysv3
541 echo m88k-tektronix-sysv3
543 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
544 echo m68k-tektronix-bsd
547 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
550 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
551 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
553 echo i386-ibm-aix
556 if [ -x /usr/bin/oslevel ] ; then
561 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
573 puts("powerpc-ibm-aix3.2.5");
577 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
581 echo rs6000-ibm-aix3.2.5
584 echo rs6000-ibm-aix3.2.4
586 echo rs6000-ibm-aix3.2
590 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
591 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
596 if [ -x /usr/bin/lslpp ] ; then
597 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
598 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
602 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
605 echo rs6000-ibm-aix
607 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
608 echo romp-ibm-bsd4.4
610 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
611 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
612 exit ;; # report: romp-ibm BSD 4.3
614 echo rs6000-bull-bosx
617 echo m68k-bull-sysv3
620 echo m68k-hp-bsd
623 echo m68k-hp-bsd4.4
625 9000/[34678]??:HP-UX:*:*)
626 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
630 9000/[678][0-9][0-9])
631 if [ -x /usr/bin/getconf ]; then
641 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
680 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
681 test -z "$HP_ARCH" && HP_ARCH=hppa
688 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
689 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
690 # generating 64-bit code. GNU and HP use different nomenclature:
693 # => hppa2.0w-hp-hpux11.23
695 # => hppa64-hp-hpux11.23
697 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
698 grep -q __LP64__
705 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
707 ia64:HP-UX:*:*)
708 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
709 echo ia64-hp-hpux${HPUX_REV}
711 3050*:HI-UX:*:*)
726 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
727 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
728 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
729 default: puts ("hppa-hitachi-hiuxwe2"); break;
733 puts ("m68k-hitachi-hiuxwe2");
734 else puts ("unknown-hitachi-hiuxwe2");
738 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
740 echo unknown-hitachi-hiuxwe2
743 echo hppa1.1-hp-bsd
746 echo hppa1.0-hp-bsd
749 echo hppa1.0-hp-mpeix
752 echo hppa1.1-hp-osf
755 echo hppa1.0-hp-osf
758 if [ -x /usr/sbin/sysversion ] ; then
759 echo ${UNAME_MACHINE}-unknown-osf1mk
761 echo ${UNAME_MACHINE}-unknown-osf1
765 echo hppa1.1-hp-lites
768 echo c1-convex-bsd
771 if getsysinfo -f scalar_acc
772 then echo c32-convex-bsd
773 else echo c2-convex-bsd
777 echo c34-convex-bsd
780 echo c38-convex-bsd
783 echo c4-convex-bsd
785 CRAY*Y-MP:*:*:*)
786 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
788 CRAY*[A-Z]90:*:*:*)
789 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
790 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
791 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
792 -e 's/\.[^.]*$/.X/'
795 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
798 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
801 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
804 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
807 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
808 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
809 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
810 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
813 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
814 … ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
815 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
818 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
821 echo sparc-unknown-bsdi${UNAME_RELEASE}
824 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
827 UNAME_PROCESSOR=`/usr/bin/uname -p`
828 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
831 echo ${UNAME_MACHINE}-pc-cygwin
834 echo ${UNAME_MACHINE}-pc-mingw64
837 echo ${UNAME_MACHINE}-pc-mingw32
840 echo ${UNAME_MACHINE}-pc-msys
843 # uname -m includes "-pc" on this system.
844 echo ${UNAME_MACHINE}-mingw32
847 echo ${UNAME_MACHINE}-pc-pw32
852 echo i586-pc-interix${UNAME_RELEASE}
855 echo x86_64-unknown-interix${UNAME_RELEASE}
858 echo ia64-unknown-interix${UNAME_RELEASE}
862 echo i${UNAME_MACHINE}-pc-mks
865 echo x86_64-pc-mks
869 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
871 echo i586-pc-interix
874 echo ${UNAME_MACHINE}-pc-uwin
876 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
877 echo x86_64-unknown-cygwin
880 echo powerpcle-unknown-cygwin
883 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
885 *:GNU:*:*)
886 # the GNU system
887 …echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,…
889 *:GNU/*:*:*)
890 # other systems with GNU libc and userland
891 …o ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${…
894 echo ${UNAME_MACHINE}-pc-minix
896 aarch64:Linux:*:*)
897 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
899 aarch64_be:Linux:*:*)
901 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
903 alpha:Linux:*:*)
904 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
913 objdump --private-headers /bin/sh | grep -q ld.so.1
915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 arc:Linux:*:* | arceb:Linux:*:*)
918 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
920 arm*:Linux:*:*)
922 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
923 | grep -q __ARM_EABI__
925 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
927 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
928 | grep -q __ARM_PCS_VFP
930 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
932 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
936 avr32*:Linux:*:*)
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939 cris:Linux:*:*)
940 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
942 crisv32:Linux:*:*)
943 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
945 e2k:Linux:*:*)
946 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
948 frv:Linux:*:*)
949 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
951 hexagon:Linux:*:*)
952 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 i*86:Linux:*:*)
955 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
957 ia64:Linux:*:*)
958 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
960 m32r*:Linux:*:*)
961 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
963 m68*:Linux:*:*)
964 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
966 mips:Linux:*:* | mips64:Linux:*:*)
982 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
983 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
985 openrisc*:Linux:*:*)
986 echo or1k-unknown-linux-${LIBC}
988 or32:Linux:*:* | or1k*:Linux:*:*)
989 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
991 padre:Linux:*:*)
992 echo sparc-unknown-linux-${LIBC}
994 parisc64:Linux:*:* | hppa64:Linux:*:*)
995 echo hppa64-unknown-linux-${LIBC}
997 parisc:Linux:*:* | hppa:Linux:*:*)
999 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1000 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1001 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1002 *) echo hppa-unknown-linux-${LIBC} ;;
1005 ppc64:Linux:*:*)
1006 echo powerpc64-unknown-linux-${LIBC}
1008 ppc:Linux:*:*)
1009 echo powerpc-unknown-linux-${LIBC}
1011 ppc64le:Linux:*:*)
1012 echo powerpc64le-unknown-linux-${LIBC}
1014 ppcle:Linux:*:*)
1015 echo powerpcle-unknown-linux-${LIBC}
1017 s390:Linux:*:* | s390x:Linux:*:*)
1018 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1020 sh64*:Linux:*:*)
1021 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1023 sh*:Linux:*:*)
1024 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1026 sparc:Linux:*:* | sparc64:Linux:*:*)
1027 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1029 tile*:Linux:*:*)
1030 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1032 vax:Linux:*:*)
1033 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1035 x86_64:Linux:*:*)
1036 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1038 xtensa*:Linux:*:*)
1039 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1045 echo i386-sequent-sysv4
1051 # I just have to hope. -- rms.
1053 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1058 echo ${UNAME_MACHINE}-pc-os2-emx
1060 i*86:XTS-300:*:STOP)
1061 echo ${UNAME_MACHINE}-unknown-stop
1064 echo ${UNAME_MACHINE}-unknown-atheos
1067 echo ${UNAME_MACHINE}-pc-syllable
1070 echo i386-unknown-lynxos${UNAME_RELEASE}
1073 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1078 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1080 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1085 case `/bin/uname -X | grep "^Machine"` in
1090 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1093 if test -f /usr/options/cb.name; then
1094 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1095 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1096 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1097 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1098 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1099 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1101 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1103 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1105 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1107 echo ${UNAME_MACHINE}-pc-sysv32
1112 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1116 # this is a cross-build.
1117 echo i586-pc-msdosdjgpp
1120 echo i386-pc-mach3
1123 echo i860-intel-osf1
1125 i860:*:4.*:*) # i860-SVR4
1127 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1128 else # Add other i860-SVR4 vendors below as they are discovered.
1129 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1134 echo m68010-convergent-sysv
1137 echo m68k-convergent-sysv
1139 M680?0:D-NIX:5.3:*)
1140 echo m68k-diab-dnix
1143 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1146 test -r /etc/.relid \
1147 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1148 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1149 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1150 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1151 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1153 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1154 && { echo i486-ncr-sysv4; exit; } ;;
1157 test -r /etc/.relid \
1158 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1159 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1160 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1161 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1162 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1163 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1164 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1166 echo m68k-unknown-lynxos${UNAME_RELEASE}
1169 echo m68k-atari-sysv4
1172 echo sparc-unknown-lynxos${UNAME_RELEASE}
1175 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1178 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1181 echo mips-dde-sysv${UNAME_RELEASE}
1183 RM*:ReliantUNIX-*:*:*)
1184 echo mips-sni-sysv4
1186 RM*:SINIX-*:*:*)
1187 echo mips-sni-sysv4
1189 *:SINIX-*:*:*)
1190 if uname -p 2>/dev/null >/dev/null ; then
1191 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1192 echo ${UNAME_MACHINE}-sni-sysv4
1194 echo ns32k-sni-sysv
1199 echo i586-unisys-sysv4
1203 # How about differentiating between stratus architectures? -djm
1204 echo hppa1.1-stratus-sysv4
1208 echo i860-stratus-sysv4
1212 echo ${UNAME_MACHINE}-stratus-vos
1216 echo hppa1.1-stratus-vos
1219 echo m68k-apple-aux${UNAME_RELEASE}
1221 news*:NEWS-OS:6*:*)
1222 echo mips-sony-newsos6
1225 if [ -d /usr/nec ]; then
1226 echo mips-nec-sysv${UNAME_RELEASE}
1228 echo mips-unknown-sysv${UNAME_RELEASE}
1232 echo powerpc-be-beos
1235 echo powerpc-apple-beos
1238 echo i586-pc-beos
1241 echo i586-pc-haiku
1243 x86_64:Haiku:*:*)
1244 echo x86_64-unknown-haiku
1246 SX-4:SUPER-UX:*:*)
1247 echo sx4-nec-superux${UNAME_RELEASE}
1249 SX-5:SUPER-UX:*:*)
1250 echo sx5-nec-superux${UNAME_RELEASE}
1252 SX-6:SUPER-UX:*:*)
1253 echo sx6-nec-superux${UNAME_RELEASE}
1255 SX-7:SUPER-UX:*:*)
1256 echo sx7-nec-superux${UNAME_RELEASE}
1258 SX-8:SUPER-UX:*:*)
1259 echo sx8-nec-superux${UNAME_RELEASE}
1261 SX-8R:SUPER-UX:*:*)
1262 echo sx8r-nec-superux${UNAME_RELEASE}
1265 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1268 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1271 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1276 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1279 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1283 i386) UNAME_PROCESSOR=x86_64 ;;
1292 # later (Darwin 11 and later) is required to have a 64-bit
1295 UNAME_PROCESSOR=x86_64
1297 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1300 UNAME_PROCESSOR=`uname -p`
1305 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1308 echo i386-pc-qnx
1310 NEO-?:NONSTOP_KERNEL:*:*)
1311 echo neo-tandem-nsk${UNAME_RELEASE}
1313 NSE-*:NONSTOP_KERNEL:*:*)
1314 echo nse-tandem-nsk${UNAME_RELEASE}
1316 NSR-?:NONSTOP_KERNEL:*:*)
1317 echo nsr-tandem-nsk${UNAME_RELEASE}
1319 *:NonStop-UX:*:*)
1320 echo mips-compaq-nonstopux
1323 echo bs2000-siemens-sysv
1326 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1329 # "uname -m" is not consistent, so use $cputype instead. 386
1337 echo ${UNAME_MACHINE}-unknown-plan9
1339 *:TOPS-10:*:*)
1340 echo pdp10-unknown-tops10
1343 echo pdp10-unknown-tenex
1345 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1346 echo pdp10-dec-tops20
1348 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1349 echo pdp10-xkl-tops20
1351 *:TOPS-20:*:*)
1352 echo pdp10-unknown-tops20
1355 echo pdp10-unknown-its
1358 echo mips-sei-seiux${UNAME_RELEASE}
1361 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1364 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1366 A*) echo alpha-dec-vms ; exit ;;
1367 I*) echo ia64-dec-vms ; exit ;;
1368 V*) echo vax-dec-vms ; exit ;;
1371 echo i386-pc-xenix
1374 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1377 echo ${UNAME_MACHINE}-pc-rdos
1380 echo ${UNAME_MACHINE}-pc-aros
1382 x86_64:VMkernel:*:*)
1383 echo ${UNAME_MACHINE}-unknown-esx
1394 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1396 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1400 pertinent to <config-patches@gnu.org> in order to provide the needed
1405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1429 # eval: (add-hook 'write-file-hooks 'time-stamp)
1430 # time-stamp-start: "timestamp='"
1431 # time-stamp-format: "%:y-%02m-%02d"
1432 # time-stamp-end: "'"