• Home
  • Raw
  • Download

Lines Matching +full:i586 +full:- +full:pc +full:- +full:msdosdjgpp +full:- +full:gcc

7 timestamp='2009-11-20'
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 # 02110-1301, USA.
31 # diff format) to <config-patches@gnu.org> and include a ChangeLog
41 me=`echo "$0" | sed -e 's,.*/,,'`
49 -h, --help print this help, then exit
50 -t, --time-stamp print date of last modification, then exit
51 -v, --version print version number, then exit
53 Report bugs and patches to <config-patches@gnu.org>."
66 Try \`$me --help' for more information."
69 while test $# -gt 0 ; do
71 --time-stamp | --time* | -t )
73 --version | -v )
75 --help | --h* | -h )
77 -- ) # Stop option processing
79 - ) # Use stdin as input.
81 -* )
96 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
110 …{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp…
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 …{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp director…
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142 # Note: order is significant - the case branches are not exclusive.
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
156 sysctl="sysctl -n hw.machine_arch"
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep -q __ELF__
190 # suitable tag, in the style of linux-gnu.
193 release='-gnu'
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
232 # types through head -n 1, so we only detect the type of CPU 0.
233 …ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head
245 "EV5.6 (21164PC)")
247 "EV5.7 (21164PC)")
270 # 1.2 uses "1.2" for uname -r.
271 …echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQ…
277 echo alpha-pc-interix
280 echo alpha-dec-winnt3.5
283 echo m68k-unknown-sysv4
286 echo ${UNAME_MACHINE}-unknown-amigaos
289 echo ${UNAME_MACHINE}-unknown-morphos
292 echo i370-ibm-openedition
295 echo s390-ibm-zvmoe
298 echo powerpc-ibm-os400
301 echo arm-acorn-riscix${UNAME_RELEASE}
304 echo arm-unknown-riscos
306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307 echo hppa1.1-hitachi-hiuxmpp
309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
312 echo pyramid-pyramid-sysv3
314 echo pyramid-pyramid-bsd
318 echo pyramid-pyramid-svr4
321 echo sparc-icl-nx6
324 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;;
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
337 echo i386-pc-auroraux${UNAME_RELEASE}
342 # If there is a compiler, see if it is configured for 64-bit objects.
343 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
347 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
353 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
362 case "`/usr/bin/arch -k`" in
364 UNAME_RELEASE=`uname -v`
367 # Japanese Language versions have a version number like `4.1.3-JL'.
368 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
371 echo m68k-sun-sunos${UNAME_RELEASE}
378 echo m68k-sun-sunos${UNAME_RELEASE}
381 echo sparc-sun-sunos${UNAME_RELEASE}
386 echo sparc-auspex-sunos${UNAME_RELEASE}
397 echo m68k-atari-mint${UNAME_RELEASE}
400 echo m68k-atari-mint${UNAME_RELEASE}
403 echo m68k-atari-mint${UNAME_RELEASE}
406 echo m68k-milan-mint${UNAME_RELEASE}
409 echo m68k-hades-mint${UNAME_RELEASE}
412 echo m68k-unknown-mint${UNAME_RELEASE}
415 echo m68k-apple-machten${UNAME_RELEASE}
418 echo powerpc-apple-machten${UNAME_RELEASE}
421 echo mips-dec-mach_bsd4.3
424 echo mips-dec-ultrix${UNAME_RELEASE}
427 echo vax-dec-ultrix${UNAME_RELEASE}
430 echo clipper-intergraph-clix${UNAME_RELEASE}
443 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
446 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
449 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
452 exit (-1);
455 $CC_FOR_BUILD -o $dummy $dummy.c &&
456 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
459 echo mips-mips-riscos${UNAME_RELEASE}
462 echo powerpc-motorola-powermax
464 Motorola:*:4.3:PL8-*)
465 echo powerpc-harris-powermax
468 echo powerpc-harris-powermax
471 echo powerpc-harris-powerunix
474 echo m88k-harris-cxux7
477 echo m88k-motorola-sysv4
480 echo m88k-motorola-sysv3
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
490 echo m88k-dg-dgux${UNAME_RELEASE}
492 echo m88k-dg-dguxbcs${UNAME_RELEASE}
495 echo i586-dg-dgux${UNAME_RELEASE}
499 echo m88k-dolphin-sysv3
503 echo m88k-motorola-sysv3
506 echo m88k-tektronix-sysv3
508 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
509 echo m68k-tektronix-bsd
512 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
514 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
515 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
516 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
518 echo i386-ibm-aix
521 if [ -x /usr/bin/oslevel ] ; then
526 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
538 puts("powerpc-ibm-aix3.2.5");
542 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
546 echo rs6000-ibm-aix3.2.5
549 echo rs6000-ibm-aix3.2.4
551 echo rs6000-ibm-aix3.2
555 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
561 if [ -x /usr/bin/oslevel ] ; then
566 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
569 echo rs6000-ibm-aix
571 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
572 echo romp-ibm-bsd4.4
574 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
575 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
576 exit ;; # report: romp-ibm BSD 4.3
578 echo rs6000-bull-bosx
581 echo m68k-bull-sysv3
584 echo m68k-hp-bsd
587 echo m68k-hp-bsd4.4
589 9000/[34678]??:HP-UX:*:*)
590 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
594 9000/[678][0-9][0-9])
595 if [ -x /usr/bin/getconf ]; then
605 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
644 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645 test -z "$HP_ARCH" && HP_ARCH=hppa
652 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
653 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
654 # generating 64-bit code. GNU and HP use different nomenclature:
657 # => hppa2.0w-hp-hpux11.23
659 # => hppa64-hp-hpux11.23
661 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
662 grep -q __LP64__
669 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
671 ia64:HP-UX:*:*)
672 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
673 echo ia64-hp-hpux${HPUX_REV}
675 3050*:HI-UX:*:*)
690 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
691 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
692 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
693 default: puts ("hppa-hitachi-hiuxwe2"); break;
697 puts ("m68k-hitachi-hiuxwe2");
698 else puts ("unknown-hitachi-hiuxwe2");
702 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
704 echo unknown-hitachi-hiuxwe2
707 echo hppa1.1-hp-bsd
710 echo hppa1.0-hp-bsd
713 echo hppa1.0-hp-mpeix
716 echo hppa1.1-hp-osf
719 echo hppa1.0-hp-osf
722 if [ -x /usr/sbin/sysversion ] ; then
723 echo ${UNAME_MACHINE}-unknown-osf1mk
725 echo ${UNAME_MACHINE}-unknown-osf1
729 echo hppa1.1-hp-lites
732 echo c1-convex-bsd
735 if getsysinfo -f scalar_acc
736 then echo c32-convex-bsd
737 else echo c2-convex-bsd
741 echo c34-convex-bsd
744 echo c38-convex-bsd
747 echo c4-convex-bsd
749 CRAY*Y-MP:*:*:*)
750 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752 CRAY*[A-Z]90:*:*:*)
753 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
754 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
755 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
756 -e 's/\.[^.]*$/.X/'
759 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777 …FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\…
778 … ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
782 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
785 echo sparc-unknown-bsdi${UNAME_RELEASE}
788 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
801 echo ${UNAME_MACHINE}-pc-cygwin
804 echo ${UNAME_MACHINE}-pc-mingw32
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
811 echo ${UNAME_MACHINE}-pc-pw32
816 echo i586-pc-interix${UNAME_RELEASE}
819 echo x86_64-unknown-interix${UNAME_RELEASE}
822 echo ia64-unknown-interix${UNAME_RELEASE}
826 echo i${UNAME_MACHINE}-pc-mks
829 echo x86_64-pc-mks
833 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
835 echo i586-pc-interix
838 echo ${UNAME_MACHINE}-pc-uwin
841 echo x86_64-unknown-cygwin
844 echo powerpcle-unknown-cygwin
847 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
851 …echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$…
855 …o ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${…
858 echo ${UNAME_MACHINE}-pc-minix
861 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
870 objdump --private-headers /bin/sh | grep -q ld.so.1
872 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
876 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
877 | grep -q __ARM_EABI__
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
888 echo cris-axis-linux-gnu
891 echo crisv32-axis-linux-gnu
894 echo frv-unknown-linux-gnu
904 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
905 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
932 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
933 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
936 echo or32-unknown-linux-gnu
939 echo sparc-unknown-linux-gnu
942 echo hppa64-unknown-linux-gnu
946 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
947 PA7*) echo hppa1.1-unknown-linux-gnu ;;
948 PA8*) echo hppa2.0-unknown-linux-gnu ;;
949 *) echo hppa-unknown-linux-gnu ;;
953 echo powerpc64-unknown-linux-gnu
956 echo powerpc-unknown-linux-gnu
959 echo ${UNAME_MACHINE}-ibm-linux
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
965 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 echo ${UNAME_MACHINE}-unknown-linux-gnu
971 echo ${UNAME_MACHINE}-dec-linux-gnu
974 echo x86_64-unknown-linux-gnu
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
980 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
983 echo i386-sequent-sysv4
989 # I just have to hope. -- rms.
991 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
996 echo ${UNAME_MACHINE}-pc-os2-emx
998 i*86:XTS-300:*:STOP)
999 echo ${UNAME_MACHINE}-unknown-stop
1002 echo ${UNAME_MACHINE}-unknown-atheos
1005 echo ${UNAME_MACHINE}-pc-syllable
1008 echo i386-unknown-lynxos${UNAME_RELEASE}
1011 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1016 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1018 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1023 case `/bin/uname -X | grep "^Machine"` in
1025 *Pentium) UNAME_MACHINE=i586 ;;
1028 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1031 if test -f /usr/options/cb.name; then
1032 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1033 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1034 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1035 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1036 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1037 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1038 && UNAME_MACHINE=i586
1039 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1041 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1043 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1045 echo ${UNAME_MACHINE}-pc-sysv32
1048 pc:*:*:*)
1050 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051 # the processor, so we play safe by assuming i586.
1054 # this is a cross-build.
1055 echo i586-pc-msdosdjgpp
1058 echo i386-pc-mach3
1061 echo i860-intel-osf1
1063 i860:*:4.*:*) # i860-SVR4
1065 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1066 else # Add other i860-SVR4 vendors below as they are discovered.
1067 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1072 echo m68010-convergent-sysv
1075 echo m68k-convergent-sysv
1077 M680?0:D-NIX:5.3:*)
1078 echo m68k-diab-dnix
1081 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1084 test -r /etc/.relid \
1085 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1086 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1087 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1088 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1089 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && { echo i486-ncr-sysv4; exit; } ;;
1095 test -r /etc/.relid \
1096 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1097 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1098 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1099 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1100 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1101 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1102 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1104 echo m68k-unknown-lynxos${UNAME_RELEASE}
1107 echo m68k-atari-sysv4
1110 echo sparc-unknown-lynxos${UNAME_RELEASE}
1113 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1116 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1119 echo mips-dde-sysv${UNAME_RELEASE}
1121 RM*:ReliantUNIX-*:*:*)
1122 echo mips-sni-sysv4
1124 RM*:SINIX-*:*:*)
1125 echo mips-sni-sysv4
1127 *:SINIX-*:*:*)
1128 if uname -p 2>/dev/null >/dev/null ; then
1129 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1130 echo ${UNAME_MACHINE}-sni-sysv4
1132 echo ns32k-sni-sysv
1137 echo i586-unisys-sysv4
1141 # How about differentiating between stratus architectures? -djm
1142 echo hppa1.1-stratus-sysv4
1146 echo i860-stratus-sysv4
1150 echo ${UNAME_MACHINE}-stratus-vos
1154 echo hppa1.1-stratus-vos
1157 echo m68k-apple-aux${UNAME_RELEASE}
1159 news*:NEWS-OS:6*:*)
1160 echo mips-sony-newsos6
1163 if [ -d /usr/nec ]; then
1164 echo mips-nec-sysv${UNAME_RELEASE}
1166 echo mips-unknown-sysv${UNAME_RELEASE}
1170 echo powerpc-be-beos
1173 echo powerpc-apple-beos
1175 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1176 echo i586-pc-beos
1178 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1179 echo i586-pc-haiku
1181 SX-4:SUPER-UX:*:*)
1182 echo sx4-nec-superux${UNAME_RELEASE}
1184 SX-5:SUPER-UX:*:*)
1185 echo sx5-nec-superux${UNAME_RELEASE}
1187 SX-6:SUPER-UX:*:*)
1188 echo sx6-nec-superux${UNAME_RELEASE}
1190 SX-7:SUPER-UX:*:*)
1191 echo sx7-nec-superux${UNAME_RELEASE}
1193 SX-8:SUPER-UX:*:*)
1194 echo sx8-nec-superux${UNAME_RELEASE}
1196 SX-8R:SUPER-UX:*:*)
1197 echo sx8r-nec-superux${UNAME_RELEASE}
1200 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1203 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1206 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1212 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1220 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1223 UNAME_PROCESSOR=`uname -p`
1226 UNAME_MACHINE=pc
1228 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1231 echo i386-pc-qnx
1233 NSE-?:NONSTOP_KERNEL:*:*)
1234 echo nse-tandem-nsk${UNAME_RELEASE}
1236 NSR-?:NONSTOP_KERNEL:*:*)
1237 echo nsr-tandem-nsk${UNAME_RELEASE}
1239 *:NonStop-UX:*:*)
1240 echo mips-compaq-nonstopux
1243 echo bs2000-siemens-sysv
1246 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1249 # "uname -m" is not consistent, so use $cputype instead. 386
1257 echo ${UNAME_MACHINE}-unknown-plan9
1259 *:TOPS-10:*:*)
1260 echo pdp10-unknown-tops10
1263 echo pdp10-unknown-tenex
1265 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1266 echo pdp10-dec-tops20
1268 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1269 echo pdp10-xkl-tops20
1271 *:TOPS-20:*:*)
1272 echo pdp10-unknown-tops20
1275 echo pdp10-unknown-its
1278 echo mips-sei-seiux${UNAME_RELEASE}
1281 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1284 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1286 A*) echo alpha-dec-vms ; exit ;;
1287 I*) echo ia64-dec-vms ; exit ;;
1288 V*) echo vax-dec-vms ; exit ;;
1291 echo i386-pc-xenix
1294 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1297 echo ${UNAME_MACHINE}-pc-rdos
1300 echo ${UNAME_MACHINE}-pc-aros
1319 printf ("mips-sony-bsd\n"); exit (0);
1322 printf ("m68k-sony-newsos%s\n",
1333 printf ("arm-acorn-riscix\n"); exit (0);
1337 printf ("m68k-hp-bsd\n"); exit (0);
1345 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1347 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1349 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1355 printf ("ns32k-encore-sysv\n"); exit (0);
1358 printf ("ns32k-encore-mach\n"); exit (0);
1360 printf ("ns32k-encore-bsd\n"); exit (0);
1366 printf ("i386-pc-bsd\n"); exit (0);
1371 printf ("i386-sequent-dynix\n"); exit (0);
1374 printf ("ns32k-sequent-dynix\n"); exit (0);
1384 printf ("i386-sequent-ptx2\n"); exit (0);
1387 printf ("i386-sequent-ptx1\n"); exit (0);
1389 printf ("i386-sequent-ptx\n"); exit (0);
1398 printf ("vax-dec-bsd4.3\n"); exit (0);
1401 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1403 printf ("vax-dec-bsd\n"); exit (0);
1407 printf ("vax-dec-bsd\n"); exit (0);
1410 printf ("vax-dec-ultrix\n"); exit (0);
1415 printf ("i860-alliant-bsd\n"); exit (0);
1422 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1427 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1431 if [ -x /usr/convex/getsysinfo ]
1433 case `getsysinfo -f cpu_type` in
1435 echo c1-convex-bsd
1438 if getsysinfo -f scalar_acc
1439 then echo c32-convex-bsd
1440 else echo c2-convex-bsd
1444 echo c34-convex-bsd
1447 echo c38-convex-bsd
1450 echo c4-convex-bsd
1468 pertinent to <config-patches@gnu.org> in order to provide the needed
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1497 # eval: (add-hook 'write-file-hooks 'time-stamp)
1498 # time-stamp-start: "timestamp='"
1499 # time-stamp-format: "%:y-%02m-%02d"
1500 # time-stamp-end: "'"