summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig.guess286
-rwxr-xr-xconfig.sub157
-rw-r--r--debian/changelog2
3 files changed, 274 insertions, 171 deletions
diff --git a/config.guess b/config.guess
index e8f206123..11271623b 100755
--- a/config.guess
+++ b/config.guess
@@ -1,9 +1,9 @@
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 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 5
6timestamp='2002-07-23' 6timestamp='2003-10-07'
7 7
8# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
@@ -98,30 +98,32 @@ trap 'exit 1' 1 2 15
98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
99# use `HOST_CC' if defined, but it is deprecated. 99# use `HOST_CC' if defined, but it is deprecated.
100 100
101# This shell variable is my proudest work .. or something. --bje 101# Portable tmp directory creation inspired by the Autoconf team.
102 102
103set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; 103set_cc_for_build='
104(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) 104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; 105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106dummy=$tmpdir/dummy ; 106: ${TMPDIR=/tmp} ;
107files="$dummy.c $dummy.o $dummy.rel $dummy" ; 107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; 108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
111dummy=$tmp/dummy ;
112tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in 113case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ; 114 ,,) echo "int x;" > $dummy.c ;
111 for c in cc gcc c89 c99 ; do 115 for c in cc gcc c89 c99 ; do
112 if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then 116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$c"; break ; 117 CC_FOR_BUILD="$c"; break ;
114 fi ; 118 fi ;
115 done ; 119 done ;
116 rm -f $files ;
117 if test x"$CC_FOR_BUILD" = x ; then 120 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found ; 121 CC_FOR_BUILD=no_compiler_found ;
119 fi 122 fi
120 ;; 123 ;;
121 ,,*) CC_FOR_BUILD=$CC ;; 124 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123esac ; 126esac ;'
124unset files'
125 127
126# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
127# (ghazi@noc.rutgers.edu 1994-08-24) 129# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -178,7 +180,18 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
178 ;; 180 ;;
179 esac 181 esac
180 # The OS release 182 # The OS release
181 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 183 # Debian GNU/NetBSD machines have a different userland, and
184 # thus, need a distinct triplet. However, they do not need
185 # kernel version information, so it can be replaced with a
186 # suitable tag, in the style of linux-gnu.
187 case "${UNAME_VERSION}" in
188 Debian*)
189 release='-gnu'
190 ;;
191 *)
192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
193 ;;
194 esac
182 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
183 # contains redundant information, the shorter form: 196 # contains redundant information, the shorter form:
184 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
@@ -227,68 +240,52 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
227 if test $UNAME_RELEASE = "V4.0"; then 240 if test $UNAME_RELEASE = "V4.0"; then
228 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 241 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
229 fi 242 fi
243 # According to Compaq, /usr/sbin/psrinfo has been available on
244 # OSF/1 and Tru64 systems produced since 1995. I hope that
245 # covers most systems running today. This code pipes the CPU
246 # types through head -n 1, so we only detect the type of CPU 0.
247 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
248 case "$ALPHA_CPU_TYPE" in
249 "EV4 (21064)")
250 UNAME_MACHINE="alpha" ;;
251 "EV4.5 (21064)")
252 UNAME_MACHINE="alpha" ;;
253 "LCA4 (21066/21068)")
254 UNAME_MACHINE="alpha" ;;
255 "EV5 (21164)")
256 UNAME_MACHINE="alphaev5" ;;
257 "EV5.6 (21164A)")
258 UNAME_MACHINE="alphaev56" ;;
259 "EV5.6 (21164PC)")
260 UNAME_MACHINE="alphapca56" ;;
261 "EV5.7 (21164PC)")
262 UNAME_MACHINE="alphapca57" ;;
263 "EV6 (21264)")
264 UNAME_MACHINE="alphaev6" ;;
265 "EV6.7 (21264A)")
266 UNAME_MACHINE="alphaev67" ;;
267 "EV6.8CB (21264C)")
268 UNAME_MACHINE="alphaev68" ;;
269 "EV6.8AL (21264B)")
270 UNAME_MACHINE="alphaev68" ;;
271 "EV6.8CX (21264D)")
272 UNAME_MACHINE="alphaev68" ;;
273 "EV6.9A (21264/EV69A)")
274 UNAME_MACHINE="alphaev69" ;;
275 "EV7 (21364)")
276 UNAME_MACHINE="alphaev7" ;;
277 "EV7.9 (21364A)")
278 UNAME_MACHINE="alphaev79" ;;
279 esac
230 # A Vn.n version is a released version. 280 # A Vn.n version is a released version.
231 # A Tn.n version is a released field test version. 281 # A Tn.n version is a released field test version.
232 # A Xn.n version is an unreleased experimental baselevel. 282 # A Xn.n version is an unreleased experimental baselevel.
233 # 1.2 uses "1.2" for uname -r. 283 # 1.2 uses "1.2" for uname -r.
234 eval $set_cc_for_build
235 cat <<EOF >$dummy.s
236 .data
237\$Lformat:
238 .byte 37,100,45,37,120,10,0 # "%d-%x\n"
239
240 .text
241 .globl main
242 .align 4
243 .ent main
244main:
245 .frame \$30,16,\$26,0
246 ldgp \$29,0(\$27)
247 .prologue 1
248 .long 0x47e03d80 # implver \$0
249 lda \$2,-1
250 .long 0x47e20c21 # amask \$2,\$1
251 lda \$16,\$Lformat
252 mov \$0,\$17
253 not \$1,\$18
254 jsr \$26,printf
255 ldgp \$29,0(\$26)
256 mov 0,\$16
257 jsr \$26,exit
258 .end main
259EOF
260 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
261 if test "$?" = 0 ; then
262 case `$dummy` in
263 0-0)
264 UNAME_MACHINE="alpha"
265 ;;
266 1-0)
267 UNAME_MACHINE="alphaev5"
268 ;;
269 1-1)
270 UNAME_MACHINE="alphaev56"
271 ;;
272 1-101)
273 UNAME_MACHINE="alphapca56"
274 ;;
275 2-303)
276 UNAME_MACHINE="alphaev6"
277 ;;
278 2-307)
279 UNAME_MACHINE="alphaev67"
280 ;;
281 2-1307)
282 UNAME_MACHINE="alphaev68"
283 ;;
284 3-1307)
285 UNAME_MACHINE="alphaev7"
286 ;;
287 esac
288 fi
289 rm -f $dummy.s $dummy && rmdir $tmpdir
290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 284 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
291 exit 0 ;; 285 exit 0 ;;
286 Alpha*:OpenVMS:*:*)
287 echo alpha-hp-vms
288 exit 0 ;;
292 Alpha\ *:Windows_NT*:*) 289 Alpha\ *:Windows_NT*:*)
293 # How do we know it's Interix rather than the generic POSIX subsystem? 290 # How do we know it's Interix rather than the generic POSIX subsystem?
294 # Should we change UNAME_MACHINE based on the output of uname instead 291 # Should we change UNAME_MACHINE based on the output of uname instead
@@ -327,6 +324,9 @@ EOF
327 NILE*:*:*:dcosx) 324 NILE*:*:*:dcosx)
328 echo pyramid-pyramid-svr4 325 echo pyramid-pyramid-svr4
329 exit 0 ;; 326 exit 0 ;;
327 DRS?6000:unix:4.0:6*)
328 echo sparc-icl-nx6
329 exit 0 ;;
330 DRS?6000:UNIX_SV:4.2*:7*) 330 DRS?6000:UNIX_SV:4.2*:7*)
331 case `/usr/bin/uname -p` in 331 case `/usr/bin/uname -p` in
332 sparc) echo sparc-icl-nx7 && exit 0 ;; 332 sparc) echo sparc-icl-nx7 && exit 0 ;;
@@ -437,16 +437,18 @@ EOF
437 exit (-1); 437 exit (-1);
438 } 438 }
439EOF 439EOF
440 $CC_FOR_BUILD $dummy.c -o $dummy \ 440 $CC_FOR_BUILD -o $dummy $dummy.c \
441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 442 && exit 0
443 rm -f $dummy.c $dummy && rmdir $tmpdir
444 echo mips-mips-riscos${UNAME_RELEASE} 443 echo mips-mips-riscos${UNAME_RELEASE}
445 exit 0 ;; 444 exit 0 ;;
446 Motorola:PowerMAX_OS:*:*) 445 Motorola:PowerMAX_OS:*:*)
447 echo powerpc-motorola-powermax 446 echo powerpc-motorola-powermax
448 exit 0 ;; 447 exit 0 ;;
449 Night_Hawk:*:*:PowerMAX_OS) 448 Motorola:*:4.3:PL8-*)
449 echo powerpc-harris-powermax
450 exit 0 ;;
451 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
450 echo powerpc-harris-powermax 452 echo powerpc-harris-powermax
451 exit 0 ;; 453 exit 0 ;;
452 Night_Hawk:Power_UNIX:*:*) 454 Night_Hawk:Power_UNIX:*:*)
@@ -521,8 +523,7 @@ EOF
521 exit(0); 523 exit(0);
522 } 524 }
523EOF 525EOF
524 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 526 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
525 rm -f $dummy.c $dummy && rmdir $tmpdir
526 echo rs6000-ibm-aix3.2.5 527 echo rs6000-ibm-aix3.2.5
527 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
528 echo rs6000-ibm-aix3.2.4 529 echo rs6000-ibm-aix3.2.4
@@ -620,11 +621,21 @@ EOF
620 exit (0); 621 exit (0);
621 } 622 }
622EOF 623EOF
623 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` 624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
624 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 625 test -z "$HP_ARCH" && HP_ARCH=hppa
625 rm -f $dummy.c $dummy && rmdir $tmpdir
626 fi ;; 626 fi ;;
627 esac 627 esac
628 if [ ${HP_ARCH} = "hppa2.0w" ]
629 then
630 # avoid double evaluation of $set_cc_for_build
631 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
632 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
633 then
634 HP_ARCH="hppa2.0w"
635 else
636 HP_ARCH="hppa64"
637 fi
638 fi
628 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 639 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
629 exit 0 ;; 640 exit 0 ;;
630 ia64:HP-UX:*:*) 641 ia64:HP-UX:*:*)
@@ -658,8 +669,7 @@ EOF
658 exit (0); 669 exit (0);
659 } 670 }
660EOF 671EOF
661 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 672 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
662 rm -f $dummy.c $dummy && rmdir $tmpdir
663 echo unknown-hitachi-hiuxwe2 673 echo unknown-hitachi-hiuxwe2
664 exit 0 ;; 674 exit 0 ;;
665 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 675 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
@@ -717,9 +727,6 @@ EOF
717 CRAY*TS:*:*:*) 727 CRAY*TS:*:*:*)
718 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 728 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
719 exit 0 ;; 729 exit 0 ;;
720 CRAY*T3D:*:*:*)
721 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
722 exit 0 ;;
723 CRAY*T3E:*:*:*) 730 CRAY*T3E:*:*:*)
724 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 731 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
725 exit 0 ;; 732 exit 0 ;;
@@ -727,7 +734,7 @@ EOF
727 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 734 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
728 exit 0 ;; 735 exit 0 ;;
729 *:UNICOS/mp:*:*) 736 *:UNICOS/mp:*:*)
730 echo nv1-cray-unicosmp | sed -e 's/\.[^.]*$/.X/' 737 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit 0 ;; 738 exit 0 ;;
732 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 739 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
733 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 740 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
@@ -756,8 +763,10 @@ EOF
756 #endif 763 #endif
757EOF 764EOF
758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 765 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
759 rm -f $dummy.c && rmdir $tmpdir 766 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
760 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 767 # FreeBSD's kernel, but not the complete OS.
768 case ${LIBC} in gnu) kernel_only='k' ;; esac
769 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
761 exit 0 ;; 770 exit 0 ;;
762 i*:CYGWIN*:*) 771 i*:CYGWIN*:*)
763 echo ${UNAME_MACHINE}-pc-cygwin 772 echo ${UNAME_MACHINE}-pc-cygwin
@@ -768,14 +777,17 @@ EOF
768 i*:PW*:*) 777 i*:PW*:*)
769 echo ${UNAME_MACHINE}-pc-pw32 778 echo ${UNAME_MACHINE}-pc-pw32
770 exit 0 ;; 779 exit 0 ;;
771 x86:Interix*:3*) 780 x86:Interix*:[34]*)
772 echo i386-pc-interix3 781 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
782 exit 0 ;;
783 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
784 echo i${UNAME_MACHINE}-pc-mks
773 exit 0 ;; 785 exit 0 ;;
774 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 786 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
775 # How do we know it's Interix rather than the generic POSIX subsystem? 787 # How do we know it's Interix rather than the generic POSIX subsystem?
776 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 788 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
777 # UNAME_MACHINE based on the output of uname instead of i386? 789 # UNAME_MACHINE based on the output of uname instead of i386?
778 echo i386-pc-interix 790 echo i586-pc-interix
779 exit 0 ;; 791 exit 0 ;;
780 i*:UWIN*:*) 792 i*:UWIN*:*)
781 echo ${UNAME_MACHINE}-pc-uwin 793 echo ${UNAME_MACHINE}-pc-uwin
@@ -787,14 +799,22 @@ EOF
787 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 799 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
788 exit 0 ;; 800 exit 0 ;;
789 *:GNU:*:*) 801 *:GNU:*:*)
802 # the GNU system
790 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 803 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
791 exit 0 ;; 804 exit 0 ;;
805 *:GNU/*:*:*)
806 # other systems with GNU libc and userland
807 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
808 exit 0 ;;
792 i*86:Minix:*:*) 809 i*86:Minix:*:*)
793 echo ${UNAME_MACHINE}-pc-minix 810 echo ${UNAME_MACHINE}-pc-minix
794 exit 0 ;; 811 exit 0 ;;
795 arm*:Linux:*:*) 812 arm*:Linux:*:*)
796 echo ${UNAME_MACHINE}-unknown-linux-gnu 813 echo ${UNAME_MACHINE}-unknown-linux-gnu
797 exit 0 ;; 814 exit 0 ;;
815 cris:Linux:*:*)
816 echo cris-axis-linux-gnu
817 exit 0 ;;
798 ia64:Linux:*:*) 818 ia64:Linux:*:*)
799 echo ${UNAME_MACHINE}-unknown-linux-gnu 819 echo ${UNAME_MACHINE}-unknown-linux-gnu
800 exit 0 ;; 820 exit 0 ;;
@@ -818,8 +838,26 @@ EOF
818 #endif 838 #endif
819EOF 839EOF
820 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 840 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
821 rm -f $dummy.c && rmdir $tmpdir 841 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
822 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 842 ;;
843 mips64:Linux:*:*)
844 eval $set_cc_for_build
845 sed 's/^ //' << EOF >$dummy.c
846 #undef CPU
847 #undef mips64
848 #undef mips64el
849 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
850 CPU=mips64el
851 #else
852 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
853 CPU=mips64
854 #else
855 CPU=
856 #endif
857 #endif
858EOF
859 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
860 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
823 ;; 861 ;;
824 ppc:Linux:*:*) 862 ppc:Linux:*:*)
825 echo powerpc-unknown-linux-gnu 863 echo powerpc-unknown-linux-gnu
@@ -855,6 +893,9 @@ EOF
855 s390:Linux:*:* | s390x:Linux:*:*) 893 s390:Linux:*:* | s390x:Linux:*:*)
856 echo ${UNAME_MACHINE}-ibm-linux 894 echo ${UNAME_MACHINE}-ibm-linux
857 exit 0 ;; 895 exit 0 ;;
896 sh64*:Linux:*:*)
897 echo ${UNAME_MACHINE}-unknown-linux-gnu
898 exit 0 ;;
858 sh*:Linux:*:*) 899 sh*:Linux:*:*)
859 echo ${UNAME_MACHINE}-unknown-linux-gnu 900 echo ${UNAME_MACHINE}-unknown-linux-gnu
860 exit 0 ;; 901 exit 0 ;;
@@ -912,9 +953,11 @@ EOF
912 LIBC=gnuaout 953 LIBC=gnuaout
913 #endif 954 #endif
914 #endif 955 #endif
956 #ifdef __dietlibc__
957 LIBC=dietlibc
958 #endif
915EOF 959EOF
916 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 960 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
917 rm -f $dummy.c && rmdir $tmpdir
918 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 961 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
919 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 962 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
920 ;; 963 ;;
@@ -932,6 +975,23 @@ EOF
932 # Use sysv4.2uw... so that sysv4* matches it. 975 # Use sysv4.2uw... so that sysv4* matches it.
933 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 976 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
934 exit 0 ;; 977 exit 0 ;;
978 i*86:OS/2:*:*)
979 # If we were able to find `uname', then EMX Unix compatibility
980 # is probably installed.
981 echo ${UNAME_MACHINE}-pc-os2-emx
982 exit 0 ;;
983 i*86:XTS-300:*:STOP)
984 echo ${UNAME_MACHINE}-unknown-stop
985 exit 0 ;;
986 i*86:atheos:*:*)
987 echo ${UNAME_MACHINE}-unknown-atheos
988 exit 0 ;;
989 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
990 echo i386-unknown-lynxos${UNAME_RELEASE}
991 exit 0 ;;
992 i*86:*DOS:*:*)
993 echo ${UNAME_MACHINE}-pc-msdosdjgpp
994 exit 0 ;;
935 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 995 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
936 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 996 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
937 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 997 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
@@ -966,9 +1026,6 @@ EOF
966 echo ${UNAME_MACHINE}-pc-sysv32 1026 echo ${UNAME_MACHINE}-pc-sysv32
967 fi 1027 fi
968 exit 0 ;; 1028 exit 0 ;;
969 i*86:*DOS:*:*)
970 echo ${UNAME_MACHINE}-pc-msdosdjgpp
971 exit 0 ;;
972 pc:*:*:*) 1029 pc:*:*:*)
973 # Left here for compatibility: 1030 # Left here for compatibility:
974 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1031 # uname -m prints for DJGPP always 'pc', but it prints nothing about
@@ -992,9 +1049,15 @@ EOF
992 # "miniframe" 1049 # "miniframe"
993 echo m68010-convergent-sysv 1050 echo m68010-convergent-sysv
994 exit 0 ;; 1051 exit 0 ;;
1052 mc68k:UNIX:SYSTEM5:3.51m)
1053 echo m68k-convergent-sysv
1054 exit 0 ;;
1055 M680?0:D-NIX:5.3:*)
1056 echo m68k-diab-dnix
1057 exit 0 ;;
995 M68*:*:R3V[567]*:*) 1058 M68*:*:R3V[567]*:*)
996 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1059 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
997 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) 1060 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
998 OS_REL='' 1061 OS_REL=''
999 test -r /etc/.relid \ 1062 test -r /etc/.relid \
1000 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1063 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
@@ -1011,9 +1074,6 @@ EOF
1011 mc68030:UNIX_System_V:4.*:*) 1074 mc68030:UNIX_System_V:4.*:*)
1012 echo m68k-atari-sysv4 1075 echo m68k-atari-sysv4
1013 exit 0 ;; 1076 exit 0 ;;
1014 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1015 echo i386-unknown-lynxos${UNAME_RELEASE}
1016 exit 0 ;;
1017 TSUNAMI:LynxOS:2.*:*) 1077 TSUNAMI:LynxOS:2.*:*)
1018 echo sparc-unknown-lynxos${UNAME_RELEASE} 1078 echo sparc-unknown-lynxos${UNAME_RELEASE}
1019 exit 0 ;; 1079 exit 0 ;;
@@ -1085,6 +1145,9 @@ EOF
1085 SX-5:SUPER-UX:*:*) 1145 SX-5:SUPER-UX:*:*)
1086 echo sx5-nec-superux${UNAME_RELEASE} 1146 echo sx5-nec-superux${UNAME_RELEASE}
1087 exit 0 ;; 1147 exit 0 ;;
1148 SX-6:SUPER-UX:*:*)
1149 echo sx6-nec-superux${UNAME_RELEASE}
1150 exit 0 ;;
1088 Power*:Rhapsody:*:*) 1151 Power*:Rhapsody:*:*)
1089 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1152 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1090 exit 0 ;; 1153 exit 0 ;;
@@ -1092,7 +1155,11 @@ EOF
1092 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1155 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1093 exit 0 ;; 1156 exit 0 ;;
1094 *:Darwin:*:*) 1157 *:Darwin:*:*)
1095 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1158 case `uname -p` in
1159 *86) UNAME_PROCESSOR=i686 ;;
1160 powerpc) UNAME_PROCESSOR=powerpc ;;
1161 esac
1162 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1096 exit 0 ;; 1163 exit 0 ;;
1097 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1164 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1098 UNAME_PROCESSOR=`uname -p` 1165 UNAME_PROCESSOR=`uname -p`
@@ -1105,7 +1172,7 @@ EOF
1105 *:QNX:*:4*) 1172 *:QNX:*:4*)
1106 echo i386-pc-qnx 1173 echo i386-pc-qnx
1107 exit 0 ;; 1174 exit 0 ;;
1108 NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) 1175 NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)
1109 echo nsr-tandem-nsk${UNAME_RELEASE} 1176 echo nsr-tandem-nsk${UNAME_RELEASE}
1110 exit 0 ;; 1177 exit 0 ;;
1111 *:NonStop-UX:*:*) 1178 *:NonStop-UX:*:*)
@@ -1128,11 +1195,6 @@ EOF
1128 fi 1195 fi
1129 echo ${UNAME_MACHINE}-unknown-plan9 1196 echo ${UNAME_MACHINE}-unknown-plan9
1130 exit 0 ;; 1197 exit 0 ;;
1131 i*86:OS/2:*:*)
1132 # If we were able to find `uname', then EMX Unix compatibility
1133 # is probably installed.
1134 echo ${UNAME_MACHINE}-pc-os2-emx
1135 exit 0 ;;
1136 *:TOPS-10:*:*) 1198 *:TOPS-10:*:*)
1137 echo pdp10-unknown-tops10 1199 echo pdp10-unknown-tops10
1138 exit 0 ;; 1200 exit 0 ;;
@@ -1151,11 +1213,8 @@ EOF
1151 *:ITS:*:*) 1213 *:ITS:*:*)
1152 echo pdp10-unknown-its 1214 echo pdp10-unknown-its
1153 exit 0 ;; 1215 exit 0 ;;
1154 i*86:XTS-300:*:STOP) 1216 SEI:*:*:SEIUX)
1155 echo ${UNAME_MACHINE}-unknown-stop 1217 echo mips-sei-seiux${UNAME_RELEASE}
1156 exit 0 ;;
1157 i*86:atheos:*:*)
1158 echo ${UNAME_MACHINE}-unknown-atheos
1159 exit 0 ;; 1218 exit 0 ;;
1160esac 1219esac
1161 1220
@@ -1277,8 +1336,7 @@ main ()
1277} 1336}
1278EOF 1337EOF
1279 1338
1280$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 1339$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1281rm -f $dummy.c $dummy && rmdir $tmpdir
1282 1340
1283# Apollos put the system type in the environment. 1341# Apollos put the system type in the environment.
1284 1342
diff --git a/config.sub b/config.sub
index a0b7bb9e8..79657cd18 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,9 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
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 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 5
6timestamp='2002-07-03' 6timestamp='2003-10-07'
7 7
8# This file is (in principle) common to ALL GNU software. 8# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 9# The presence of a machine in this file suggests that SOME GNU software
@@ -118,7 +118,7 @@ esac
118# Here we must recognize all the valid KERNEL-OS combinations. 118# Here we must recognize all the valid KERNEL-OS combinations.
119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120case $maybe_os in 120case $maybe_os in
121 nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os 122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;; 124 ;;
@@ -228,36 +228,42 @@ case $basic_machine in
228 | a29k \ 228 | a29k \
229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231 | am33_2.0 \
231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 232 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232 | c4x | clipper \ 233 | c4x | clipper \
233 | d10v | d30v | dlx | dsp16xx \ 234 | d10v | d30v | dlx | dsp16xx \
234 | fr30 | frv \ 235 | fr30 | frv \
235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 236 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236 | i370 | i860 | i960 | ia64 \ 237 | i370 | i860 | i960 | ia64 \
237 | ip2k \ 238 | ip2k | iq2000 \
238 | m32r | m68000 | m68k | m88k | mcore \ 239 | m32r | m68000 | m68k | m88k | mcore \
239 | mips | mipsbe | mipseb | mipsel | mipsle \ 240 | mips | mipsbe | mipseb | mipsel | mipsle \
240 | mips16 \ 241 | mips16 \
241 | mips64 | mips64el \ 242 | mips64 | mips64el \
243 | mips64vr | mips64vrel \
242 | mips64orion | mips64orionel \ 244 | mips64orion | mips64orionel \
243 | mips64vr4100 | mips64vr4100el \ 245 | mips64vr4100 | mips64vr4100el \
244 | mips64vr4300 | mips64vr4300el \ 246 | mips64vr4300 | mips64vr4300el \
245 | mips64vr5000 | mips64vr5000el \ 247 | mips64vr5000 | mips64vr5000el \
246 | mipsisa32 | mipsisa32el \ 248 | mipsisa32 | mipsisa32el \
249 | mipsisa32r2 | mipsisa32r2el \
247 | mipsisa64 | mipsisa64el \ 250 | mipsisa64 | mipsisa64el \
251 | mipsisa64r2 | mipsisa64r2el \
248 | mipsisa64sb1 | mipsisa64sb1el \ 252 | mipsisa64sb1 | mipsisa64sb1el \
253 | mipsisa64sr71k | mipsisa64sr71kel \
249 | mipstx39 | mipstx39el \ 254 | mipstx39 | mipstx39el \
250 | mn10200 | mn10300 \ 255 | mn10200 | mn10300 \
256 | msp430 \
251 | ns16k | ns32k \ 257 | ns16k | ns32k \
252 | openrisc | or32 \ 258 | openrisc | or32 \
253 | pdp10 | pdp11 | pj | pjl \ 259 | pdp10 | pdp11 | pj | pjl \
254 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 260 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
255 | pyramid \ 261 | pyramid \
256 | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 262 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
257 | sh64 | sh64le \ 263 | sh64 | sh64le \
258 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 264 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
259 | strongarm \ 265 | strongarm \
260 | tahoe | thumb | tic80 | tron \ 266 | tahoe | thumb | tic4x | tic80 | tron \
261 | v850 | v850e \ 267 | v850 | v850e \
262 | we32k \ 268 | we32k \
263 | x86 | xscale | xstormy16 | xtensa \ 269 | x86 | xscale | xstormy16 | xtensa \
@@ -292,7 +298,7 @@ case $basic_machine in
292 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 298 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
293 | avr-* \ 299 | avr-* \
294 | bs2000-* \ 300 | bs2000-* \
295 | c[123]* | c30-* | [cjt]90-* | c54x-* \ 301 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
296 | clipper-* | cydra-* \ 302 | clipper-* | cydra-* \
297 | d10v-* | d30v-* | dlx-* \ 303 | d10v-* | d30v-* | dlx-* \
298 | elxsi-* \ 304 | elxsi-* \
@@ -300,32 +306,39 @@ case $basic_machine in
300 | h8300-* | h8500-* \ 306 | h8300-* | h8500-* \
301 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 307 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
302 | i*86-* | i860-* | i960-* | ia64-* \ 308 | i*86-* | i860-* | i960-* | ia64-* \
303 | ip2k-* \ 309 | ip2k-* | iq2000-* \
304 | m32r-* \ 310 | m32r-* \
305 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 311 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
306 | m88110-* | m88k-* | mcore-* \ 312 | m88110-* | m88k-* | mcore-* \
307 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 313 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
308 | mips16-* \ 314 | mips16-* \
309 | mips64-* | mips64el-* \ 315 | mips64-* | mips64el-* \
316 | mips64vr-* | mips64vrel-* \
310 | mips64orion-* | mips64orionel-* \ 317 | mips64orion-* | mips64orionel-* \
311 | mips64vr4100-* | mips64vr4100el-* \ 318 | mips64vr4100-* | mips64vr4100el-* \
312 | mips64vr4300-* | mips64vr4300el-* \ 319 | mips64vr4300-* | mips64vr4300el-* \
313 | mips64vr5000-* | mips64vr5000el-* \ 320 | mips64vr5000-* | mips64vr5000el-* \
314 | mipsisa32-* | mipsisa32el-* \ 321 | mipsisa32-* | mipsisa32el-* \
322 | mipsisa32r2-* | mipsisa32r2el-* \
315 | mipsisa64-* | mipsisa64el-* \ 323 | mipsisa64-* | mipsisa64el-* \
324 | mipsisa64r2-* | mipsisa64r2el-* \
316 | mipsisa64sb1-* | mipsisa64sb1el-* \ 325 | mipsisa64sb1-* | mipsisa64sb1el-* \
317 | mipstx39 | mipstx39el \ 326 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
318 | none-* | np1-* | ns16k-* | ns32k-* | nv1-* \ 327 | mipstx39-* | mipstx39el-* \
328 | msp430-* \
329 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
319 | orion-* \ 330 | orion-* \
320 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 331 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
321 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 332 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
322 | pyramid-* \ 333 | pyramid-* \
323 | romp-* | rs6000-* \ 334 | romp-* | rs6000-* \
324 | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ 335 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
325 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 336 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
326 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 337 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
327 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 338 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
328 | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ 339 | tahoe-* | thumb-* \
340 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
341 | tron-* \
329 | v850-* | v850e-* | vax-* \ 342 | v850-* | v850e-* | vax-* \
330 | we32k-* \ 343 | we32k-* \
331 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 344 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
@@ -363,6 +376,9 @@ case $basic_machine in
363 basic_machine=a29k-none 376 basic_machine=a29k-none
364 os=-bsd 377 os=-bsd
365 ;; 378 ;;
379 amd64)
380 basic_machine=x86_64-pc
381 ;;
366 amdahl) 382 amdahl)
367 basic_machine=580-amdahl 383 basic_machine=580-amdahl
368 os=-sysv 384 os=-sysv
@@ -712,11 +728,12 @@ case $basic_machine in
712 np1) 728 np1)
713 basic_machine=np1-gould 729 basic_machine=np1-gould
714 ;; 730 ;;
715 nsr-tandem)
716 basic_machine=nsr-tandem
717 ;;
718 nv1) 731 nv1)
719 basic_machine=nv1-cray 732 basic_machine=nv1-cray
733 os=-unicosmp
734 ;;
735 nsr-tandem)
736 basic_machine=nsr-tandem
720 ;; 737 ;;
721 op50n-* | op60c-*) 738 op50n-* | op60c-*)
722 basic_machine=hppa1.1-oki 739 basic_machine=hppa1.1-oki
@@ -748,49 +765,55 @@ case $basic_machine in
748 pbb) 765 pbb)
749 basic_machine=m68k-tti 766 basic_machine=m68k-tti
750 ;; 767 ;;
751 pc532 | pc532-*) 768 pc532 | pc532-*)
752 basic_machine=ns32k-pc532 769 basic_machine=ns32k-pc532
753 ;; 770 ;;
754 pentium | p5 | k5 | k6 | nexgen | viac3) 771 pentium | p5 | k5 | k6 | nexgen | viac3)
755 basic_machine=i586-pc 772 basic_machine=i586-pc
756 ;; 773 ;;
757 pentiumpro | p6 | 6x86 | athlon) 774 pentiumpro | p6 | 6x86 | athlon | athlon_*)
758 basic_machine=i686-pc 775 basic_machine=i686-pc
759 ;; 776 ;;
760 pentiumii | pentium2) 777 pentiumii | pentium2 | pentiumiii | pentium3)
761 basic_machine=i686-pc 778 basic_machine=i686-pc
762 ;; 779 ;;
780 pentium4)
781 basic_machine=i786-pc
782 ;;
763 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 783 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
764 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 784 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
765 ;; 785 ;;
766 pentiumpro-* | p6-* | 6x86-* | athlon-*) 786 pentiumpro-* | p6-* | 6x86-* | athlon-*)
767 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 787 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
768 ;; 788 ;;
769 pentiumii-* | pentium2-*) 789 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
770 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 790 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
771 ;; 791 ;;
792 pentium4-*)
793 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
794 ;;
772 pn) 795 pn)
773 basic_machine=pn-gould 796 basic_machine=pn-gould
774 ;; 797 ;;
775 power) basic_machine=power-ibm 798 power) basic_machine=power-ibm
776 ;; 799 ;;
777 ppc) basic_machine=powerpc-unknown 800 ppc) basic_machine=powerpc-unknown
778 ;; 801 ;;
779 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 802 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
780 ;; 803 ;;
781 ppcle | powerpclittle | ppc-le | powerpc-little) 804 ppcle | powerpclittle | ppc-le | powerpc-little)
782 basic_machine=powerpcle-unknown 805 basic_machine=powerpcle-unknown
783 ;; 806 ;;
784 ppcle-* | powerpclittle-*) 807 ppcle-* | powerpclittle-*)
785 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 808 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
786 ;; 809 ;;
787 ppc64) basic_machine=powerpc64-unknown 810 ppc64) basic_machine=powerpc64-unknown
788 ;; 811 ;;
789 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 812 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
790 ;; 813 ;;
791 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 814 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
792 basic_machine=powerpc64le-unknown 815 basic_machine=powerpc64le-unknown
793 ;; 816 ;;
794 ppc64le-* | powerpc64little-*) 817 ppc64le-* | powerpc64little-*)
795 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 818 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
796 ;; 819 ;;
@@ -821,6 +844,16 @@ case $basic_machine in
821 basic_machine=a29k-amd 844 basic_machine=a29k-amd
822 os=-udi 845 os=-udi
823 ;; 846 ;;
847 sb1)
848 basic_machine=mipsisa64sb1-unknown
849 ;;
850 sb1el)
851 basic_machine=mipsisa64sb1el-unknown
852 ;;
853 sei)
854 basic_machine=mips-sei
855 os=-seiux
856 ;;
824 sequent) 857 sequent)
825 basic_machine=i386-sequent 858 basic_machine=i386-sequent
826 ;; 859 ;;
@@ -828,6 +861,9 @@ case $basic_machine in
828 basic_machine=sh-hitachi 861 basic_machine=sh-hitachi
829 os=-hms 862 os=-hms
830 ;; 863 ;;
864 sh64)
865 basic_machine=sh64-unknown
866 ;;
831 sparclite-wrs | simso-wrs) 867 sparclite-wrs | simso-wrs)
832 basic_machine=sparclite-wrs 868 basic_machine=sparclite-wrs
833 os=-vxworks 869 os=-vxworks
@@ -886,22 +922,14 @@ case $basic_machine in
886 sun386 | sun386i | roadrunner) 922 sun386 | sun386i | roadrunner)
887 basic_machine=i386-sun 923 basic_machine=i386-sun
888 ;; 924 ;;
889 sv1) 925 sv1)
890 basic_machine=sv1-cray 926 basic_machine=sv1-cray
891 os=-unicos 927 os=-unicos
892 ;; 928 ;;
893 sx*-nec)
894 basic_machine=sx6-nec
895 os=-sysv
896 ;;
897 symmetry) 929 symmetry)
898 basic_machine=i386-sequent 930 basic_machine=i386-sequent
899 os=-dynix 931 os=-dynix
900 ;; 932 ;;
901 t3d)
902 basic_machine=alpha-cray
903 os=-unicos
904 ;;
905 t3e) 933 t3e)
906 basic_machine=alphaev5-cray 934 basic_machine=alphaev5-cray
907 os=-unicos 935 os=-unicos
@@ -914,6 +942,14 @@ case $basic_machine in
914 basic_machine=tic54x-unknown 942 basic_machine=tic54x-unknown
915 os=-coff 943 os=-coff
916 ;; 944 ;;
945 tic55x | c55x*)
946 basic_machine=tic55x-unknown
947 os=-coff
948 ;;
949 tic6x | c6x*)
950 basic_machine=tic6x-unknown
951 os=-coff
952 ;;
917 tx39) 953 tx39)
918 basic_machine=mipstx39-unknown 954 basic_machine=mipstx39-unknown
919 ;; 955 ;;
@@ -948,8 +984,8 @@ case $basic_machine in
948 os=-vms 984 os=-vms
949 ;; 985 ;;
950 vpp*|vx|vx-*) 986 vpp*|vx|vx-*)
951 basic_machine=f301-fujitsu 987 basic_machine=f301-fujitsu
952 ;; 988 ;;
953 vxworks960) 989 vxworks960)
954 basic_machine=i960-wrs 990 basic_machine=i960-wrs
955 os=-vxworks 991 os=-vxworks
@@ -970,11 +1006,7 @@ case $basic_machine in
970 basic_machine=hppa1.1-winbond 1006 basic_machine=hppa1.1-winbond
971 os=-proelf 1007 os=-proelf
972 ;; 1008 ;;
973 windows32) 1009 xps | xps100)
974 basic_machine=i386-pc
975 os=-windows32-msvcrt
976 ;;
977 xps | xps100)
978 basic_machine=xps100-honeywell 1010 basic_machine=xps100-honeywell
979 ;; 1011 ;;
980 ymp) 1012 ymp)
@@ -1020,7 +1052,7 @@ case $basic_machine in
1020 we32k) 1052 we32k)
1021 basic_machine=we32k-att 1053 basic_machine=we32k-att
1022 ;; 1054 ;;
1023 sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) 1055 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1024 basic_machine=sh-unknown 1056 basic_machine=sh-unknown
1025 ;; 1057 ;;
1026 sh64) 1058 sh64)
@@ -1029,7 +1061,7 @@ case $basic_machine in
1029 sparc | sparcv9 | sparcv9b) 1061 sparc | sparcv9 | sparcv9b)
1030 basic_machine=sparc-sun 1062 basic_machine=sparc-sun
1031 ;; 1063 ;;
1032 cydra) 1064 cydra)
1033 basic_machine=cydra-cydrome 1065 basic_machine=cydra-cydrome
1034 ;; 1066 ;;
1035 orion) 1067 orion)
@@ -1044,10 +1076,6 @@ case $basic_machine in
1044 pmac | pmac-mpw) 1076 pmac | pmac-mpw)
1045 basic_machine=powerpc-apple 1077 basic_machine=powerpc-apple
1046 ;; 1078 ;;
1047 c4x*)
1048 basic_machine=c4x-none
1049 os=-coff
1050 ;;
1051 *-unknown) 1079 *-unknown)
1052 # Make sure to match an already-canonicalized machine name. 1080 # Make sure to match an already-canonicalized machine name.
1053 ;; 1081 ;;
@@ -1103,18 +1131,19 @@ case $os in
1103 | -aos* \ 1131 | -aos* \
1104 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1132 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1105 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1133 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1106 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1134 | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1107 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1135 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1108 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1136 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1109 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1137 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1110 | -chorusos* | -chorusrdb* \ 1138 | -chorusos* | -chorusrdb* \
1111 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1139 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1112 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1140 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1113 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1141 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1114 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1142 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1115 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1143 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1116 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1144 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1117 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) 1145 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1146 | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1118 # Remember, each alternative MUST END IN *, to match a version number. 1147 # Remember, each alternative MUST END IN *, to match a version number.
1119 ;; 1148 ;;
1120 -qnx*) 1149 -qnx*)
@@ -1126,8 +1155,10 @@ case $os in
1126 ;; 1155 ;;
1127 esac 1156 esac
1128 ;; 1157 ;;
1158 -nto-qnx*)
1159 ;;
1129 -nto*) 1160 -nto*)
1130 os=-nto-qnx 1161 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1131 ;; 1162 ;;
1132 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1163 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1133 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1164 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
@@ -1136,6 +1167,9 @@ case $os in
1136 -mac*) 1167 -mac*)
1137 os=`echo $os | sed -e 's|mac|macos|'` 1168 os=`echo $os | sed -e 's|mac|macos|'`
1138 ;; 1169 ;;
1170 -linux-dietlibc)
1171 os=-linux-dietlibc
1172 ;;
1139 -linux*) 1173 -linux*)
1140 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1174 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1141 ;; 1175 ;;
@@ -1179,7 +1213,7 @@ case $os in
1179 os=-rtmk-nova 1213 os=-rtmk-nova
1180 ;; 1214 ;;
1181 -ns2 ) 1215 -ns2 )
1182 os=-nextstep2 1216 os=-nextstep2
1183 ;; 1217 ;;
1184 -nsk*) 1218 -nsk*)
1185 os=-nsk 1219 os=-nsk
@@ -1218,8 +1252,14 @@ case $os in
1218 -xenix) 1252 -xenix)
1219 os=-xenix 1253 os=-xenix
1220 ;; 1254 ;;
1221 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1255 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1222 os=-mint 1256 os=-mint
1257 ;;
1258 -aros*)
1259 os=-aros
1260 ;;
1261 -kaos*)
1262 os=-kaos
1223 ;; 1263 ;;
1224 -none) 1264 -none)
1225 ;; 1265 ;;
@@ -1252,11 +1292,14 @@ case $basic_machine in
1252 arm*-semi) 1292 arm*-semi)
1253 os=-aout 1293 os=-aout
1254 ;; 1294 ;;
1295 c4x-* | tic4x-*)
1296 os=-coff
1297 ;;
1255 # This must come before the *-dec entry. 1298 # This must come before the *-dec entry.
1256 pdp10-*) 1299 pdp10-*)
1257 os=-tops20 1300 os=-tops20
1258 ;; 1301 ;;
1259 pdp11-*) 1302 pdp11-*)
1260 os=-none 1303 os=-none
1261 ;; 1304 ;;
1262 *-dec | vax-*) 1305 *-dec | vax-*)
@@ -1349,19 +1392,19 @@ case $basic_machine in
1349 *-next) 1392 *-next)
1350 os=-nextstep3 1393 os=-nextstep3
1351 ;; 1394 ;;
1352 *-gould) 1395 *-gould)
1353 os=-sysv 1396 os=-sysv
1354 ;; 1397 ;;
1355 *-highlevel) 1398 *-highlevel)
1356 os=-bsd 1399 os=-bsd
1357 ;; 1400 ;;
1358 *-encore) 1401 *-encore)
1359 os=-bsd 1402 os=-bsd
1360 ;; 1403 ;;
1361 *-sgi) 1404 *-sgi)
1362 os=-irix 1405 os=-irix
1363 ;; 1406 ;;
1364 *-siemens) 1407 *-siemens)
1365 os=-sysv4 1408 os=-sysv4
1366 ;; 1409 ;;
1367 *-masscomp) 1410 *-masscomp)
diff --git a/debian/changelog b/debian/changelog
index 68422beae..70523aeb9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ openssh (1:3.6.1p2-10) UNRELEASED; urgency=low
8 - Russian (thanks, Ilgiz Kalmetev). 8 - Russian (thanks, Ilgiz Kalmetev).
9 * Add Dutch debconf template translation (thanks, cobaco; 9 * Add Dutch debconf template translation (thanks, cobaco;
10 closes: #215372). 10 closes: #215372).
11 * Update config.guess and config.sub from autotools-dev 20031007.1
12 (closes: #217696).
11 13
12 -- Colin Watson <cjwatson@debian.org> Sat, 15 Nov 2003 14:07:29 +0000 14 -- Colin Watson <cjwatson@debian.org> Sat, 15 Nov 2003 14:07:29 +0000
13 15