3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2003-07-02' |
timestamp='2003-10-07' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# 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 |
# under the terms of the GNU General Public License as published by |
734 |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
735 |
exit 0 ;; |
exit 0 ;; |
736 |
*:UNICOS/mp:*:*) |
*:UNICOS/mp:*:*) |
737 |
echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
738 |
exit 0 ;; |
exit 0 ;; |
739 |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
740 |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
751 |
*:BSD/OS:*:*) |
*:BSD/OS:*:*) |
752 |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
753 |
exit 0 ;; |
exit 0 ;; |
754 |
*:FreeBSD:*:*|*:GNU/FreeBSD:*:*) |
*:FreeBSD:*:*) |
755 |
# Determine whether the default compiler uses glibc. |
# Determine whether the default compiler uses glibc. |
756 |
eval $set_cc_for_build |
eval $set_cc_for_build |
757 |
sed 's/^ //' << EOF >$dummy.c |
sed 's/^ //' << EOF >$dummy.c |
763 |
#endif |
#endif |
764 |
EOF |
EOF |
765 |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
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 |
# GNU/KFreeBSD systems have a "k" prefix to indicate we are using |
767 |
# FreeBSD's kernel, but not the complete OS. |
# FreeBSD's kernel, but not the complete OS. |
768 |
case ${LIBC} in gnu) kernel_only='k' ;; esac |
case ${LIBC} in gnu) kernel_only='k' ;; esac |
769 |
echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
799 |
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
800 |
exit 0 ;; |
exit 0 ;; |
801 |
*:GNU:*:*) |
*:GNU:*:*) |
802 |
|
# the GNU system |
803 |
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
804 |
exit 0 ;; |
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 ;; |
809 |
i*86:Minix:*:*) |
i*86:Minix:*:*) |
810 |
echo ${UNAME_MACHINE}-pc-minix |
echo ${UNAME_MACHINE}-pc-minix |
811 |
exit 0 ;; |
exit 0 ;; |
953 |
LIBC=gnuaout |
LIBC=gnuaout |
954 |
#endif |
#endif |
955 |
#endif |
#endif |
956 |
|
#ifdef __dietlibc__ |
957 |
|
LIBC=dietlibc |
958 |
|
#endif |
959 |
EOF |
EOF |
960 |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
961 |
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
1057 |
exit 0 ;; |
exit 0 ;; |
1058 |
M68*:*:R3V[567]*:*) |
M68*:*:R3V[567]*:*) |
1059 |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
1060 |
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) |
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) |
1061 |
OS_REL='' |
OS_REL='' |
1062 |
test -r /etc/.relid \ |
test -r /etc/.relid \ |
1063 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1172 |
*:QNX:*:4*) |
*:QNX:*:4*) |
1173 |
echo i386-pc-qnx |
echo i386-pc-qnx |
1174 |
exit 0 ;; |
exit 0 ;; |
1175 |
NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) |
NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) |
1176 |
echo nsr-tandem-nsk${UNAME_RELEASE} |
echo nsr-tandem-nsk${UNAME_RELEASE} |
1177 |
exit 0 ;; |
exit 0 ;; |
1178 |
*:NonStop-UX:*:*) |
*:NonStop-UX:*:*) |