• Home
  • Raw
  • Download

Lines Matching +full:gcc +full:- +full:mips +full:- +full:linux +full:- +full:gnu

3 #   Copyright 1992-2018 Free Software Foundation, Inc.
5 timestamp='2018-02-24'
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 <https://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 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
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-2018 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…
111 for c in cc gcc c89 c99 ; do
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'`"
155 if command -v ldd >/dev/null && \
156 ldd --version 2>&1 | grep -q ^musl
163 # Note: order is significant - the case branches are not exclusive.
168 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
169 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
170 # switched to ELF, *-*-netbsd* would select the old
177 sysctl="sysctl -n hw.machine_arch"
178 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
183 armeb) machine=armeb-unknown ;;
184 arm*) machine=arm-unknown ;;
185 sh3el) machine=shl-unknown ;;
186 sh3eb) machine=sh-unknown ;;
187 sh5el) machine=sh5le-unknown ;;
189 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
190 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
191 machine="${arch}${endian}"-unknown
193 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
204 | grep -q __ELF__
220 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
221 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
225 # Debian GNU/NetBSD machines have a different userland, and
228 # suitable tag, in the style of linux-gnu.
231 release='-gnu'
234 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
237 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
240 echo "$machine-${os}${release}${abi}"
244 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
248 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
252 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
255 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
270 echo "$UNAME_MACHINE"-unknown-sortix
273 echo "$UNAME_MACHINE"-unknown-redox
275 mips:OSF1:*.*)
276 echo mips-dec-osf1
281 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
284 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
290 # types through head -n 1, so we only detect the type of CPU 0.
291 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head
328 # 1.2 uses "1.2" for uname -r.
329 …echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQ…
330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
335 echo m68k-unknown-sysv4
338 echo "$UNAME_MACHINE"-unknown-amigaos
341 echo "$UNAME_MACHINE"-unknown-morphos
344 echo i370-ibm-openedition
347 echo s390-ibm-zvmoe
350 echo powerpc-ibm-os400
353 echo arm-acorn-riscix"$UNAME_RELEASE"
356 echo arm-unknown-riscos
358 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
359 echo hppa1.1-hitachi-hiuxmpp
361 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
364 echo pyramid-pyramid-sysv3
366 echo pyramid-pyramid-bsd
370 echo pyramid-pyramid-svr4
373 echo sparc-icl-nx6
376 case `/usr/bin/uname -p` in
377 sparc) echo sparc-icl-nx7; exit ;;
380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
389 echo i386-pc-auroraux"$UNAME_RELEASE"
394 # If there is a compiler, see if it is configured for 64-bit objects.
395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
399 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
414 case "`/usr/bin/arch -k`" in
416 UNAME_RELEASE=`uname -v`
419 # Japanese Language versions have a version number like `4.1.3-JL'.
420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
423 echo m68k-sun-sunos"$UNAME_RELEASE"
430 echo m68k-sun-sunos"$UNAME_RELEASE"
433 echo sparc-sun-sunos"$UNAME_RELEASE"
438 echo sparc-auspex-sunos"$UNAME_RELEASE"
449 echo m68k-atari-mint"$UNAME_RELEASE"
452 echo m68k-atari-mint"$UNAME_RELEASE"
455 echo m68k-atari-mint"$UNAME_RELEASE"
458 echo m68k-milan-mint"$UNAME_RELEASE"
461 echo m68k-hades-mint"$UNAME_RELEASE"
464 echo m68k-unknown-mint"$UNAME_RELEASE"
467 echo m68k-apple-machten"$UNAME_RELEASE"
470 echo powerpc-apple-machten"$UNAME_RELEASE"
473 echo mips-dec-mach_bsd4.3
476 echo mips-dec-ultrix"$UNAME_RELEASE"
479 echo vax-dec-ultrix"$UNAME_RELEASE"
482 echo clipper-intergraph-clix"$UNAME_RELEASE"
484 mips:*:*:UMIPS | mips:*:*:RISCos)
495 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
498 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
501 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
504 exit (-1);
507 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
508 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
511 echo mips-mips-riscos"$UNAME_RELEASE"
514 echo powerpc-motorola-powermax
516 Motorola:*:4.3:PL8-*)
517 echo powerpc-harris-powermax
520 echo powerpc-harris-powermax
523 echo powerpc-harris-powerunix
526 echo m88k-harris-cxux7
529 echo m88k-motorola-sysv4
532 echo m88k-motorola-sysv3
536 UNAME_PROCESSOR=`/usr/bin/uname -p`
542 echo m88k-dg-dgux"$UNAME_RELEASE"
544 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
547 echo i586-dg-dgux"$UNAME_RELEASE"
551 echo m88k-dolphin-sysv3
555 echo m88k-motorola-sysv3
558 echo m88k-tektronix-sysv3
560 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
561 echo m68k-tektronix-bsd
564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
567 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
568 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
570 echo i386-ibm-aix
573 if [ -x /usr/bin/oslevel ] ; then
578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
590 puts("powerpc-ibm-aix3.2.5");
594 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
598 echo rs6000-ibm-aix3.2.5
601 echo rs6000-ibm-aix3.2.4
603 echo rs6000-ibm-aix3.2
607 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
608 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
613 if [ -x /usr/bin/lslpp ] ; then
614 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
615 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
622 echo rs6000-ibm-aix
624 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
625 echo romp-ibm-bsd4.4
627 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
628 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
629 exit ;; # report: romp-ibm BSD 4.3
631 echo rs6000-bull-bosx
634 echo m68k-bull-sysv3
637 echo m68k-hp-bsd
640 echo m68k-hp-bsd4.4
642 9000/[34678]??:HP-UX:*:*)
643 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
647 9000/[678][0-9][0-9])
648 if [ -x /usr/bin/getconf ]; then
658 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
697 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
698 test -z "$HP_ARCH" && HP_ARCH=hppa
705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
707 # generating 64-bit code. GNU and HP use different nomenclature:
710 # => hppa2.0w-hp-hpux11.23
712 # => hppa64-hp-hpux11.23
714 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
715 grep -q __LP64__
722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
724 ia64:HP-UX:*:*)
725 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
726 echo ia64-hp-hpux"$HPUX_REV"
728 3050*:HI-UX:*:*)
743 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
744 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
745 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
746 default: puts ("hppa-hitachi-hiuxwe2"); break;
750 puts ("m68k-hitachi-hiuxwe2");
751 else puts ("unknown-hitachi-hiuxwe2");
755 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
757 echo unknown-hitachi-hiuxwe2
760 echo hppa1.1-hp-bsd
763 echo hppa1.0-hp-bsd
766 echo hppa1.0-hp-mpeix
769 echo hppa1.1-hp-osf
772 echo hppa1.0-hp-osf
775 if [ -x /usr/sbin/sysversion ] ; then
776 echo "$UNAME_MACHINE"-unknown-osf1mk
778 echo "$UNAME_MACHINE"-unknown-osf1
782 echo hppa1.1-hp-lites
785 echo c1-convex-bsd
788 if getsysinfo -f scalar_acc
789 then echo c32-convex-bsd
790 else echo c2-convex-bsd
794 echo c34-convex-bsd
797 echo c38-convex-bsd
800 echo c4-convex-bsd
802 CRAY*Y-MP:*:*:*)
803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
805 CRAY*[A-Z]90:*:*:*)
806 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
807 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
808 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
809 -e 's/\.[^.]*$/.X/'
812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
824 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
825 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
826 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
830 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
831 …echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
838 echo sparc-unknown-bsdi"$UNAME_RELEASE"
841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
844 UNAME_PROCESSOR=`/usr/bin/uname -p`
851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
854 echo "$UNAME_MACHINE"-pc-cygwin
857 echo "$UNAME_MACHINE"-pc-mingw64
860 echo "$UNAME_MACHINE"-pc-mingw32
863 echo "$UNAME_MACHINE"-pc-msys
866 echo "$UNAME_MACHINE"-pc-pw32
871 echo i586-pc-interix"$UNAME_RELEASE"
874 echo x86_64-unknown-interix"$UNAME_RELEASE"
877 echo ia64-unknown-interix"$UNAME_RELEASE"
881 echo "$UNAME_MACHINE"-pc-uwin
884 echo x86_64-unknown-cygwin
887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
889 *:GNU:*:*)
890 # the GNU system
891 …echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/…
893 *:GNU/*:*:*)
894 # other systems with GNU libc and userland
895 …$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``ech…
898 echo "$UNAME_MACHINE"-pc-minix
900 aarch64:Linux:*:*)
901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
903 aarch64_be:Linux:*:*)
905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
907 alpha:Linux:*:*)
908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
917 objdump --private-headers /bin/sh | grep -q ld.so.1
919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921 arc:Linux:*:* | arceb:Linux:*:*)
922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
924 arm*:Linux:*:*)
926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
927 | grep -q __ARM_EABI__
929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
931 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
932 | grep -q __ARM_PCS_VFP
934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
940 avr32*:Linux:*:*)
941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
943 cris:Linux:*:*)
944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
946 crisv32:Linux:*:*)
947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
949 e2k:Linux:*:*)
950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
952 frv:Linux:*:*)
953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
955 hexagon:Linux:*:*)
956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
958 i*86:Linux:*:*)
959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
961 ia64:Linux:*:*)
962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
964 k1om:Linux:*:*)
965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
967 m32r*:Linux:*:*)
968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
970 m68*:Linux:*:*)
971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
973 mips:Linux:*:* | mips64:Linux:*:*)
989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
992 mips64el:Linux:*:*)
993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
995 openrisc*:Linux:*:*)
996 echo or1k-unknown-linux-"$LIBC"
998 or32:Linux:*:* | or1k*:Linux:*:*)
999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1001 padre:Linux:*:*)
1002 echo sparc-unknown-linux-"$LIBC"
1004 parisc64:Linux:*:* | hppa64:Linux:*:*)
1005 echo hppa64-unknown-linux-"$LIBC"
1007 parisc:Linux:*:* | hppa:Linux:*:*)
1009 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1012 *) echo hppa-unknown-linux-"$LIBC" ;;
1015 ppc64:Linux:*:*)
1016 echo powerpc64-unknown-linux-"$LIBC"
1018 ppc:Linux:*:*)
1019 echo powerpc-unknown-linux-"$LIBC"
1021 ppc64le:Linux:*:*)
1022 echo powerpc64le-unknown-linux-"$LIBC"
1024 ppcle:Linux:*:*)
1025 echo powerpcle-unknown-linux-"$LIBC"
1027 riscv32:Linux:*:* | riscv64:Linux:*:*)
1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1030 s390:Linux:*:* | s390x:Linux:*:*)
1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1033 sh64*:Linux:*:*)
1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1036 sh*:Linux:*:*)
1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1039 sparc:Linux:*:* | sparc64:Linux:*:*)
1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1042 tile*:Linux:*:*)
1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1045 vax:Linux:*:*)
1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1048 x86_64:Linux:*:*)
1049 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1050 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1052 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1055 xtensa*:Linux:*:*)
1056 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1059 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1062 echo i386-sequent-sysv4
1068 # I just have to hope. -- rms.
1070 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1075 echo "$UNAME_MACHINE"-pc-os2-emx
1077 i*86:XTS-300:*:STOP)
1078 echo "$UNAME_MACHINE"-unknown-stop
1081 echo "$UNAME_MACHINE"-unknown-atheos
1084 echo "$UNAME_MACHINE"-pc-syllable
1087 echo i386-unknown-lynxos"$UNAME_RELEASE"
1090 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1095 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1097 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1102 case `/bin/uname -X | grep "^Machine"` in
1107 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1110 if test -f /usr/options/cb.name; then
1111 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1112 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1113 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1114 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1115 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1116 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1118 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1120 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1122 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1124 echo "$UNAME_MACHINE"-pc-sysv32
1129 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1133 # this is a cross-build.
1134 echo i586-pc-msdosdjgpp
1137 echo i386-pc-mach3
1140 echo i860-intel-osf1
1142 i860:*:4.*:*) # i860-SVR4
1144 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1145 else # Add other i860-SVR4 vendors below as they are discovered.
1146 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1151 echo m68010-convergent-sysv
1154 echo m68k-convergent-sysv
1156 M680?0:D-NIX:5.3:*)
1157 echo m68k-diab-dnix
1160 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1163 test -r /etc/.relid \
1164 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1165 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1166 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1167 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1168 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1170 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1171 && { echo i486-ncr-sysv4; exit; } ;;
1174 test -r /etc/.relid \
1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1177 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1179 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1180 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1181 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1183 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1186 echo m68k-atari-sysv4
1189 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1192 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1195 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1198 echo mips-dde-sysv"$UNAME_RELEASE"
1200 RM*:ReliantUNIX-*:*:*)
1201 echo mips-sni-sysv4
1203 RM*:SINIX-*:*:*)
1204 echo mips-sni-sysv4
1206 *:SINIX-*:*:*)
1207 if uname -p 2>/dev/null >/dev/null ; then
1208 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1209 echo "$UNAME_MACHINE"-sni-sysv4
1211 echo ns32k-sni-sysv
1216 echo i586-unisys-sysv4
1220 # How about differentiating between stratus architectures? -djm
1221 echo hppa1.1-stratus-sysv4
1225 echo i860-stratus-sysv4
1229 echo "$UNAME_MACHINE"-stratus-vos
1233 echo hppa1.1-stratus-vos
1236 echo m68k-apple-aux"$UNAME_RELEASE"
1238 news*:NEWS-OS:6*:*)
1239 echo mips-sony-newsos6
1242 if [ -d /usr/nec ]; then
1243 echo mips-nec-sysv"$UNAME_RELEASE"
1245 echo mips-unknown-sysv"$UNAME_RELEASE"
1249 echo powerpc-be-beos
1252 echo powerpc-apple-beos
1255 echo i586-pc-beos
1258 echo i586-pc-haiku
1261 echo x86_64-unknown-haiku
1263 SX-4:SUPER-UX:*:*)
1264 echo sx4-nec-superux"$UNAME_RELEASE"
1266 SX-5:SUPER-UX:*:*)
1267 echo sx5-nec-superux"$UNAME_RELEASE"
1269 SX-6:SUPER-UX:*:*)
1270 echo sx6-nec-superux"$UNAME_RELEASE"
1272 SX-7:SUPER-UX:*:*)
1273 echo sx7-nec-superux"$UNAME_RELEASE"
1275 SX-8:SUPER-UX:*:*)
1276 echo sx8-nec-superux"$UNAME_RELEASE"
1278 SX-8R:SUPER-UX:*:*)
1279 echo sx8r-nec-superux"$UNAME_RELEASE"
1281 SX-ACE:SUPER-UX:*:*)
1282 echo sxace-nec-superux"$UNAME_RELEASE"
1285 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1288 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1291 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1296 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1299 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1307 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1309 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1319 # later (Darwin 11 and later) is required to have a 64-bit
1324 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1327 UNAME_PROCESSOR=`uname -p`
1332 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1335 echo i386-pc-qnx
1337 NEO-*:NONSTOP_KERNEL:*:*)
1338 echo neo-tandem-nsk"$UNAME_RELEASE"
1340 NSE-*:NONSTOP_KERNEL:*:*)
1341 echo nse-tandem-nsk"$UNAME_RELEASE"
1343 NSR-*:NONSTOP_KERNEL:*:*)
1344 echo nsr-tandem-nsk"$UNAME_RELEASE"
1346 NSV-*:NONSTOP_KERNEL:*:*)
1347 echo nsv-tandem-nsk"$UNAME_RELEASE"
1349 NSX-*:NONSTOP_KERNEL:*:*)
1350 echo nsx-tandem-nsk"$UNAME_RELEASE"
1352 *:NonStop-UX:*:*)
1353 echo mips-compaq-nonstopux
1356 echo bs2000-siemens-sysv
1359 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1362 # "uname -m" is not consistent, so use $cputype instead. 386
1370 echo "$UNAME_MACHINE"-unknown-plan9
1372 *:TOPS-10:*:*)
1373 echo pdp10-unknown-tops10
1376 echo pdp10-unknown-tenex
1378 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1379 echo pdp10-dec-tops20
1381 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1382 echo pdp10-xkl-tops20
1384 *:TOPS-20:*:*)
1385 echo pdp10-unknown-tops20
1388 echo pdp10-unknown-its
1391 echo mips-sei-seiux"$UNAME_RELEASE"
1394 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1397 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1399 A*) echo alpha-dec-vms ; exit ;;
1400 I*) echo ia64-dec-vms ; exit ;;
1401 V*) echo vax-dec-vms ; exit ;;
1404 echo i386-pc-xenix
1407 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1410 echo "$UNAME_MACHINE"-pc-rdos
1413 echo "$UNAME_MACHINE"-pc-aros
1416 echo "$UNAME_MACHINE"-unknown-esx
1419 echo x86_64-unknown-onefs
1426 mips:Linux | mips64:Linux)
1427 # If we got here on MIPS GNU/Linux, output extra information.
1430 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1442 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1444 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1447 information you think might be pertinent to config-patches@gnu.org to
1452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1476 # eval: (add-hook 'write-file-functions 'time-stamp)
1477 # time-stamp-start: "timestamp='"
1478 # time-stamp-format: "%:y-%02m-%02d"
1479 # time-stamp-end: "'"