*** empty log message ***
authorSam Lantinga <slouken@lokigames.com>
Wed, 17 Jan 2001 17:17:51 +0000
changeset 163f4734b3c97e
parent 15 c603c1131b2f
child 17 831ec54e9be9
*** empty log message ***
config.guess
config.sub
     1.1 --- a/config.guess	Mon Dec 18 10:47:12 2000 +0000
     1.2 +++ b/config.guess	Wed Jan 17 17:17:51 2001 +0000
     1.3 @@ -1,9 +1,9 @@
     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, 2000
     1.7 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     1.8  #   Free Software Foundation, Inc.
     1.9  
    1.10 -version='2000-07-27'
    1.11 +timestamp='2001-01-17'
    1.12  
    1.13  # This file is free software; you can redistribute it and/or modify it
    1.14  # under the terms of the GNU General Public License as published by
    1.15 @@ -32,7 +32,7 @@
    1.16  # exits with 0.  Otherwise, it exits with 1.
    1.17  #
    1.18  # The plan is that this can be called by configure scripts if you
    1.19 -# don't specify an explicit system type (host/target name).
    1.20 +# don't specify an explicit build system type.
    1.21  #
    1.22  # Only a few systems have been added to this list; please add others
    1.23  # (but try to keep the structure clean).
    1.24 @@ -43,19 +43,34 @@
    1.25  usage="\
    1.26  Usage: $0 [OPTION]
    1.27  
    1.28 -Output the configuration name of this system.
    1.29 +Output the configuration name of the system \`$me' is run on.
    1.30  
    1.31  Operation modes:
    1.32 -  -h, --help               print this help, then exit
    1.33 -  -V, --version            print version number, then exit"
    1.34 +  -h, --help         print this help, then exit
    1.35 +  -t, --time-stamp   print date of last modification, then exit
    1.36 +  -v, --version      print version number, then exit
    1.37 +
    1.38 +Report bugs and patches to <config-patches@gnu.org>."
    1.39 +
    1.40 +version="\
    1.41 +GNU config.guess ($timestamp)
    1.42 +
    1.43 +Originally written by Per Bothner.
    1.44 +Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
    1.45 +Free Software Foundation, Inc.
    1.46 +
    1.47 +This is free software; see the source for copying conditions.  There is NO
    1.48 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.49  
    1.50  help="
    1.51  Try \`$me --help' for more information."
    1.52  
    1.53  # Parse command line
    1.54  while test $# -gt 0 ; do
    1.55 -  case "$1" in
    1.56 -    --version | --vers* | -V )
    1.57 +  case $1 in
    1.58 +    --time-stamp | --time* | -t )
    1.59 +       echo "$timestamp" ; exit 0 ;;
    1.60 +    --version | -v )
    1.61         echo "$version" ; exit 0 ;;
    1.62      --help | --h* | -h )
    1.63         echo "$usage"; exit 0 ;;
    1.64 @@ -64,9 +79,7 @@
    1.65      - )	# Use stdin as input.
    1.66         break ;;
    1.67      -* )
    1.68 -       exec >&2
    1.69 -       echo "$me: invalid option $1"
    1.70 -       echo "$help"
    1.71 +       echo "$me: invalid option $1$help" >&2
    1.72         exit 1 ;;
    1.73      * )
    1.74         break ;;
    1.75 @@ -78,19 +91,30 @@
    1.76    exit 1
    1.77  fi
    1.78  
    1.79 -# Use $HOST_CC if defined. $CC may point to a cross-compiler
    1.80 -if test x"$CC_FOR_BUILD" = x; then
    1.81 -  if test x"$HOST_CC" != x; then
    1.82 -    CC_FOR_BUILD="$HOST_CC"
    1.83 -  else
    1.84 -    if test x"$CC" != x; then
    1.85 -      CC_FOR_BUILD="$CC"
    1.86 -    else
    1.87 -      CC_FOR_BUILD=cc
    1.88 -    fi
    1.89 -  fi
    1.90 -fi
    1.91  
    1.92 +dummy=dummy-$$
    1.93 +trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
    1.94 +
    1.95 +# CC_FOR_BUILD -- compiler used by this script.
    1.96 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    1.97 +# use `HOST_CC' if defined, but it is deprecated.
    1.98 +
    1.99 +case $CC_FOR_BUILD,$HOST_CC,$CC in
   1.100 + ,,)    echo "int dummy(){}" > $dummy.c
   1.101 +	for c in cc gcc c89 ; do
   1.102 +	  ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
   1.103 +	  if test $? = 0 ; then
   1.104 +	     CC_FOR_BUILD="$c"; break
   1.105 +	  fi
   1.106 +	done
   1.107 +	rm -f $dummy.c $dummy.o $dummy.rel
   1.108 +	if test x"$CC_FOR_BUILD" = x ; then
   1.109 +	  CC_FOR_BUILD=no_compiler_found
   1.110 +	fi
   1.111 +	;;
   1.112 + ,,*)   CC_FOR_BUILD=$CC ;;
   1.113 + ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
   1.114 +esac
   1.115  
   1.116  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
   1.117  # (ghazi@noc.rutgers.edu 8/24/94.)
   1.118 @@ -100,12 +124,9 @@
   1.119  
   1.120  UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
   1.121  UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   1.122 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
   1.123 +UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
   1.124  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
   1.125  
   1.126 -dummy=dummy-$$
   1.127 -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
   1.128 -
   1.129  # Note: order is significant - the case branches are not exclusive.
   1.130  
   1.131  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   1.132 @@ -129,16 +150,24 @@
   1.133  	    ibmrt|romp-ibm) machine=romp-ibm ;;
   1.134  	    *) machine=${UNAME_MACHINE}-unknown ;;
   1.135  	esac
   1.136 -	# The Operating System including object format.
   1.137 -	if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   1.138 -		| grep __ELF__ >/dev/null
   1.139 -	then
   1.140 -	    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   1.141 -	    # Return netbsd for either.  FIX?
   1.142 -	    os=netbsd
   1.143 -	else
   1.144 -	    os=netbsdelf
   1.145 -	fi
   1.146 +	# The Operating System including object format, if it has switched
   1.147 +	# to ELF recently, or will in the future.
   1.148 +	case "${UNAME_MACHINE}" in
   1.149 +	    i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
   1.150 +		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   1.151 +			| grep __ELF__ >/dev/null
   1.152 +		then
   1.153 +		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   1.154 +		    # Return netbsd for either.  FIX?
   1.155 +		    os=netbsd
   1.156 +		else
   1.157 +		    os=netbsdelf
   1.158 +		fi
   1.159 +		;;
   1.160 +	    *)
   1.161 +	        os=netbsd
   1.162 +		;;
   1.163 +	esac
   1.164  	# The OS release
   1.165  	release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   1.166  	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
   1.167 @@ -247,7 +276,7 @@
   1.168      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   1.169  	echo arm-acorn-riscix${UNAME_RELEASE}
   1.170  	exit 0;;
   1.171 -    SR2?01:HI-UX/MPP:*:*)
   1.172 +    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   1.173  	echo hppa1.1-hitachi-hiuxmpp
   1.174  	exit 0;;
   1.175      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   1.176 @@ -473,6 +502,19 @@
   1.177  	fi
   1.178  	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   1.179  	exit 0 ;;
   1.180 +    *:AIX:*:5)
   1.181 +	case "`lsattr -El proc0 -a type -F value`" in
   1.182 +	    PowerPC*) IBM_ARCH=powerpc
   1.183 +		      IBM_MANUF=ibm ;;
   1.184 +	    Itanium)  IBM_ARCH=ia64
   1.185 +		      IBM_MANUF=unknown ;;
   1.186 +	    POWER*)   IBM_ARCH=power
   1.187 +		      IBM_MANUF=ibm ;;
   1.188 +	    *)        IBM_ARCH=powerpc
   1.189 +		      IBM_MANUF=ibm ;;
   1.190 +	esac
   1.191 +	echo ${IBM_ARCH}-${IBM_MANUF}-aix${UNAME_VERSION}.${UNAME_RELEASE}
   1.192 +	exit 0 ;;
   1.193      *:AIX:*:*)
   1.194  	echo rs6000-ibm-aix
   1.195  	exit 0 ;;
   1.196 @@ -495,10 +537,28 @@
   1.197  	echo m68k-hp-bsd4.4
   1.198  	exit 0 ;;
   1.199      9000/[34678]??:HP-UX:*:*)
   1.200 +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.201  	case "${UNAME_MACHINE}" in
   1.202  	    9000/31? )            HP_ARCH=m68000 ;;
   1.203  	    9000/[34]?? )         HP_ARCH=m68k ;;
   1.204  	    9000/[678][0-9][0-9])
   1.205 +              case "${HPUX_REV}" in
   1.206 +                11.[0-9][0-9])
   1.207 +                  if [ -x /usr/bin/getconf ]; then
   1.208 +                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
   1.209 +                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
   1.210 +                    case "${sc_cpu_version}" in
   1.211 +                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
   1.212 +                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
   1.213 +                      532)                      # CPU_PA_RISC2_0
   1.214 +                        case "${sc_kernel_bits}" in
   1.215 +                          32) HP_ARCH="hppa2.0n" ;;
   1.216 +                          64) HP_ARCH="hppa2.0w" ;;
   1.217 +                        esac ;;
   1.218 +                    esac
   1.219 +                  fi ;;
   1.220 +              esac
   1.221 +              if [ "${HP_ARCH}" = "" ]; then
   1.222                sed 's/^              //' << EOF >$dummy.c
   1.223  
   1.224                #define _HPUX_SOURCE
   1.225 @@ -533,10 +593,15 @@
   1.226                }
   1.227  EOF
   1.228  	(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
   1.229 +	if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
   1.230  	rm -f $dummy.c $dummy
   1.231 +	fi ;;
   1.232  	esac
   1.233 +	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   1.234 +	exit 0 ;;
   1.235 +    ia64:HP-UX:*:*)
   1.236  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   1.237 -	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   1.238 +	echo ia64-hp-hpux${HPUX_REV}
   1.239  	exit 0 ;;
   1.240      3050*:HI-UX:*:*)
   1.241  	sed 's/^	//' << EOF >$dummy.c
   1.242 @@ -628,8 +693,11 @@
   1.243      CRAY*TS:*:*:*)
   1.244  	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.245  	exit 0 ;;
   1.246 +    CRAY*T3D:*:*:*)
   1.247 +	echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.248 +	exit 0 ;;
   1.249      CRAY*T3E:*:*:*)
   1.250 -	echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.251 +	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.252  	exit 0 ;;
   1.253      CRAY*SV1:*:*:*)
   1.254  	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   1.255 @@ -637,14 +705,12 @@
   1.256      CRAY-2:*:*:*)
   1.257  	echo cray2-cray-unicos
   1.258          exit 0 ;;
   1.259 -    F300:UNIX_System_V:*:*)
   1.260 +    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   1.261 +	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   1.262          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   1.263          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   1.264 -        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.265 +        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   1.266          exit 0 ;;
   1.267 -    F301:UNIX_System_V:*:*)
   1.268 -       echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
   1.269 -       exit 0 ;;
   1.270      hp300:OpenBSD:*:*)
   1.271  	echo m68k-unknown-openbsd${UNAME_RELEASE}
   1.272  	exit 0 ;;
   1.273 @@ -669,6 +735,9 @@
   1.274      i*:MINGW*:*)
   1.275  	echo ${UNAME_MACHINE}-pc-mingw32
   1.276  	exit 0 ;;
   1.277 +    i*:PW*:*)
   1.278 +	echo ${UNAME_MACHINE}-pc-pw32
   1.279 +	exit 0 ;;
   1.280      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   1.281  	# How do we know it's Interix rather than the generic POSIX subsystem?
   1.282  	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   1.283 @@ -695,8 +764,7 @@
   1.284  	# The BFD linker knows what the default object file format is, so
   1.285  	# first see if it will tell us. cd to the root directory to prevent
   1.286  	# problems with other programs or directories called `ld' in the path.
   1.287 -	ld_help_string=`cd /; ld --help 2>&1`
   1.288 -	ld_supported_emulations=`echo $ld_help_string \
   1.289 +	ld_supported_emulations=`cd /; ld --help 2>&1 \
   1.290  			 | sed -ne '/supported emulations:/!d
   1.291  				    s/[ 	][ 	]*/ /g
   1.292  				    s/.*supported emulations: *//
   1.293 @@ -722,6 +790,10 @@
   1.294  		echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
   1.295  		exit 0
   1.296  		;;
   1.297 +	  elf32_sparc)
   1.298 +		echo "${UNAME_MACHINE}-unknown-linux-gnu"
   1.299 +		exit 0
   1.300 +		;;
   1.301  	  armlinux)
   1.302  		echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
   1.303  		exit 0
   1.304 @@ -855,14 +927,30 @@
   1.305  	  rm -f $dummy.c $dummy
   1.306  	elif test "${UNAME_MACHINE}" = "s390"; then
   1.307  	  echo s390-ibm-linux && exit 0
   1.308 +	elif test "${UNAME_MACHINE}" = "x86_64"; then
   1.309 +	  echo x86_64-unknown-linux-gnu && exit 0
   1.310 +	elif test "${UNAME_MACHINE}" = "parisc" -o "${UNAME_MACHINE}" = "hppa"; then
   1.311 +	  # Look for CPU level
   1.312 +	  case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   1.313 +	    PA7*)
   1.314 +		echo hppa1.1-unknown-linux-gnu
   1.315 +		;;
   1.316 +	    PA8*)
   1.317 +		echo hppa2.0-unknown-linux-gnu
   1.318 +		;;
   1.319 +	    *)
   1.320 +		echo hppa-unknown-linux-gnu
   1.321 +		;;
   1.322 +	  esac
   1.323 +	  exit 0
   1.324  	else
   1.325  	  # Either a pre-BFD a.out linker (linux-gnuoldld)
   1.326  	  # or one that does not give us useful --help.
   1.327  	  # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
   1.328  	  # If ld does not provide *any* "supported emulations:"
   1.329  	  # that means it is gnuoldld.
   1.330 -	  echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
   1.331 -	  test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
   1.332 +	  test -z "$ld_supported_emulations" \
   1.333 +	    && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
   1.334  
   1.335  	  case "${UNAME_MACHINE}" in
   1.336  	  i?86)
   1.337 @@ -977,7 +1065,7 @@
   1.338  	exit 0 ;;
   1.339      M68*:*:R3V[567]*:*)
   1.340  	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
   1.341 -    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
   1.342 +    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
   1.343  	OS_REL=''
   1.344  	test -r /etc/.relid \
   1.345  	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
   1.346 @@ -1000,9 +1088,12 @@
   1.347      TSUNAMI:LynxOS:2.*:*)
   1.348  	echo sparc-unknown-lynxos${UNAME_RELEASE}
   1.349  	exit 0 ;;
   1.350 -    rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
   1.351 +    rs6000:LynxOS:2.*:*)
   1.352  	echo rs6000-unknown-lynxos${UNAME_RELEASE}
   1.353  	exit 0 ;;
   1.354 +    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:*)
   1.355 +	echo powerpc-unknown-lynxos${UNAME_RELEASE}
   1.356 +	exit 0 ;;
   1.357      SM[BE]S:UNIX_SV:*:*)
   1.358  	echo mips-dde-sysv${UNAME_RELEASE}
   1.359  	exit 0 ;;
   1.360 @@ -1036,7 +1127,7 @@
   1.361      mc68*:A/UX:*:*)
   1.362  	echo m68k-apple-aux${UNAME_RELEASE}
   1.363  	exit 0 ;;
   1.364 -    news*:NEWS-OS:*:6*)
   1.365 +    news*:NEWS-OS:6*:*)
   1.366  	echo mips-sony-newsos6
   1.367  	exit 0 ;;
   1.368      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
   1.369 @@ -1079,9 +1170,12 @@
   1.370      *:QNX:*:4*)
   1.371  	echo i386-pc-qnx
   1.372  	exit 0 ;;
   1.373 -    NSR-W:NONSTOP_KERNEL:*:*)
   1.374 +    NSR-[KW]:NONSTOP_KERNEL:*:*)
   1.375  	echo nsr-tandem-nsk${UNAME_RELEASE}
   1.376  	exit 0 ;;
   1.377 +    *:NonStop-UX:*:*)
   1.378 +	echo mips-compaq-nonstopux
   1.379 +	exit 0 ;;
   1.380      BS2000:POSIX*:*:*)
   1.381  	echo bs2000-siemens-sysv
   1.382  	exit 0 ;;
   1.383 @@ -1099,6 +1193,29 @@
   1.384  	fi
   1.385  	echo ${UNAME_MACHINE}-unknown-plan9
   1.386  	exit 0 ;;
   1.387 +    i?86:OS/2:*:*)
   1.388 +	# If we were able to find `uname', then EMX Unix compatibility
   1.389 +	# is probably installed.
   1.390 +	echo ${UNAME_MACHINE}-pc-os2-emx
   1.391 +	exit 0 ;;
   1.392 +    *:TOPS-10:*:*)
   1.393 +	echo pdp10-unknown-tops10
   1.394 +	exit 0 ;;
   1.395 +    *:TENEX:*:*)
   1.396 +	echo pdp10-unknown-tenex
   1.397 +	exit 0 ;;
   1.398 +    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
   1.399 +	echo pdp10-dec-tops20
   1.400 +	exit 0 ;;
   1.401 +    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
   1.402 +	echo pdp10-xkl-tops20
   1.403 +	exit 0 ;;
   1.404 +    *:TOPS-20:*:*)
   1.405 +	echo pdp10-unknown-tops20
   1.406 +	exit 0 ;;
   1.407 +    *:ITS:*:*)
   1.408 +	echo pdp10-unknown-its
   1.409 +	exit 0 ;;
   1.410  esac
   1.411  
   1.412  #echo '(No uname command or uname output not recognized.)' 1>&2
   1.413 @@ -1241,8 +1358,9 @@
   1.414  cat >&2 <<EOF
   1.415  $0: unable to guess system type
   1.416  
   1.417 -The $version version of this script cannot recognize your system type.
   1.418 -Please download the most up to date version of the config scripts:
   1.419 +This script, last modified $timestamp, has failed to recognize
   1.420 +the operating system you are using. It is advised that you
   1.421 +download the most up to date version of the config scripts from
   1.422  
   1.423      ftp://ftp.gnu.org/pub/gnu/config/
   1.424  
   1.425 @@ -1251,7 +1369,7 @@
   1.426  pertinent to <config-patches@gnu.org> in order to provide the needed
   1.427  information to handle your system.
   1.428  
   1.429 -config.guess version = $version
   1.430 +config.guess timestamp = $timestamp
   1.431  
   1.432  uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1.433  uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1.434 @@ -1278,7 +1396,7 @@
   1.435  
   1.436  # Local variables:
   1.437  # eval: (add-hook 'write-file-hooks 'time-stamp)
   1.438 -# time-stamp-start: "version='"
   1.439 +# time-stamp-start: "timestamp='"
   1.440  # time-stamp-format: "%:y-%02m-%02d"
   1.441  # time-stamp-end: "'"
   1.442  # End:
     2.1 --- a/config.sub	Mon Dec 18 10:47:12 2000 +0000
     2.2 +++ b/config.sub	Wed Jan 17 17:17:51 2001 +0000
     2.3 @@ -1,9 +1,9 @@
     2.4  #! /bin/sh
     2.5 -# Configuration validation subroutine script, version 1.1.
     2.6 -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
     2.7 +# Configuration validation subroutine script.
     2.8 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     2.9  #   Free Software Foundation, Inc.
    2.10  
    2.11 -version='2000-07-27'
    2.12 +timestamp='2001-01-12'
    2.13  
    2.14  # This file is (in principle) common to ALL GNU software.
    2.15  # The presence of a machine in this file suggests that SOME GNU software
    2.16 @@ -60,16 +60,30 @@
    2.17  Canonicalize a configuration name.
    2.18  
    2.19  Operation modes:
    2.20 -  -h, --help               print this help, then exit
    2.21 -  -V, --version            print version number, then exit"
    2.22 +  -h, --help         print this help, then exit
    2.23 +  -t, --time-stamp   print date of last modification, then exit
    2.24 +  -v, --version      print version number, then exit
    2.25 +
    2.26 +Report bugs and patches to <config-patches@gnu.org>."
    2.27 +
    2.28 +version="\
    2.29 +GNU config.sub ($timestamp)
    2.30 +
    2.31 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    2.32 +Free Software Foundation, Inc.
    2.33 +
    2.34 +This is free software; see the source for copying conditions.  There is NO
    2.35 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    2.36  
    2.37  help="
    2.38  Try \`$me --help' for more information."
    2.39  
    2.40  # Parse command line
    2.41  while test $# -gt 0 ; do
    2.42 -  case "$1" in
    2.43 -    --version | --vers* | -V )
    2.44 +  case $1 in
    2.45 +    --time-stamp | --time* | -t )
    2.46 +       echo "$timestamp" ; exit 0 ;;
    2.47 +    --version | -v )
    2.48         echo "$version" ; exit 0 ;;
    2.49      --help | --h* | -h )
    2.50         echo "$usage"; exit 0 ;;
    2.51 @@ -78,9 +92,7 @@
    2.52      - )	# Use stdin as input.
    2.53         break ;;
    2.54      -* )
    2.55 -       exec >&2
    2.56 -       echo "$me: invalid option $1"
    2.57 -       echo "$help"
    2.58 +       echo "$me: invalid option $1$help"
    2.59         exit 1 ;;
    2.60  
    2.61      *local*)
    2.62 @@ -105,7 +117,7 @@
    2.63  # Here we must recognize all the valid KERNEL-OS combinations.
    2.64  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    2.65  case $maybe_os in
    2.66 -  nto-qnx* | linux-gnu*)
    2.67 +  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
    2.68      os=-$maybe_os
    2.69      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    2.70      ;;
    2.71 @@ -203,22 +215,24 @@
    2.72  case $basic_machine in
    2.73  	# Recognize the basic CPU types without company name.
    2.74  	# Some are omitted here because they have special meanings below.
    2.75 -	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
    2.76 -		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
    2.77 +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
    2.78 +	        | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
    2.79 +		| pyramid | mn10200 | mn10300 | tron | a29k \
    2.80  		| 580 | i960 | h8300 \
    2.81 -		| x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
    2.82 +		| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
    2.83  		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
    2.84  		| hppa64 \
    2.85  		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
    2.86  		| alphaev6[78] \
    2.87  		| we32k | ns16k | clipper | i370 | sh | sh[34] \
    2.88  		| powerpc | powerpcle \
    2.89 -		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
    2.90 +		| 1750a | dsp16xx | pdp10 | pdp11 \
    2.91 +		| mips16 | mips64 | mipsel | mips64el \
    2.92  		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
    2.93  		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
    2.94  		| mips64vr5000 | miprs64vr5000el | mcore \
    2.95  		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
    2.96 -		| thumb | d10v | d30v | fr30 | avr)
    2.97 +		| thumb | d10v | d30v | fr30 | avr | openrisc)
    2.98  		basic_machine=$basic_machine-unknown
    2.99  		;;
   2.100  	m6811 | m68hc11 | m6812 | m68hc12)
   2.101 @@ -232,7 +246,7 @@
   2.102  	# We use `pc' rather than `unknown'
   2.103  	# because (1) that's what they normally are, and
   2.104  	# (2) the word "unknown" tends to confuse beginning users.
   2.105 -	i[234567]86)
   2.106 +	i[234567]86 | x86_64)
   2.107  	  basic_machine=$basic_machine-pc
   2.108  	  ;;
   2.109  	# Object if more than one company name word.
   2.110 @@ -243,26 +257,27 @@
   2.111  	# Recognize the basic CPU types with company name.
   2.112  	# FIXME: clean up the formatting here.
   2.113  	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   2.114 -	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   2.115 +	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
   2.116 +	      | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
   2.117  	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   2.118  	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   2.119  	      | xmp-* | ymp-* \
   2.120 -	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
   2.121 +	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
   2.122  	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   2.123  	      | hppa2.0n-* | hppa64-* \
   2.124  	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   2.125  	      | alphaev6[78]-* \
   2.126  	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   2.127  	      | clipper-* | orion-* \
   2.128 -	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   2.129 +	      | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   2.130  	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   2.131  	      | mips64el-* | mips64orion-* | mips64orionel-* \
   2.132  	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   2.133  	      | mipstx39-* | mipstx39el-* | mcore-* \
   2.134 -	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
   2.135 +	      | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
   2.136  	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   2.137  	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
   2.138 -	      | bs2000-* | tic54x-* | c54x-*)
   2.139 +	      | bs2000-* | tic54x-* | c54x-* | x86_64-*)
   2.140  		;;
   2.141  	# Recognize the various machine names and aliases which stand
   2.142  	# for a CPU type and a company and sometimes even an OS.
   2.143 @@ -517,6 +532,10 @@
   2.144  		basic_machine=i386-unknown
   2.145  		os=-mingw32
   2.146  		;;
   2.147 +	i[34567]86-pw32 | pw32)
   2.148 +		basic_machine=i586-unknown
   2.149 +		os=-pw32
   2.150 +		;;
   2.151  	iris | iris4d)
   2.152  		basic_machine=mips-sgi
   2.153  		case $os in
   2.154 @@ -636,6 +655,10 @@
   2.155  		basic_machine=i960-intel
   2.156  		os=-mon960
   2.157  		;;
   2.158 +	nonstopux)
   2.159 +		basic_machine=mips-compaq
   2.160 +		os=-nonstopux
   2.161 +		;;
   2.162  	np1)
   2.163  		basic_machine=np1-gould
   2.164  		;;
   2.165 @@ -671,28 +694,28 @@
   2.166          pc532 | pc532-*)
   2.167  		basic_machine=ns32k-pc532
   2.168  		;;
   2.169 -	pentium | p5 | k5 | k6 | nexen)
   2.170 +	pentium | p5 | k5 | k6 | nexgen)
   2.171  		basic_machine=i586-pc
   2.172  		;;
   2.173  	pentiumpro | p6 | 6x86 | athlon)
   2.174  		basic_machine=i686-pc
   2.175  		;;
   2.176  	pentiumii | pentium2)
   2.177 -		basic_machine=i786-pc
   2.178 +		basic_machine=i686-pc
   2.179  		;;
   2.180 -	pentium-* | p5-* | k5-* | k6-* | nexen-*)
   2.181 +	pentium-* | p5-* | k5-* | k6-* | nexgen-*)
   2.182  		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.183  		;;
   2.184  	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   2.185  		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.186  		;;
   2.187  	pentiumii-* | pentium2-*)
   2.188 -		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.189 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   2.190  		;;
   2.191  	pn)
   2.192  		basic_machine=pn-gould
   2.193  		;;
   2.194 -	power)	basic_machine=rs6000-ibm
   2.195 +	power)	basic_machine=power-ibm
   2.196  		;;
   2.197  	ppc)	basic_machine=powerpc-unknown
   2.198  	        ;;
   2.199 @@ -897,6 +920,10 @@
   2.200  	vax)
   2.201  		basic_machine=vax-dec
   2.202  		;;
   2.203 +	pdp10)
   2.204 +		# there are many clones, so DEC is not a safe bet
   2.205 +		basic_machine=pdp10-unknown
   2.206 +		;;
   2.207  	pdp11)
   2.208  		basic_machine=pdp11-dec
   2.209  		;;
   2.210 @@ -904,7 +931,7 @@
   2.211  		basic_machine=we32k-att
   2.212  		;;
   2.213  	sh3 | sh4)
   2.214 -		base_machine=sh-unknown
   2.215 +		basic_machine=sh-unknown
   2.216  		;;
   2.217  	sparc | sparcv9)
   2.218  		basic_machine=sparc-sun
   2.219 @@ -987,7 +1014,8 @@
   2.220  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   2.221  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
   2.222  	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
   2.223 -	      | -openstep* | -oskit*)
   2.224 +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
   2.225 +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
   2.226  	# Remember, each alternative MUST END IN *, to match a version number.
   2.227  		;;
   2.228  	-qnx*)
   2.229 @@ -1048,7 +1076,7 @@
   2.230  	-ns2 )
   2.231  	        os=-nextstep2
   2.232  		;;
   2.233 -	-nsk)
   2.234 +	-nsk*)
   2.235  		os=-nsk
   2.236  		;;
   2.237  	# Preserve the version number of sinix5.
   2.238 @@ -1085,7 +1113,7 @@
   2.239  	-xenix)
   2.240  		os=-xenix
   2.241  		;;
   2.242 -        -*mint | -*MiNT)
   2.243 +        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   2.244  	        os=-mint
   2.245  		;;
   2.246  	-none)
   2.247 @@ -1119,6 +1147,9 @@
   2.248  	arm*-semi)
   2.249  		os=-aout
   2.250  		;;
   2.251 +	pdp10-*)
   2.252 +		os=-tops20
   2.253 +		;;
   2.254          pdp11-*)
   2.255  		os=-none
   2.256  		;;
   2.257 @@ -1227,7 +1258,7 @@
   2.258  	*-masscomp)
   2.259  		os=-rtu
   2.260  		;;
   2.261 -	f301-fujitsu)
   2.262 +	f30[01]-fujitsu | f700-fujitsu)
   2.263  		os=-uxpv
   2.264  		;;
   2.265  	*-rom68k)
   2.266 @@ -1305,7 +1336,7 @@
   2.267  			-mpw* | -macos*)
   2.268  				vendor=apple
   2.269  				;;
   2.270 -			-*mint | -*MiNT)
   2.271 +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
   2.272  				vendor=atari
   2.273  				;;
   2.274  		esac
   2.275 @@ -1318,7 +1349,7 @@
   2.276  
   2.277  # Local variables:
   2.278  # eval: (add-hook 'write-file-hooks 'time-stamp)
   2.279 -# time-stamp-start: "version='"
   2.280 +# time-stamp-start: "timestamp='"
   2.281  # time-stamp-format: "%:y-%02m-%02d"
   2.282  # time-stamp-end: "'"
   2.283  # End: