llvm.org GIT mirror llvm / 857fd8f
Update autoconfig/config.{sub,guess} to the latest version from the GNU upstream: git://git.savannah.gnu.org/config.git 1. It eliminates a local LLVM patch for auroraux (because, the mainline config.sub has already got support of auroraux) 2. It adds several new recognized target cpus and operating systems (in particular, PNaCl) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137984 91177308-0d34-0410-b5e6-96231b3b80d8 Ivan Krasin 8 years ago
2 changed file(s) with 263 addition(s) and 184 deletion(s). Raw diff Collapse all Expand all
0 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-09-18'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-08-17'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
5555 GNU config.guess ($timestamp)
5656
5757 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
60 Software Foundation, Inc.
6061
6162 This is free software; see the source for copying conditions. There is NO
6263 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
179180 fi
180181 ;;
181182 *)
182 os=netbsd
183 os=netbsd
183184 ;;
184185 esac
185186 # The OS release
222223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223224 ;;
224225 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226227 ;;
227228 esac
228229 # According to Compaq, /usr/sbin/psrinfo has been available on
268269 # A Xn.n version is an unreleased experimental baselevel.
269270 # 1.2 uses "1.2" for uname -r.
270271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
272276 Alpha\ *:Windows_NT*:*)
273277 # How do we know it's Interix rather than the generic POSIX subsystem?
274278 # Should we change UNAME_MACHINE based on the output of uname instead
294298 echo s390-ibm-zvmoe
295299 exit ;;
296300 *:OS400:*:*)
297 echo powerpc-ibm-os400
301 echo powerpc-ibm-os400
298302 exit ;;
299303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300304 echo arm-acorn-riscix${UNAME_RELEASE}
333337 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334338 exit ;;
335339 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
336 AUX_ARCH="i386"
337 echo ${AUX_ARCH}-pc-auroraux`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340 echo i386-pc-auroraux${UNAME_RELEASE}
338341 exit ;;
339342 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
340343 eval $set_cc_for_build
394397 # MiNT. But MiNT is downward compatible to TOS, so this should
395398 # be no problem.
396399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
400 echo m68k-atari-mint${UNAME_RELEASE}
398401 exit ;;
399402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400403 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
404 exit ;;
402405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
406 echo m68k-atari-mint${UNAME_RELEASE}
404407 exit ;;
405408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
408411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
411414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
414417 m68k:machten:*:*)
415418 echo m68k-apple-machten${UNAME_RELEASE}
416419 exit ;;
480483 echo m88k-motorola-sysv3
481484 exit ;;
482485 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
485488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486489 then
487490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
494497 else
495498 echo i586-dg-dgux${UNAME_RELEASE}
496499 fi
497 exit ;;
500 exit ;;
498501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499502 echo m88k-dolphin-sysv3
500503 exit ;;
551554 echo rs6000-ibm-aix3.2
552555 fi
553556 exit ;;
554 *:AIX:*:[456])
557 *:AIX:*:[4567])
555558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557560 IBM_ARCH=rs6000
594597 9000/[678][0-9][0-9])
595598 if [ -x /usr/bin/getconf ]; then
596599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
605608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
609 esac ;;
610 esac
608611 fi
609612 if [ "${HP_ARCH}" = "" ]; then
610613 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include
615 #include
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include
618 #include
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
643646 EOF
644647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645648 test -z "$HP_ARCH" && HP_ARCH=hppa
730733 exit ;;
731734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732735 echo c1-convex-bsd
733 exit ;;
736 exit ;;
734737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735738 if getsysinfo -f scalar_acc
736739 then echo c32-convex-bsd
737740 else echo c2-convex-bsd
738741 fi
739 exit ;;
742 exit ;;
740743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741744 echo c34-convex-bsd
742 exit ;;
745 exit ;;
743746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744747 echo c38-convex-bsd
745 exit ;;
748 exit ;;
746749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747750 echo c4-convex-bsd
748 exit ;;
751 exit ;;
749752 CRAY*Y-MP:*:*:*)
750753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751754 exit ;;
769772 exit ;;
770773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771774 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}"
775 exit ;;
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
776779 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780783 exit ;;
781784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
788791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789792 exit ;;
790793 *:FreeBSD:*:*)
791 UNAME_PROCESSOR=`/usr/bin/uname -p`
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
792795 case ${UNAME_MACHINE} in
793796 amd64)
794797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
803806 echo ${UNAME_MACHINE}-pc-mingw32
804807 exit ;;
805808 i*:windows32*:*)
806 # uname -m includes "-pc" on this system.
807 echo ${UNAME_MACHINE}-mingw32
809 # uname -m includes "-pc" on this system.
810 echo ${UNAME_MACHINE}-mingw32
808811 exit ;;
809812 i*:PW*:*)
810813 echo ${UNAME_MACHINE}-pc-pw32
811814 exit ;;
812 *:Interix*:[3456]*)
813 case ${UNAME_MACHINE} in
815 *:Interix*:*)
816 case ${UNAME_MACHINE} in
814817 x86)
815818 echo i586-pc-interix${UNAME_RELEASE}
816819 exit ;;
817 EM64T | authenticamd | genuineintel)
820 authenticamd | genuineintel | EM64T)
818821 echo x86_64-unknown-interix${UNAME_RELEASE}
819822 exit ;;
820823 IA64)
865868 EV6) UNAME_MACHINE=alphaev6 ;;
866869 EV67) UNAME_MACHINE=alphaev67 ;;
867870 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
871 esac
869872 objdump --private-headers /bin/sh | grep -q ld.so.1
870873 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871874 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
877880 then
878881 echo ${UNAME_MACHINE}-unknown-linux-gnu
879882 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
883 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
884 | grep -q __ARM_PCS_VFP
885 then
886 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
887 else
888 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
889 fi
881890 fi
882891 exit ;;
883892 avr32*:Linux:*:*)
890899 echo crisv32-axis-linux-gnu
891900 exit ;;
892901 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
902 echo frv-unknown-linux-gnu
894903 exit ;;
895904 i*86:Linux:*:*)
896 echo ${UNAME_MACHINE}-pc-linux-gnu
905 LIBC=gnu
906 eval $set_cc_for_build
907 sed 's/^ //' << EOF >$dummy.c
908 #ifdef __dietlibc__
909 LIBC=dietlibc
910 #endif
911 EOF
912 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
913 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
897914 exit ;;
898915 ia64:Linux:*:*)
899916 echo ${UNAME_MACHINE}-unknown-linux-gnu
920937 #endif
921938 #endif
922939 EOF
923 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
924 /^CPU/{
925 s: ::g
926 p
927 }'`"
940 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
928941 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
929942 ;;
930943 or32:Linux:*:*)
954967 echo ${UNAME_MACHINE}-ibm-linux
955968 exit ;;
956969 sh64*:Linux:*:*)
957 echo ${UNAME_MACHINE}-unknown-linux-gnu
970 echo ${UNAME_MACHINE}-unknown-linux-gnu
958971 exit ;;
959972 sh*:Linux:*:*)
960973 echo ${UNAME_MACHINE}-unknown-linux-gnu
962975 sparc:Linux:*:* | sparc64:Linux:*:*)
963976 echo ${UNAME_MACHINE}-unknown-linux-gnu
964977 exit ;;
978 tile*:Linux:*:*)
979 echo ${UNAME_MACHINE}-unknown-linux-gnu
980 exit ;;
965981 vax:Linux:*:*)
966982 echo ${UNAME_MACHINE}-dec-linux-gnu
967983 exit ;;
969985 echo x86_64-unknown-linux-gnu
970986 exit ;;
971987 xtensa*:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-gnu
988 echo ${UNAME_MACHINE}-unknown-linux-gnu
973989 exit ;;
974990 i*86:DYNIX/ptx:4*:*)
975991 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
978994 echo i386-sequent-sysv4
979995 exit ;;
980996 i*86:UNIX_SV:4.2MP:2.*)
981 # Unixware is an offshoot of SVR4, but it has its own version
982 # number series starting with 2...
983 # I am not positive that other SVR4 systems won't match this,
997 # Unixware is an offshoot of SVR4, but it has its own version
998 # number series starting with 2...
999 # I am not positive that other SVR4 systems won't match this,
9841000 # I just have to hope. -- rms.
985 # Use sysv4.2uw... so that sysv4* matches it.
1001 # Use sysv4.2uw... so that sysv4* matches it.
9861002 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9871003 exit ;;
9881004 i*86:OS/2:*:*)
10141030 fi
10151031 exit ;;
10161032 i*86:*:5:[678]*)
1017 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1033 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10181034 case `/bin/uname -X | grep "^Machine"` in
10191035 *486*) UNAME_MACHINE=i486 ;;
10201036 *Pentium) UNAME_MACHINE=i586 ;;
10421058 exit ;;
10431059 pc:*:*:*)
10441060 # Left here for compatibility:
1045 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1046 # the processor, so we play safe by assuming i586.
1061 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1062 # the processor, so we play safe by assuming i586.
10471063 # Note: whatever this is, it MUST be the same as what config.sub
10481064 # prints for the "djgpp" host, or else GDB configury will decide that
10491065 # this is a cross-build.
10501066 echo i586-pc-msdosdjgpp
1051 exit ;;
1067 exit ;;
10521068 Intel:Mach:3*:*)
10531069 echo i386-pc-mach3
10541070 exit ;;
10831099 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10841100 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10851101 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1086 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1087 && { echo i486-ncr-sysv4; exit; } ;;
1102 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1103 && { echo i486-ncr-sysv4; exit; } ;;
10881104 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10891105 OS_REL='.3'
10901106 test -r /etc/.relid \
11271143 echo ns32k-sni-sysv
11281144 fi
11291145 exit ;;
1130 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1131 # says
1132 echo i586-unisys-sysv4
1133 exit ;;
1146 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1147 # says
1148 echo i586-unisys-sysv4
1149 exit ;;
11341150 *:UNIX_System_V:4*:FTX*)
11351151 # From Gerald Hewes .
11361152 # How about differentiating between stratus architectures? -djm
11561172 exit ;;
11571173 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11581174 if [ -d /usr/nec ]; then
1159 echo mips-nec-sysv${UNAME_RELEASE}
1175 echo mips-nec-sysv${UNAME_RELEASE}
11601176 else
1161 echo mips-unknown-sysv${UNAME_RELEASE}
1162 fi
1163 exit ;;
1177 echo mips-unknown-sysv${UNAME_RELEASE}
1178 fi
1179 exit ;;
11641180 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11651181 echo powerpc-be-beos
11661182 exit ;;
12251241 *:QNX:*:4*)
12261242 echo i386-pc-qnx
12271243 exit ;;
1244 NEO-?:NONSTOP_KERNEL:*:*)
1245 echo neo-tandem-nsk${UNAME_RELEASE}
1246 exit ;;
12281247 NSE-?:NONSTOP_KERNEL:*:*)
12291248 echo nse-tandem-nsk${UNAME_RELEASE}
12301249 exit ;;
12701289 echo pdp10-unknown-its
12711290 exit ;;
12721291 SEI:*:*:SEIUX)
1273 echo mips-sei-seiux${UNAME_RELEASE}
1292 echo mips-sei-seiux${UNAME_RELEASE}
12741293 exit ;;
12751294 *:DragonFly:*:*)
12761295 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12771296 exit ;;
12781297 *:*VMS:*:*)
1279 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1298 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12801299 case "${UNAME_MACHINE}" in
12811300 A*) echo alpha-dec-vms ; exit ;;
12821301 I*) echo ia64-dec-vms ; exit ;;
13161335 #include
13171336 printf ("m68k-sony-newsos%s\n",
13181337 #ifdef NEWSOS4
1319 "4"
1338 "4"
13201339 #else
1321 ""
1322 #endif
1323 ); exit (0);
1340 ""
1341 #endif
1342 ); exit (0);
13241343 #endif
13251344 #endif
13261345
0 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-08-19'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-08-15'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
7474 version="\
7575 GNU config.sub ($timestamp)
7676
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
78 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
79 Software Foundation, Inc.
7980
8081 This is free software; see the source for copying conditions. There is NO
8182 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122123 # Here we must recognize all the valid KERNEL-OS combinations.
123124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124125 case $maybe_os in
125 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
126 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
127129 kopensolaris*-gnu* | \
128130 storm-chaos* | os2-emx* | rtmk-nova*)
129131 os=-$maybe_os
155157 os=
156158 basic_machine=$1
157159 ;;
158 -bluegene*)
159 os=-cnk
160 -bluegene*)
161 os=-cnk
160162 ;;
161163 -sim | -cisco | -oki | -wec | -winbond)
162164 os=
172174 os=-chorusos
173175 basic_machine=$1
174176 ;;
175 -chorusrdb)
176 os=-chorusrdb
177 -chorusrdb)
178 os=-chorusrdb
177179 basic_machine=$1
178 ;;
180 ;;
179181 -hiux*)
180182 os=-hiuxwe2
181183 ;;
243245 # Recognize the basic CPU types without company name.
244246 # Some are omitted here because they have special meanings below.
245247 1750a | 580 \
248 | 32e[bl] | 64e[bl] \
246249 | a29k \
247250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
280283 | moxie \
281284 | mt \
282285 | msp430 \
286 | nds32 | nds32le | nds32be \
283287 | nios | nios2 \
284288 | ns16k | ns32k \
289 | open8 \
285290 | or32 \
286291 | pdp10 | pdp11 | pj | pjl \
287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
292 | powerpc | powerpc64 | powerpc64le | powerpcle \
288293 | pyramid \
294 | rx \
289295 | score \
290296 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
291297 | sh64 | sh64le \
292298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
293299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
294 | spu | strongarm \
295 | tahoe | thumb | tic4x | tic80 | tron \
296 | v850 | v850e \
300 | spu \
301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
302 | ubicom32 \
303 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
297304 | we32k \
298 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
305 | x86 | xc16x | xstormy16 | xtensa \
299306 | z8k | z80)
300307 basic_machine=$basic_machine-unknown
301308 ;;
302 m6811 | m68hc11 | m6812 | m68hc12)
309 c54x)
310 basic_machine=tic54x-unknown
311 ;;
312 c55x)
313 basic_machine=tic55x-unknown
314 ;;
315 c6x)
316 basic_machine=tic6x-unknown
317 ;;
318 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
303319 # Motorola 68HC11/12.
304320 basic_machine=$basic_machine-unknown
305321 os=-none
308324 ;;
309325 ms1)
310326 basic_machine=mt-unknown
327 ;;
328
329 strongarm | thumb | xscale)
330 basic_machine=arm-unknown
331 ;;
332
333 xscaleeb)
334 basic_machine=armeb-unknown
335 ;;
336
337 xscaleel)
338 basic_machine=armel-unknown
311339 ;;
312340
313341 # We use `pc' rather than `unknown'
323351 ;;
324352 # Recognize the basic CPU types with company name.
325353 580-* \
354 | 32e[bl]-* | 64e[bl]-* \
326355 | a29k-* \
327356 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
328357 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
330359 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
331360 | avr-* | avr32-* \
332361 | bfin-* | bs2000-* \
333 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
362 | c[123]* | c30-* | [cjt]90-* | c4x-* \
334363 | clipper-* | craynv-* | cydra-* \
335364 | d10v-* | d30v-* | dlx-* \
336365 | elxsi-* \
364393 | mmix-* \
365394 | mt-* \
366395 | msp430-* \
396 | nds32-* | nds32le-* | nds32be-* \
367397 | nios-* | nios2-* \
368398 | none-* | np1-* | ns16k-* | ns32k-* \
399 | open8-* \
369400 | orion-* \
370401 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
371 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
402 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
372403 | pyramid-* \
373 | romp-* | rs6000-* \
404 | romp-* | rs6000-* | rx-* \
374405 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
375406 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
376407 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
377408 | sparclite-* \
378 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
379 | tahoe-* | thumb-* \
380 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
409 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
410 | tahoe-* \
411 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
412 | tile*-* \
381413 | tron-* \
382 | v850-* | v850e-* | vax-* \
414 | ubicom32-* \
415 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
416 | vax-* \
383417 | we32k-* \
384 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
418 | x86-* | x86_64-* | xc16x-* | xps100-* \
385419 | xstormy16-* | xtensa*-* \
386420 | ymp-* \
387421 | z8k-* | z80-*)
406440 basic_machine=a29k-amd
407441 os=-udi
408442 ;;
409 abacus)
443 abacus)
410444 basic_machine=abacus-unknown
411445 ;;
412446 adobe68k)
476510 basic_machine=powerpc-ibm
477511 os=-cnk
478512 ;;
513 c54x-*)
514 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
515 ;;
516 c55x-*)
517 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
518 ;;
519 c6x-*)
520 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
521 ;;
479522 c90)
480523 basic_machine=c90-cray
481524 os=-unicos
482525 ;;
483 cegcc)
526 cegcc)
484527 basic_machine=arm-unknown
485528 os=-cegcc
486529 ;;
512555 basic_machine=craynv-cray
513556 os=-unicosmp
514557 ;;
515 cr16)
558 cr16 | cr16-*)
516559 basic_machine=cr16-unknown
517560 os=-elf
518561 ;;
728771 basic_machine=ns32k-utek
729772 os=-sysv
730773 ;;
731 microblaze)
774 microblaze)
732775 basic_machine=microblaze-xilinx
733776 ;;
734777 mingw32)
770813 mvs)
771814 basic_machine=i370-ibm
772815 os=-mvs
816 ;;
817 nacl)
818 basic_machine=32el-unknown
819 os=-nacl
773820 ;;
774821 ncr3000)
775822 basic_machine=i486-ncr
835882 np1)
836883 basic_machine=np1-gould
837884 ;;
885 neo-tandem)
886 basic_machine=neo-tandem
887 ;;
888 nse-tandem)
889 basic_machine=nse-tandem
890 ;;
838891 nsr-tandem)
839892 basic_machine=nsr-tandem
840893 ;;
917970 ;;
918971 power) basic_machine=power-ibm
919972 ;;
920 ppc) basic_machine=powerpc-unknown
921 ;;
922 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
973 ppc | ppcbe) basic_machine=powerpc-unknown
974 ;;
975 ppc-* | ppcbe-*)
976 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
923977 ;;
924978 ppcle | powerpclittle | ppc-le | powerpc-little)
925979 basic_machine=powerpcle-unknown
10131067 basic_machine=i860-stratus
10141068 os=-sysv4
10151069 ;;
1070 strongarm-* | thumb-*)
1071 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1072 ;;
10161073 sun2)
10171074 basic_machine=m68000-sun
10181075 ;;
10691126 basic_machine=t90-cray
10701127 os=-unicos
10711128 ;;
1072 tic54x | c54x*)
1073 basic_machine=tic54x-unknown
1074 os=-coff
1075 ;;
1076 tic55x | c55x*)
1077 basic_machine=tic55x-unknown
1078 os=-coff
1079 ;;
1080 tic6x | c6x*)
1081 basic_machine=tic6x-unknown
1082 os=-coff
1083 ;;
10841129 tile*)
1085 basic_machine=tile-unknown
1130 basic_machine=$basic_machine-unknown
10861131 os=-linux-gnu
10871132 ;;
10881133 tx39)
11511196 ;;
11521197 xps | xps100)
11531198 basic_machine=xps100-honeywell
1199 ;;
1200 xscale-* | xscalee[bl]-*)
1201 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11541202 ;;
11551203 ymp)
11561204 basic_machine=ymp-cray
12491297 if [ x"$os" != x"" ]
12501298 then
12511299 case $os in
1252 # First match some system type aliases
1253 # that might get confused with valid system types.
1300 # First match some system type aliases
1301 # that might get confused with valid system types.
12541302 # -solaris* is a basic system type, with this one exception.
1303 -auroraux)
1304 os=-auroraux
1305 ;;
12551306 -solaris1 | -solaris1.*)
12561307 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1257 ;;
1258 -auroraux)
1259 os=-auroraux
12601308 ;;
12611309 -solaris)
12621310 os=-solaris2
12761324 # -sysv* is not here because it comes later, after sysvr4.
12771325 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
12781326 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1279 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* | -sym* \
1280 | -kopensolaris* \
1327 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1328 | -sym* | -kopensolaris* \
12811329 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12821330 | -aos* | -aros* \
12831331 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12901338 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12911339 | -chorusos* | -chorusrdb* | -cegcc* \
12921340 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1293 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1341 | -mingw32* | -linux-gnu* | -linux-android* \
1342 | -linux-newlib* | -linux-uclibc* \
12941343 | -uxpv* | -beos* | -mpeix* | -udk* \
12951344 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
12961345 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
12981347 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
12991348 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13001349 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1301 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1350 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
13021351 # Remember, each alternative MUST END IN *, to match a version number.
13031352 ;;
13041353 -qnx*)
13371386 -opened*)
13381387 os=-openedition
13391388 ;;
1340 -os400*)
1389 -os400*)
13411390 os=-os400
13421391 ;;
13431392 -wince*)
13861435 -sinix*)
13871436 os=-sysv4
13881437 ;;
1389 -tpf*)
1438 -tpf*)
13901439 os=-tpf
13911440 ;;
13921441 -triton*)
14301479 ;;
14311480 -dicos*)
14321481 os=-dicos
1482 ;;
1483 -nacl*)
14331484 ;;
14341485 -none)
14351486 ;;
14531504 # system, and we'll never get to this point.
14541505
14551506 case $basic_machine in
1456 score-*)
1507 score-*)
14571508 os=-elf
14581509 ;;
1459 spu-*)
1510 spu-*)
14601511 os=-elf
14611512 ;;
14621513 *-acorn)
14681519 arm*-semi)
14691520 os=-aout
14701521 ;;
1471 c4x-* | tic4x-*)
1472 os=-coff
1522 c4x-* | tic4x-*)
1523 os=-coff
1524 ;;
1525 tic54x-*)
1526 os=-coff
1527 ;;
1528 tic55x-*)
1529 os=-coff
1530 ;;
1531 tic6x-*)
1532 os=-coff
14731533 ;;
14741534 # This must come before the *-dec entry.
14751535 pdp10-*)
14961556 m68*-cisco)
14971557 os=-aout
14981558 ;;
1499 mep-*)
1559 mep-*)
15001560 os=-elf
15011561 ;;
15021562 mips*-cisco)
15231583 *-ibm)
15241584 os=-aix
15251585 ;;
1526 *-knuth)
1586 *-knuth)
15271587 os=-mmixware
15281588 ;;
15291589 *-wec)