Changeset 4196 for trunk/config.guess
- Timestamp:
- 03/21/07 09:51:40 (2 years ago)
- Files:
-
- trunk/config.guess (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config.guess
r4190 r4196 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 5 6 timestamp='2006-04-20' 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 4 # 2002, 2003, 2004, 2005, 2006, 2007 5 # Free Software Foundation, Inc. 6 7 timestamp='2007-02-26' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it … … 107 108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 108 109 : ${TMPDIR=/tmp} ; 109 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 110 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 111 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 161 162 sh3el) machine=shl-unknown ;; 162 163 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;; 163 165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 164 166 esac … … 207 209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 208 210 exit ;; 211 *:SolidBSD:*:*) 212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 213 exit ;; 209 214 macppc:MirBSD:*:*) 210 echo powerp pc-unknown-mirbsd${UNAME_RELEASE}215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 211 216 exit ;; 212 217 *:MirBSD:*:*) … … 768 773 pc98) 769 774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 775 amd64) 776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 770 777 *) 771 778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; … … 775 782 echo ${UNAME_MACHINE}-pc-cygwin 776 783 exit ;; 777 i*:MINGW*:*)784 *:MINGW*:*) 778 785 echo ${UNAME_MACHINE}-pc-mingw32 779 786 exit ;; … … 785 792 echo ${UNAME_MACHINE}-pc-pw32 786 793 exit ;; 787 x86:Interix*:[345]*) 788 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 794 x86:Interix*:[3456]*) 795 echo i586-pc-interix${UNAME_RELEASE} 796 exit ;; 797 EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*) 798 echo x86_64-unknown-interix${UNAME_RELEASE} 789 799 exit ;; 790 800 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) … … 821 831 exit ;; 822 832 arm*:Linux:*:*) 833 echo ${UNAME_MACHINE}-unknown-linux-gnu 834 exit ;; 835 avr32*:Linux:*:*) 823 836 echo ${UNAME_MACHINE}-unknown-linux-gnu 824 837 exit ;; … … 857 870 #endif 858 871 EOF 859 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 872 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 873 /^CPU/{ 874 s: ::g 875 p 876 }'`" 860 877 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 861 878 ;; … … 876 893 #endif 877 894 EOF 878 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 895 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 896 /^CPU/{ 897 s: ::g 898 p 899 }'`" 879 900 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 880 901 ;; … … 930 951 x86_64:Linux:*:*) 931 952 echo x86_64-unknown-linux-gnu 953 exit ;; 954 xtensa:Linux:*:*) 955 echo xtensa-unknown-linux-gnu 932 956 exit ;; 933 957 i*86:Linux:*:*) … … 973 997 # endif 974 998 #else 975 #if defined(__INTEL_COMPILER) || defined(__PGI) 999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 976 1000 LIBC=gnu 977 1001 #else … … 983 1007 #endif 984 1008 EOF 985 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" 1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1010 /^LIBC/{ 1011 s: ::g 1012 p 1013 }'`" 986 1014 test x"${LIBC}" != x && { 987 1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" … … 1184 1212 SX-6:SUPER-UX:*:*) 1185 1213 echo sx6-nec-superux${UNAME_RELEASE} 1214 exit ;; 1215 SX-7:SUPER-UX:*:*) 1216 echo sx7-nec-superux${UNAME_RELEASE} 1217 exit ;; 1218 SX-8:SUPER-UX:*:*) 1219 echo sx8-nec-superux${UNAME_RELEASE} 1220 exit ;; 1221 SX-8R:SUPER-UX:*:*) 1222 echo sx8r-nec-superux${UNAME_RELEASE} 1186 1223 exit ;; 1187 1224 Power*:Rhapsody:*:*)
