tools/config.guess
branch1.2
changeset 739 8ebf5ea601d8
parent 295 ac33f59abd46
child 952 4db000267992
     1.1 --- a/tools/config.guess	Fri Jul 27 11:45:13 2007 +0000
     1.2 +++ b/tools/config.guess	Sun Jul 27 14:28:36 2008 +0000
     1.3 @@ -1,10 +1,10 @@
     1.4  #! /bin/sh
     1.5  # Attempt to guess a canonical system name.
     1.6  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     1.7 -#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     1.8 -#   Inc.
     1.9 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
    1.10 +#   Free Software Foundation, Inc.
    1.11  
    1.12 -timestamp='2007-07-22'
    1.13 +timestamp='2008-04-14'
    1.14  
    1.15  # This file is free software; you can redistribute it and/or modify it
    1.16  # under the terms of the GNU General Public License as published by
    1.17 @@ -56,8 +56,8 @@
    1.18  GNU config.guess ($timestamp)
    1.19  
    1.20  Originally written by Per Bothner.
    1.21 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    1.22 -Free Software Foundation, Inc.
    1.23 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    1.24 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    1.25  
    1.26  This is free software; see the source for copying conditions.  There is NO
    1.27  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.28 @@ -532,7 +532,7 @@
    1.29  		echo rs6000-ibm-aix3.2
    1.30  	fi
    1.31  	exit ;;
    1.32 -    *:AIX:*:[45])
    1.33 +    *:AIX:*:[456])
    1.34  	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    1.35  	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    1.36  		IBM_ARCH=rs6000
    1.37 @@ -799,6 +799,9 @@
    1.38  	    EM64T | authenticamd)
    1.39  		echo x86_64-unknown-interix${UNAME_RELEASE}
    1.40  		exit ;;
    1.41 +	    IA64)
    1.42 +		echo ia64-unknown-interix${UNAME_RELEASE}
    1.43 +		exit ;;
    1.44  	esac ;;
    1.45      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    1.46  	echo i${UNAME_MACHINE}-pc-mks
    1.47 @@ -833,7 +836,14 @@
    1.48  	echo ${UNAME_MACHINE}-pc-minix
    1.49  	exit ;;
    1.50      arm*:Linux:*:*)
    1.51 -	echo ${UNAME_MACHINE}-unknown-linux-gnu
    1.52 +	eval $set_cc_for_build
    1.53 +	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    1.54 +	    | grep -q __ARM_EABI__
    1.55 +	then
    1.56 +	    echo ${UNAME_MACHINE}-unknown-linux-gnu
    1.57 +	else
    1.58 +	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
    1.59 +	fi
    1.60  	exit ;;
    1.61      avr32*:Linux:*:*)
    1.62  	echo ${UNAME_MACHINE}-unknown-linux-gnu
    1.63 @@ -954,8 +964,8 @@
    1.64      x86_64:Linux:*:*)
    1.65  	echo x86_64-unknown-linux-gnu
    1.66  	exit ;;
    1.67 -    xtensa:Linux:*:*)
    1.68 -    	echo xtensa-unknown-linux-gnu
    1.69 +    xtensa*:Linux:*:*)
    1.70 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
    1.71  	exit ;;
    1.72      i*86:Linux:*:*)
    1.73  	# The BFD linker knows what the default object file format is, so
    1.74 @@ -975,9 +985,6 @@
    1.75  	  a.out-i386-linux)
    1.76  		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    1.77  		exit ;;
    1.78 -	  coff-i386)
    1.79 -		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    1.80 -		exit ;;
    1.81  	  "")
    1.82  		# Either a pre-BFD a.out linker (linux-gnuoldld) or
    1.83  		# one that does not give us useful --help.
    1.84 @@ -1206,6 +1213,9 @@
    1.85      BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
    1.86  	echo i586-pc-beos
    1.87  	exit ;;
    1.88 +    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
    1.89 +	echo i586-pc-haiku
    1.90 +	exit ;;
    1.91      SX-4:SUPER-UX:*:*)
    1.92  	echo sx4-nec-superux${UNAME_RELEASE}
    1.93  	exit ;;
    1.94 @@ -1474,9 +1484,9 @@
    1.95  the operating system you are using. It is advised that you
    1.96  download the most up to date version of the config scripts from
    1.97  
    1.98 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
    1.99 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
   1.100  and
   1.101 -  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
   1.102 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
   1.103  
   1.104  If the version you run ($0) is already up to date, please
   1.105  send the following data and any information you think might be