config.guess
changeset 220 e59707061bde
parent 192 cee9f4af8db0
child 456 861128794ce2
child 597 85d1fcc58846
equal deleted inserted replaced
219:de70ba5fc166 220:e59707061bde
     1 #! /bin/sh
     1 #! /bin/sh
     2 # Attempt to guess a canonical system name.
     2 # Attempt to guess a canonical system name.
     3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
     5 #   Free Software Foundation, Inc.
     5 #   Free Software Foundation, Inc.
     6 
     6 
     7 timestamp='2009-02-03'
     7 timestamp='2009-09-18'
     8 
     8 
     9 # This file is free software; you can redistribute it and/or modify it
     9 # This file is free software; you can redistribute it and/or modify it
    10 # under the terms of the GNU General Public License as published by
    10 # under the terms of the GNU General Public License as published by
    11 # the Free Software Foundation; either version 2 of the License, or
    11 # the Free Software Foundation; either version 2 of the License, or
    12 # (at your option) any later version.
    12 # (at your option) any later version.
    25 # distribute this file as part of a program that contains a
    25 # distribute this file as part of a program that contains a
    26 # configuration script generated by Autoconf, you may include it under
    26 # configuration script generated by Autoconf, you may include it under
    27 # the same distribution terms that you use for the rest of that program.
    27 # the same distribution terms that you use for the rest of that program.
    28 
    28 
    29 
    29 
    30 # Originally written by Per Bothner <per@bothner.com>.
    30 # Originally written by Per Bothner.  Please send patches (context
    31 # Please send patches to <config-patches@gnu.org>.  Submit a context
    31 # diff format) to <config-patches@gnu.org> and include a ChangeLog
    32 # diff and a properly formatted ChangeLog entry.
    32 # entry.
    33 #
    33 #
    34 # This script attempts to guess a canonical system name similar to
    34 # This script attempts to guess a canonical system name similar to
    35 # config.sub.  If it succeeds, it prints the system name on stdout, and
    35 # config.sub.  If it succeeds, it prints the system name on stdout, and
    36 # exits with 0.  Otherwise, it exits with 1.
    36 # exits with 0.  Otherwise, it exits with 1.
    37 #
    37 #
    38 # The plan is that this can be called by configure scripts if you
    38 # You can get the latest version of this script from:
    39 # don't specify an explicit build system type.
    39 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
    40 
    40 
    41 me=`echo "$0" | sed -e 's,.*/,,'`
    41 me=`echo "$0" | sed -e 's,.*/,,'`
    42 
    42 
    43 usage="\
    43 usage="\
    44 Usage: $0 [OPTION]
    44 Usage: $0 [OPTION]
   168 	# to ELF recently, or will in the future.
   168 	# to ELF recently, or will in the future.
   169 	case "${UNAME_MACHINE_ARCH}" in
   169 	case "${UNAME_MACHINE_ARCH}" in
   170 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
   170 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
   171 		eval $set_cc_for_build
   171 		eval $set_cc_for_build
   172 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   172 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   173 			| grep __ELF__ >/dev/null
   173 			| grep -q __ELF__
   174 		then
   174 		then
   175 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   175 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   176 		    # Return netbsd for either.  FIX?
   176 		    # Return netbsd for either.  FIX?
   177 		    os=netbsd
   177 		    os=netbsd
   178 		else
   178 		else
   322 	exit ;;
   322 	exit ;;
   323     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   323     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   324 	case `/usr/bin/uname -p` in
   324 	case `/usr/bin/uname -p` in
   325 	    sparc) echo sparc-icl-nx7; exit ;;
   325 	    sparc) echo sparc-icl-nx7; exit ;;
   326 	esac ;;
   326 	esac ;;
       
   327     s390x:SunOS:*:*)
       
   328 	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
       
   329 	exit ;;
   327     sun4H:SunOS:5.*:*)
   330     sun4H:SunOS:5.*:*)
   328 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   331 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   329 	exit ;;
   332 	exit ;;
   330     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   333     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   331 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   334 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   651 	    # => hppa2.0w-hp-hpux11.23
   654 	    # => hppa2.0w-hp-hpux11.23
   652 	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   655 	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   653 	    # => hppa64-hp-hpux11.23
   656 	    # => hppa64-hp-hpux11.23
   654 
   657 
   655 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   658 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   656 		grep __LP64__ >/dev/null
   659 		grep -q __LP64__
   657 	    then
   660 	    then
   658 		HP_ARCH="hppa2.0w"
   661 		HP_ARCH="hppa2.0w"
   659 	    else
   662 	    else
   660 		HP_ARCH="hppa64"
   663 		HP_ARCH="hppa64"
   661 	    fi
   664 	    fi
   817 		exit ;;
   820 		exit ;;
   818 	esac ;;
   821 	esac ;;
   819     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   822     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   820 	echo i${UNAME_MACHINE}-pc-mks
   823 	echo i${UNAME_MACHINE}-pc-mks
   821 	exit ;;
   824 	exit ;;
       
   825     8664:Windows_NT:*)
       
   826 	echo x86_64-pc-mks
       
   827 	exit ;;
   822     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   828     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   823 	# How do we know it's Interix rather than the generic POSIX subsystem?
   829 	# How do we know it's Interix rather than the generic POSIX subsystem?
   824 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   830 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   825 	# UNAME_MACHINE based on the output of uname instead of i386?
   831 	# UNAME_MACHINE based on the output of uname instead of i386?
   826 	echo i586-pc-interix
   832 	echo i586-pc-interix
   845 	# other systems with GNU libc and userland
   851 	# other systems with GNU libc and userland
   846 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   852 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   847 	exit ;;
   853 	exit ;;
   848     i*86:Minix:*:*)
   854     i*86:Minix:*:*)
   849 	echo ${UNAME_MACHINE}-pc-minix
   855 	echo ${UNAME_MACHINE}-pc-minix
       
   856 	exit ;;
       
   857     alpha:Linux:*:*)
       
   858 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
       
   859 	  EV5)   UNAME_MACHINE=alphaev5 ;;
       
   860 	  EV56)  UNAME_MACHINE=alphaev56 ;;
       
   861 	  PCA56) UNAME_MACHINE=alphapca56 ;;
       
   862 	  PCA57) UNAME_MACHINE=alphapca56 ;;
       
   863 	  EV6)   UNAME_MACHINE=alphaev6 ;;
       
   864 	  EV67)  UNAME_MACHINE=alphaev67 ;;
       
   865 	  EV68*) UNAME_MACHINE=alphaev68 ;;
       
   866         esac
       
   867 	objdump --private-headers /bin/sh | grep -q ld.so.1
       
   868 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
       
   869 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   850 	exit ;;
   870 	exit ;;
   851     arm*:Linux:*:*)
   871     arm*:Linux:*:*)
   852 	eval $set_cc_for_build
   872 	eval $set_cc_for_build
   853 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   873 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   854 	    | grep -q __ARM_EABI__
   874 	    | grep -q __ARM_EABI__
   868 	echo crisv32-axis-linux-gnu
   888 	echo crisv32-axis-linux-gnu
   869 	exit ;;
   889 	exit ;;
   870     frv:Linux:*:*)
   890     frv:Linux:*:*)
   871     	echo frv-unknown-linux-gnu
   891     	echo frv-unknown-linux-gnu
   872 	exit ;;
   892 	exit ;;
       
   893     i*86:Linux:*:*)
       
   894 	echo ${UNAME_MACHINE}-pc-linux-gnu
       
   895 	exit ;;
   873     ia64:Linux:*:*)
   896     ia64:Linux:*:*)
   874 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   897 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   875 	exit ;;
   898 	exit ;;
   876     m32r*:Linux:*:*)
   899     m32r*:Linux:*:*)
   877 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   900 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   878 	exit ;;
   901 	exit ;;
   879     m68*:Linux:*:*)
   902     m68*:Linux:*:*)
   880 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   903 	echo ${UNAME_MACHINE}-unknown-linux-gnu
   881 	exit ;;
   904 	exit ;;
   882     mips:Linux:*:*)
   905     mips:Linux:*:* | mips64:Linux:*:*)
   883 	eval $set_cc_for_build
   906 	eval $set_cc_for_build
   884 	sed 's/^	//' << EOF >$dummy.c
   907 	sed 's/^	//' << EOF >$dummy.c
   885 	#undef CPU
   908 	#undef CPU
   886 	#undef mips
   909 	#undef ${UNAME_MACHINE}
   887 	#undef mipsel
   910 	#undef ${UNAME_MACHINE}el
   888 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
   911 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
   889 	CPU=mipsel
   912 	CPU=${UNAME_MACHINE}el
   890 	#else
   913 	#else
   891 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
   914 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
   892 	CPU=mips
   915 	CPU=${UNAME_MACHINE}
   893 	#else
       
   894 	CPU=
       
   895 	#endif
       
   896 	#endif
       
   897 EOF
       
   898 	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
       
   899 	    /^CPU/{
       
   900 		s: ::g
       
   901 		p
       
   902 	    }'`"
       
   903 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
       
   904 	;;
       
   905     mips64:Linux:*:*)
       
   906 	eval $set_cc_for_build
       
   907 	sed 's/^	//' << EOF >$dummy.c
       
   908 	#undef CPU
       
   909 	#undef mips64
       
   910 	#undef mips64el
       
   911 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
       
   912 	CPU=mips64el
       
   913 	#else
       
   914 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
       
   915 	CPU=mips64
       
   916 	#else
   916 	#else
   917 	CPU=
   917 	CPU=
   918 	#endif
   918 	#endif
   919 	#endif
   919 	#endif
   920 EOF
   920 EOF
   926 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   926 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   927 	;;
   927 	;;
   928     or32:Linux:*:*)
   928     or32:Linux:*:*)
   929 	echo or32-unknown-linux-gnu
   929 	echo or32-unknown-linux-gnu
   930 	exit ;;
   930 	exit ;;
   931     ppc:Linux:*:*)
       
   932 	echo powerpc-unknown-linux-gnu
       
   933 	exit ;;
       
   934     ppc64:Linux:*:*)
       
   935 	echo powerpc64-unknown-linux-gnu
       
   936 	exit ;;
       
   937     alpha:Linux:*:*)
       
   938 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
       
   939 	  EV5)   UNAME_MACHINE=alphaev5 ;;
       
   940 	  EV56)  UNAME_MACHINE=alphaev56 ;;
       
   941 	  PCA56) UNAME_MACHINE=alphapca56 ;;
       
   942 	  PCA57) UNAME_MACHINE=alphapca56 ;;
       
   943 	  EV6)   UNAME_MACHINE=alphaev6 ;;
       
   944 	  EV67)  UNAME_MACHINE=alphaev67 ;;
       
   945 	  EV68*) UNAME_MACHINE=alphaev68 ;;
       
   946         esac
       
   947 	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
       
   948 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
       
   949 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
       
   950 	exit ;;
       
   951     padre:Linux:*:*)
   931     padre:Linux:*:*)
   952 	echo sparc-unknown-linux-gnu
   932 	echo sparc-unknown-linux-gnu
       
   933 	exit ;;
       
   934     parisc64:Linux:*:* | hppa64:Linux:*:*)
       
   935 	echo hppa64-unknown-linux-gnu
   953 	exit ;;
   936 	exit ;;
   954     parisc:Linux:*:* | hppa:Linux:*:*)
   937     parisc:Linux:*:* | hppa:Linux:*:*)
   955 	# Look for CPU level
   938 	# Look for CPU level
   956 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   939 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   957 	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   940 	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   958 	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   941 	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   959 	  *)    echo hppa-unknown-linux-gnu ;;
   942 	  *)    echo hppa-unknown-linux-gnu ;;
   960 	esac
   943 	esac
   961 	exit ;;
   944 	exit ;;
   962     parisc64:Linux:*:* | hppa64:Linux:*:*)
   945     ppc64:Linux:*:*)
   963 	echo hppa64-unknown-linux-gnu
   946 	echo powerpc64-unknown-linux-gnu
       
   947 	exit ;;
       
   948     ppc:Linux:*:*)
       
   949 	echo powerpc-unknown-linux-gnu
   964 	exit ;;
   950 	exit ;;
   965     s390:Linux:*:* | s390x:Linux:*:*)
   951     s390:Linux:*:* | s390x:Linux:*:*)
   966 	echo ${UNAME_MACHINE}-ibm-linux
   952 	echo ${UNAME_MACHINE}-ibm-linux
   967 	exit ;;
   953 	exit ;;
   968     sh64*:Linux:*:*)
   954     sh64*:Linux:*:*)
   981 	echo x86_64-unknown-linux-gnu
   967 	echo x86_64-unknown-linux-gnu
   982 	exit ;;
   968 	exit ;;
   983     xtensa*:Linux:*:*)
   969     xtensa*:Linux:*:*)
   984     	echo ${UNAME_MACHINE}-unknown-linux-gnu
   970     	echo ${UNAME_MACHINE}-unknown-linux-gnu
   985 	exit ;;
   971 	exit ;;
   986     i*86:Linux:*:*)
       
   987 	# The BFD linker knows what the default object file format is, so
       
   988 	# first see if it will tell us. cd to the root directory to prevent
       
   989 	# problems with other programs or directories called `ld' in the path.
       
   990 	# Set LC_ALL=C to ensure ld outputs messages in English.
       
   991 	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
       
   992 			 | sed -ne '/supported targets:/!d
       
   993 				    s/[ 	][ 	]*/ /g
       
   994 				    s/.*supported targets: *//
       
   995 				    s/ .*//
       
   996 				    p'`
       
   997         case "$ld_supported_targets" in
       
   998 	  elf32-i386)
       
   999 		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
       
  1000 		;;
       
  1001 	  a.out-i386-linux)
       
  1002 		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
       
  1003 		exit ;;
       
  1004 	  "")
       
  1005 		# Either a pre-BFD a.out linker (linux-gnuoldld) or
       
  1006 		# one that does not give us useful --help.
       
  1007 		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
       
  1008 		exit ;;
       
  1009 	esac
       
  1010 	# Determine whether the default compiler is a.out or elf
       
  1011 	eval $set_cc_for_build
       
  1012 	sed 's/^	//' << EOF >$dummy.c
       
  1013 	#include <features.h>
       
  1014 	#ifdef __ELF__
       
  1015 	# ifdef __GLIBC__
       
  1016 	#  if __GLIBC__ >= 2
       
  1017 	LIBC=gnu
       
  1018 	#  else
       
  1019 	LIBC=gnulibc1
       
  1020 	#  endif
       
  1021 	# else
       
  1022 	LIBC=gnulibc1
       
  1023 	# endif
       
  1024 	#else
       
  1025 	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
       
  1026 	LIBC=gnu
       
  1027 	#else
       
  1028 	LIBC=gnuaout
       
  1029 	#endif
       
  1030 	#endif
       
  1031 	#ifdef __dietlibc__
       
  1032 	LIBC=dietlibc
       
  1033 	#endif
       
  1034 EOF
       
  1035 	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
       
  1036 	    /^LIBC/{
       
  1037 		s: ::g
       
  1038 		p
       
  1039 	    }'`"
       
  1040 	test x"${LIBC}" != x && {
       
  1041 		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
       
  1042 		exit
       
  1043 	}
       
  1044 	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
       
  1045 	;;
       
  1046     i*86:DYNIX/ptx:4*:*)
   972     i*86:DYNIX/ptx:4*:*)
  1047 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   973 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  1048 	# earlier versions are messed up and put the nodename in both
   974 	# earlier versions are messed up and put the nodename in both
  1049 	# sysname and nodename.
   975 	# sysname and nodename.
  1050 	echo i386-sequent-sysv4
   976 	echo i386-sequent-sysv4
  1069 	echo ${UNAME_MACHINE}-unknown-atheos
   995 	echo ${UNAME_MACHINE}-unknown-atheos
  1070 	exit ;;
   996 	exit ;;
  1071     i*86:syllable:*:*)
   997     i*86:syllable:*:*)
  1072 	echo ${UNAME_MACHINE}-pc-syllable
   998 	echo ${UNAME_MACHINE}-pc-syllable
  1073 	exit ;;
   999 	exit ;;
  1074     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  1000     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  1075 	echo i386-unknown-lynxos${UNAME_RELEASE}
  1001 	echo i386-unknown-lynxos${UNAME_RELEASE}
  1076 	exit ;;
  1002 	exit ;;
  1077     i*86:*DOS:*:*)
  1003     i*86:*DOS:*:*)
  1078 	echo ${UNAME_MACHINE}-pc-msdosdjgpp
  1004 	echo ${UNAME_MACHINE}-pc-msdosdjgpp
  1079 	exit ;;
  1005 	exit ;;
  1113 	fi
  1039 	fi
  1114 	exit ;;
  1040 	exit ;;
  1115     pc:*:*:*)
  1041     pc:*:*:*)
  1116 	# Left here for compatibility:
  1042 	# Left here for compatibility:
  1117         # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1043         # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1118         # the processor, so we play safe by assuming i386.
  1044         # the processor, so we play safe by assuming i586.
  1119 	echo i386-pc-msdosdjgpp
  1045 	# Note: whatever this is, it MUST be the same as what config.sub
       
  1046 	# prints for the "djgpp" host, or else GDB configury will decide that
       
  1047 	# this is a cross-build.
       
  1048 	echo i586-pc-msdosdjgpp
  1120         exit ;;
  1049         exit ;;
  1121     Intel:Mach:3*:*)
  1050     Intel:Mach:3*:*)
  1122 	echo i386-pc-mach3
  1051 	echo i386-pc-mach3
  1123 	exit ;;
  1052 	exit ;;
  1124     paragon:*:*:*)
  1053     paragon:*:*:*)
  1174 	echo sparc-unknown-lynxos${UNAME_RELEASE}
  1103 	echo sparc-unknown-lynxos${UNAME_RELEASE}
  1175 	exit ;;
  1104 	exit ;;
  1176     rs6000:LynxOS:2.*:*)
  1105     rs6000:LynxOS:2.*:*)
  1177 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1106 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1178 	exit ;;
  1107 	exit ;;
  1179     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1108     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  1180 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1109 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1181 	exit ;;
  1110 	exit ;;
  1182     SM[BE]S:UNIX_SV:*:*)
  1111     SM[BE]S:UNIX_SV:*:*)
  1183 	echo mips-dde-sysv${UNAME_RELEASE}
  1112 	echo mips-dde-sysv${UNAME_RELEASE}
  1184 	exit ;;
  1113 	exit ;;
  1267 	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1196 	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1268 	exit ;;
  1197 	exit ;;
  1269     *:Darwin:*:*)
  1198     *:Darwin:*:*)
  1270 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1199 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1271 	case $UNAME_PROCESSOR in
  1200 	case $UNAME_PROCESSOR in
       
  1201 	    i386)
       
  1202 		eval $set_cc_for_build
       
  1203 		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
       
  1204 		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
       
  1205 		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
       
  1206 		      grep IS_64BIT_ARCH >/dev/null
       
  1207 		  then
       
  1208 		      UNAME_PROCESSOR="x86_64"
       
  1209 		  fi
       
  1210 		fi ;;
  1272 	    unknown) UNAME_PROCESSOR=powerpc ;;
  1211 	    unknown) UNAME_PROCESSOR=powerpc ;;
  1273 	esac
  1212 	esac
  1274 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1213 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1275 	exit ;;
  1214 	exit ;;
  1276     *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1215     *:procnto*:*:* | *:QNX:[0123456789]*:*)