Lines Matching +full:i586 +full:- +full:pc +full:- +full:msdosdjgpp +full:- +full:gcc
3 # Copyright 1992-2017 Free Software Foundation, Inc.
5 timestamp='2017-05-11'
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>."
53 Copyright 1992-2017 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
142 cat <<-EOF > $dummy.c
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 ;;
196 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
197 | grep -q __ELF__
213 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
214 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
221 # suitable tag, in the style of linux-gnu.
224 release='-gnu'
227 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
230 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
232 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
233 echo "${machine}-${os}${release}${abi}"
237 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
241 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
245 echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
248 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
251 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
254 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
257 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
260 echo ${UNAME_MACHINE}-unknown-sortix
265 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
268 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
274 # types through head -n 1, so we only detect the type of CPU 0.
275 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head …
287 "EV5.6 (21164PC)")
289 "EV5.7 (21164PC)")
312 # 1.2 uses "1.2" for uname -r.
313 …echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQR…
314 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
322 echo alpha-pc-interix
325 echo alpha-dec-winnt3.5
328 echo m68k-unknown-sysv4
331 echo ${UNAME_MACHINE}-unknown-amigaos
334 echo ${UNAME_MACHINE}-unknown-morphos
337 echo i370-ibm-openedition
340 echo s390-ibm-zvmoe
343 echo powerpc-ibm-os400
346 echo arm-acorn-riscix${UNAME_RELEASE}
349 echo arm-unknown-riscos
351 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
352 echo hppa1.1-hitachi-hiuxmpp
354 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
357 echo pyramid-pyramid-sysv3
359 echo pyramid-pyramid-bsd
363 echo pyramid-pyramid-svr4
366 echo sparc-icl-nx6
369 case `/usr/bin/uname -p` in
370 sparc) echo sparc-icl-nx7; exit ;;
373 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
376 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo i386-pc-auroraux${UNAME_RELEASE}
387 # If there is a compiler, see if it is configured for 64-bit objects.
388 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
392 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
398 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
407 case "`/usr/bin/arch -k`" in
409 UNAME_RELEASE=`uname -v`
412 # Japanese Language versions have a version number like `4.1.3-JL'.
413 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
416 echo m68k-sun-sunos${UNAME_RELEASE}
423 echo m68k-sun-sunos${UNAME_RELEASE}
426 echo sparc-sun-sunos${UNAME_RELEASE}
431 echo sparc-auspex-sunos${UNAME_RELEASE}
442 echo m68k-atari-mint${UNAME_RELEASE}
445 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-milan-mint${UNAME_RELEASE}
454 echo m68k-hades-mint${UNAME_RELEASE}
457 echo m68k-unknown-mint${UNAME_RELEASE}
460 echo m68k-apple-machten${UNAME_RELEASE}
463 echo powerpc-apple-machten${UNAME_RELEASE}
466 echo mips-dec-mach_bsd4.3
469 echo mips-dec-ultrix${UNAME_RELEASE}
472 echo vax-dec-ultrix${UNAME_RELEASE}
475 echo clipper-intergraph-clix${UNAME_RELEASE}
488 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
491 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
497 exit (-1);
500 $CC_FOR_BUILD -o $dummy $dummy.c &&
501 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
504 echo mips-mips-riscos${UNAME_RELEASE}
507 echo powerpc-motorola-powermax
509 Motorola:*:4.3:PL8-*)
510 echo powerpc-harris-powermax
513 echo powerpc-harris-powermax
516 echo powerpc-harris-powerunix
519 echo m88k-harris-cxux7
522 echo m88k-motorola-sysv4
525 echo m88k-motorola-sysv3
529 UNAME_PROCESSOR=`/usr/bin/uname -p`
535 echo m88k-dg-dgux${UNAME_RELEASE}
537 echo m88k-dg-dguxbcs${UNAME_RELEASE}
540 echo i586-dg-dgux${UNAME_RELEASE}
544 echo m88k-dolphin-sysv3
548 echo m88k-motorola-sysv3
551 echo m88k-tektronix-sysv3
553 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
554 echo m68k-tektronix-bsd
557 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
559 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
560 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
561 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
563 echo i386-ibm-aix
566 if [ -x /usr/bin/oslevel ] ; then
571 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
583 puts("powerpc-ibm-aix3.2.5");
587 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
591 echo rs6000-ibm-aix3.2.5
594 echo rs6000-ibm-aix3.2.4
596 echo rs6000-ibm-aix3.2
600 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
601 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
606 if [ -x /usr/bin/lslpp ] ; then
607 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
608 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
612 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
615 echo rs6000-ibm-aix
617 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
618 echo romp-ibm-bsd4.4
620 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
621 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
622 exit ;; # report: romp-ibm BSD 4.3
624 echo rs6000-bull-bosx
627 echo m68k-bull-sysv3
630 echo m68k-hp-bsd
633 echo m68k-hp-bsd4.4
635 9000/[34678]??:HP-UX:*:*)
636 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
640 9000/[678][0-9][0-9])
641 if [ -x /usr/bin/getconf ]; then
651 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
690 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
691 test -z "$HP_ARCH" && HP_ARCH=hppa
698 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
699 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
700 # generating 64-bit code. GNU and HP use different nomenclature:
703 # => hppa2.0w-hp-hpux11.23
705 # => hppa64-hp-hpux11.23
707 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
708 grep -q __LP64__
715 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
717 ia64:HP-UX:*:*)
718 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
719 echo ia64-hp-hpux${HPUX_REV}
721 3050*:HI-UX:*:*)
736 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
737 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
738 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
739 default: puts ("hppa-hitachi-hiuxwe2"); break;
743 puts ("m68k-hitachi-hiuxwe2");
744 else puts ("unknown-hitachi-hiuxwe2");
748 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
750 echo unknown-hitachi-hiuxwe2
753 echo hppa1.1-hp-bsd
756 echo hppa1.0-hp-bsd
759 echo hppa1.0-hp-mpeix
762 echo hppa1.1-hp-osf
765 echo hppa1.0-hp-osf
768 if [ -x /usr/sbin/sysversion ] ; then
769 echo ${UNAME_MACHINE}-unknown-osf1mk
771 echo ${UNAME_MACHINE}-unknown-osf1
775 echo hppa1.1-hp-lites
778 echo c1-convex-bsd
781 if getsysinfo -f scalar_acc
782 then echo c32-convex-bsd
783 else echo c2-convex-bsd
787 echo c34-convex-bsd
790 echo c38-convex-bsd
793 echo c4-convex-bsd
795 CRAY*Y-MP:*:*:*)
796 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
798 CRAY*[A-Z]90:*:*:*)
799 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
800 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
801 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
802 -e 's/\.[^.]*$/.X/'
805 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
808 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
818 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
819 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
820 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
823 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
824 …echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
825 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
828 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
831 echo sparc-unknown-bsdi${UNAME_RELEASE}
834 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
837 UNAME_PROCESSOR=`/usr/bin/uname -p`
842 UNAME_PROCESSOR=i586 ;;
844 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
847 echo ${UNAME_MACHINE}-pc-cygwin
850 echo ${UNAME_MACHINE}-pc-mingw64
853 echo ${UNAME_MACHINE}-pc-mingw32
856 echo ${UNAME_MACHINE}-pc-msys
859 # uname -m includes "-pc" on this system.
860 echo ${UNAME_MACHINE}-mingw32
863 echo ${UNAME_MACHINE}-pc-pw32
868 echo i586-pc-interix${UNAME_RELEASE}
871 echo x86_64-unknown-interix${UNAME_RELEASE}
874 echo ia64-unknown-interix${UNAME_RELEASE}
878 echo i${UNAME_MACHINE}-pc-mks
881 echo x86_64-pc-mks
885 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
887 echo i586-pc-interix
890 echo ${UNAME_MACHINE}-pc-uwin
893 echo x86_64-unknown-cygwin
896 echo powerpcle-unknown-cygwin
899 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
903 …echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,…
907 …UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``ech…
910 echo ${UNAME_MACHINE}-pc-minix
913 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
929 objdump --private-headers /bin/sh | grep -q ld.so.1
931 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
934 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
938 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
939 | grep -q __ARM_EABI__
941 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
943 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
944 | grep -q __ARM_PCS_VFP
946 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
956 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
959 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
962 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
971 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
974 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
980 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
983 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1001 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1002 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
1005 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1008 echo or1k-unknown-linux-${LIBC}
1011 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1014 echo sparc-unknown-linux-${LIBC}
1017 echo hppa64-unknown-linux-${LIBC}
1021 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1022 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1023 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1024 *) echo hppa-unknown-linux-${LIBC} ;;
1028 echo powerpc64-unknown-linux-${LIBC}
1031 echo powerpc-unknown-linux-${LIBC}
1034 echo powerpc64le-unknown-linux-${LIBC}
1037 echo powerpcle-unknown-linux-${LIBC}
1040 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1043 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1049 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1052 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1055 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1058 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1061 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1064 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1067 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1070 echo i386-sequent-sysv4
1076 # I just have to hope. -- rms.
1078 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1083 echo ${UNAME_MACHINE}-pc-os2-emx
1085 i*86:XTS-300:*:STOP)
1086 echo ${UNAME_MACHINE}-unknown-stop
1089 echo ${UNAME_MACHINE}-unknown-atheos
1092 echo ${UNAME_MACHINE}-pc-syllable
1095 echo i386-unknown-lynxos${UNAME_RELEASE}
1098 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1103 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1105 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1110 case `/bin/uname -X | grep "^Machine"` in
1112 *Pentium) UNAME_MACHINE=i586 ;;
1115 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1118 if test -f /usr/options/cb.name; then
1119 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1120 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1121 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1122 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1123 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1124 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1125 && UNAME_MACHINE=i586
1126 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1128 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1130 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1132 echo ${UNAME_MACHINE}-pc-sysv32
1135 pc:*:*:*)
1137 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1138 # the processor, so we play safe by assuming i586.
1141 # this is a cross-build.
1142 echo i586-pc-msdosdjgpp
1145 echo i386-pc-mach3
1148 echo i860-intel-osf1
1150 i860:*:4.*:*) # i860-SVR4
1152 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1153 else # Add other i860-SVR4 vendors below as they are discovered.
1154 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1159 echo m68010-convergent-sysv
1162 echo m68k-convergent-sysv
1164 M680?0:D-NIX:5.3:*)
1165 echo m68k-diab-dnix
1168 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1171 test -r /etc/.relid \
1172 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1173 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1174 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1175 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1176 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1178 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1179 && { echo i486-ncr-sysv4; exit; } ;;
1182 test -r /etc/.relid \
1183 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1184 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1185 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1186 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1187 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1188 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1189 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1191 echo m68k-unknown-lynxos${UNAME_RELEASE}
1194 echo m68k-atari-sysv4
1197 echo sparc-unknown-lynxos${UNAME_RELEASE}
1200 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1203 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1206 echo mips-dde-sysv${UNAME_RELEASE}
1208 RM*:ReliantUNIX-*:*:*)
1209 echo mips-sni-sysv4
1211 RM*:SINIX-*:*:*)
1212 echo mips-sni-sysv4
1214 *:SINIX-*:*:*)
1215 if uname -p 2>/dev/null >/dev/null ; then
1216 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1217 echo ${UNAME_MACHINE}-sni-sysv4
1219 echo ns32k-sni-sysv
1224 echo i586-unisys-sysv4
1228 # How about differentiating between stratus architectures? -djm
1229 echo hppa1.1-stratus-sysv4
1233 echo i860-stratus-sysv4
1237 echo ${UNAME_MACHINE}-stratus-vos
1241 echo hppa1.1-stratus-vos
1244 echo m68k-apple-aux${UNAME_RELEASE}
1246 news*:NEWS-OS:6*:*)
1247 echo mips-sony-newsos6
1250 if [ -d /usr/nec ]; then
1251 echo mips-nec-sysv${UNAME_RELEASE}
1253 echo mips-unknown-sysv${UNAME_RELEASE}
1257 echo powerpc-be-beos
1260 echo powerpc-apple-beos
1262 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1263 echo i586-pc-beos
1265 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1266 echo i586-pc-haiku
1269 echo x86_64-unknown-haiku
1271 SX-4:SUPER-UX:*:*)
1272 echo sx4-nec-superux${UNAME_RELEASE}
1274 SX-5:SUPER-UX:*:*)
1275 echo sx5-nec-superux${UNAME_RELEASE}
1277 SX-6:SUPER-UX:*:*)
1278 echo sx6-nec-superux${UNAME_RELEASE}
1280 SX-7:SUPER-UX:*:*)
1281 echo sx7-nec-superux${UNAME_RELEASE}
1283 SX-8:SUPER-UX:*:*)
1284 echo sx8-nec-superux${UNAME_RELEASE}
1286 SX-8R:SUPER-UX:*:*)
1287 echo sx8r-nec-superux${UNAME_RELEASE}
1289 SX-ACE:SUPER-UX:*:*)
1290 echo sxace-nec-superux${UNAME_RELEASE}
1293 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1296 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1299 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1304 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1307 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1320 # later (Darwin 11 and later) is required to have a 64-bit
1325 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1328 UNAME_PROCESSOR=`uname -p`
1331 UNAME_MACHINE=pc
1333 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1336 echo i386-pc-qnx
1338 NEO-*:NONSTOP_KERNEL:*:*)
1339 echo neo-tandem-nsk${UNAME_RELEASE}
1341 NSE-*:NONSTOP_KERNEL:*:*)
1342 echo nse-tandem-nsk${UNAME_RELEASE}
1344 NSR-*:NONSTOP_KERNEL:*:*)
1345 echo nsr-tandem-nsk${UNAME_RELEASE}
1347 NSX-*:NONSTOP_KERNEL:*:*)
1348 echo nsx-tandem-nsk${UNAME_RELEASE}
1350 *:NonStop-UX:*:*)
1351 echo mips-compaq-nonstopux
1354 echo bs2000-siemens-sysv
1357 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1360 # "uname -m" is not consistent, so use $cputype instead. 386
1368 echo ${UNAME_MACHINE}-unknown-plan9
1370 *:TOPS-10:*:*)
1371 echo pdp10-unknown-tops10
1374 echo pdp10-unknown-tenex
1376 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1377 echo pdp10-dec-tops20
1379 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1380 echo pdp10-xkl-tops20
1382 *:TOPS-20:*:*)
1383 echo pdp10-unknown-tops20
1386 echo pdp10-unknown-its
1389 echo mips-sei-seiux${UNAME_RELEASE}
1392 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1395 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1397 A*) echo alpha-dec-vms ; exit ;;
1398 I*) echo ia64-dec-vms ; exit ;;
1399 V*) echo vax-dec-vms ; exit ;;
1402 echo i386-pc-xenix
1405 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
1408 echo ${UNAME_MACHINE}-pc-rdos
1411 echo ${UNAME_MACHINE}-pc-aros
1414 echo ${UNAME_MACHINE}-unknown-esx
1417 echo x86_64-unknown-onefs
1433 information you think might be pertinent to config-patches@gnu.org to
1438 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1439 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1440 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1441 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1444 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1448 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1462 # eval: (add-hook 'write-file-hooks 'time-stamp)
1463 # time-stamp-start: "timestamp='"
1464 # time-stamp-format: "%:y-%02m-%02d"
1465 # time-stamp-end: "'"