summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess32
1 files changed, 27 insertions, 5 deletions
diff --git a/config.guess b/config.guess
index 500ee74b0..e8c6fc0c3 100755
--- a/config.guess
+++ b/config.guess
@@ -3,7 +3,7 @@
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 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 5
6timestamp='2003-10-03' 6timestamp='2004-01-05'
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
@@ -221,6 +221,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
221 mvmeppc:OpenBSD:*:*) 221 mvmeppc:OpenBSD:*:*)
222 echo powerpc-unknown-openbsd${UNAME_RELEASE} 222 echo powerpc-unknown-openbsd${UNAME_RELEASE}
223 exit 0 ;; 223 exit 0 ;;
224 pegasos:OpenBSD:*:*)
225 echo powerpc-unknown-openbsd${UNAME_RELEASE}
226 exit 0 ;;
224 pmax:OpenBSD:*:*) 227 pmax:OpenBSD:*:*)
225 echo mipsel-unknown-openbsd${UNAME_RELEASE} 228 echo mipsel-unknown-openbsd${UNAME_RELEASE}
226 exit 0 ;; 229 exit 0 ;;
@@ -307,6 +310,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
307 *:OS/390:*:*) 310 *:OS/390:*:*)
308 echo i370-ibm-openedition 311 echo i370-ibm-openedition
309 exit 0 ;; 312 exit 0 ;;
313 *:OS400:*:*)
314 echo powerpc-ibm-os400
315 exit 0 ;;
310 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 316 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311 echo arm-acorn-riscix${UNAME_RELEASE} 317 echo arm-acorn-riscix${UNAME_RELEASE}
312 exit 0;; 318 exit 0;;
@@ -742,6 +748,11 @@ EOF
742 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 748 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
743 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 749 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
744 exit 0 ;; 750 exit 0 ;;
751 5000:UNIX_System_V:4.*:*)
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
754 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
755 exit 0 ;;
745 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 756 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
746 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 757 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
747 exit 0 ;; 758 exit 0 ;;
@@ -751,7 +762,7 @@ EOF
751 *:BSD/OS:*:*) 762 *:BSD/OS:*:*)
752 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 763 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
753 exit 0 ;; 764 exit 0 ;;
754 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 765 *:FreeBSD:*:*)
755 # Determine whether the default compiler uses glibc. 766 # Determine whether the default compiler uses glibc.
756 eval $set_cc_for_build 767 eval $set_cc_for_build
757 sed 's/^ //' << EOF >$dummy.c 768 sed 's/^ //' << EOF >$dummy.c
@@ -763,7 +774,7 @@ EOF
763 #endif 774 #endif
764EOF 775EOF
765 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 776 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
766 # GNU/FreeBSD systems have a "k" prefix to indicate we are using 777 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
767 # FreeBSD's kernel, but not the complete OS. 778 # FreeBSD's kernel, but not the complete OS.
768 case ${LIBC} in gnu) kernel_only='k' ;; esac 779 case ${LIBC} in gnu) kernel_only='k' ;; esac
769 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 780 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
@@ -799,8 +810,13 @@ EOF
799 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 810 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
800 exit 0 ;; 811 exit 0 ;;
801 *:GNU:*:*) 812 *:GNU:*:*)
813 # the GNU system
802 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 814 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
803 exit 0 ;; 815 exit 0 ;;
816 *:GNU/*:*:*)
817 # other systems with GNU libc and userland
818 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
819 exit 0 ;;
804 i*86:Minix:*:*) 820 i*86:Minix:*:*)
805 echo ${UNAME_MACHINE}-pc-minix 821 echo ${UNAME_MACHINE}-pc-minix
806 exit 0 ;; 822 exit 0 ;;
@@ -981,6 +997,9 @@ EOF
981 i*86:atheos:*:*) 997 i*86:atheos:*:*)
982 echo ${UNAME_MACHINE}-unknown-atheos 998 echo ${UNAME_MACHINE}-unknown-atheos
983 exit 0 ;; 999 exit 0 ;;
1000 i*86:syllable:*:*)
1001 echo ${UNAME_MACHINE}-pc-syllable
1002 exit 0 ;;
984 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1003 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
985 echo i386-unknown-lynxos${UNAME_RELEASE} 1004 echo i386-unknown-lynxos${UNAME_RELEASE}
986 exit 0 ;; 1005 exit 0 ;;
@@ -1052,7 +1071,7 @@ EOF
1052 exit 0 ;; 1071 exit 0 ;;
1053 M68*:*:R3V[567]*:*) 1072 M68*:*:R3V[567]*:*)
1054 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1073 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1055 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 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) 1074 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)
1056 OS_REL='' 1075 OS_REL=''
1057 test -r /etc/.relid \ 1076 test -r /etc/.relid \
1058 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1077 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
@@ -1167,7 +1186,7 @@ EOF
1167 *:QNX:*:4*) 1186 *:QNX:*:4*)
1168 echo i386-pc-qnx 1187 echo i386-pc-qnx
1169 exit 0 ;; 1188 exit 0 ;;
1170 NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) 1189 NSR-?:NONSTOP_KERNEL:*:*)
1171 echo nsr-tandem-nsk${UNAME_RELEASE} 1190 echo nsr-tandem-nsk${UNAME_RELEASE}
1172 exit 0 ;; 1191 exit 0 ;;
1173 *:NonStop-UX:*:*) 1192 *:NonStop-UX:*:*)
@@ -1211,6 +1230,9 @@ EOF
1211 SEI:*:*:SEIUX) 1230 SEI:*:*:SEIUX)
1212 echo mips-sei-seiux${UNAME_RELEASE} 1231 echo mips-sei-seiux${UNAME_RELEASE}
1213 exit 0 ;; 1232 exit 0 ;;
1233 *:DRAGONFLY:*:*)
1234 echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
1235 exit 0 ;;
1214esac 1236esac
1215 1237
1216#echo '(No uname command or uname output not recognized.)' 1>&2 1238#echo '(No uname command or uname output not recognized.)' 1>&2