Line 1... |
Line 1... |
#! /bin/sh
|
#! /bin/sh
|
# Attempt to guess a canonical system name.
|
# Attempt to guess a canonical system name.
|
# Copyright (C) 1992, 93-97, 1998 Free Software Foundation, Inc.
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
|
|
# Free Software Foundation, Inc.
|
#
|
#
|
# 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
|
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
# (at your option) any later version.
|
# (at your option) any later version.
|
Line 21... |
Line 22... |
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
|
|
# Written by Per Bothner .
|
# Written by Per Bothner .
|
# The master version of this file is at the FSF in /home/gd/gnu/lib.
|
# The master version of this file is at the FSF in /home/gd/gnu/lib.
|
|
# Please send patches to the Autoconf mailing list .
|
#
|
#
|
# This script attempts to guess a canonical system name similar to
|
# This script attempts to guess a canonical system name similar to
|
# config.sub. If it succeeds, it prints the system name on stdout, and
|
# config.sub. If it succeeds, it prints the system name on stdout, and
|
# exits with 0. Otherwise, it exits with 1.
|
# exits with 0. Otherwise, it exits with 1.
|
#
|
#
|
Line 33... |
Line 35... |
#
|
#
|
# Only a few systems have been added to this list; please add others
|
# Only a few systems have been added to this list; please add others
|
# (but try to keep the structure clean).
|
# (but try to keep the structure clean).
|
#
|
#
|
|
|
|
# Use $HOST_CC if defined. $CC may point to a cross-compiler
|
|
if test x"$CC_FOR_BUILD" = x; then
|
|
if test x"$HOST_CC" != x; then
|
|
CC_FOR_BUILD="$HOST_CC"
|
|
else
|
|
if test x"$CC" != x; then
|
|
CC_FOR_BUILD="$CC"
|
|
else
|
|
CC_FOR_BUILD=cc
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
|
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
# (ghazi@noc.rutgers.edu 8/24/94.)
|
# (ghazi@noc.rutgers.edu 8/24/94.)
|
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
PATH=$PATH:/.attbin ; export PATH
|
PATH=$PATH:/.attbin ; export PATH
|
fi
|
fi
|
Line 44... |
Line 60... |
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|
|
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
|
dummy=dummy-$$
|
|
trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
|
|
|
# Note: order is significant - the case branches are not exclusive.
|
# Note: order is significant - the case branches are not exclusive.
|
|
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
alpha:OSF1:*:*)
|
alpha:OSF1:*:*)
|
Line 57... |
Line 74... |
fi
|
fi
|
# A Vn.n version is a released version.
|
# A Vn.n version is a released version.
|
# A Tn.n version is a released field test version.
|
# A Tn.n version is a released field test version.
|
# A Xn.n version is an unreleased experimental baselevel.
|
# A Xn.n version is an unreleased experimental baselevel.
|
# 1.2 uses "1.2" for uname -r.
|
# 1.2 uses "1.2" for uname -r.
|
cat <dummy.s
|
cat <$dummy.s
|
.globl main
|
.globl main
|
.ent main
|
.ent main
|
main:
|
main:
|
.frame \$30,0,\$26,0
|
.frame \$30,0,\$26,0
|
.prologue 0
|
.prologue 0
|
Line 74... |
Line 91... |
addl \$1,\$0,\$0
|
addl \$1,\$0,\$0
|
addl \$2,\$0,\$0
|
addl \$2,\$0,\$0
|
ret \$31,(\$26),1
|
ret \$31,(\$26),1
|
.end main
|
.end main
|
EOF
|
EOF
|
${CC-cc} dummy.s -o dummy 2>/dev/null
|
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
./dummy
|
./$dummy
|
case "$?" in
|
case "$?" in
|
7)
|
7)
|
UNAME_MACHINE="alpha"
|
UNAME_MACHINE="alpha"
|
;;
|
;;
|
15)
|
15)
|
Line 95... |
Line 112... |
16)
|
16)
|
UNAME_MACHINE="alphaev6"
|
UNAME_MACHINE="alphaev6"
|
;;
|
;;
|
esac
|
esac
|
fi
|
fi
|
rm -f dummy.s dummy
|
rm -f $dummy.s $dummy
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
exit 0 ;;
|
|
Alpha\ *:Windows_NT*:*)
|
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
# Should we change UNAME_MACHINE based on the output of uname instead
|
|
# of the specific Alpha model?
|
|
echo alpha-pc-interix
|
exit 0 ;;
|
exit 0 ;;
|
21064:Windows_NT:50:3)
|
21064:Windows_NT:50:3)
|
echo alpha-dec-winnt3.5
|
echo alpha-dec-winnt3.5
|
exit 0 ;;
|
exit 0 ;;
|
Amiga*:UNIX_System_V:4.0:*)
|
Amiga*:UNIX_System_V:4.0:*)
|
Line 110... |
Line 133... |
echo m68k-cbm-netbsd${UNAME_RELEASE}
|
echo m68k-cbm-netbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
amiga:OpenBSD:*:*)
|
amiga:OpenBSD:*:*)
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
*:[Aa]miga[Oo][Ss]:*:*)
|
|
echo ${UNAME_MACHINE}-unknown-amigaos
|
|
exit 0 ;;
|
arc64:OpenBSD:*:*)
|
arc64:OpenBSD:*:*)
|
echo mips64el-unknown-openbsd${UNAME_RELEASE}
|
echo mips64el-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
arc:OpenBSD:*:*)
|
arc:OpenBSD:*:*)
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
Line 128... |
Line 154... |
echo mips-unknown-openbsd${UNAME_RELEASE}
|
echo mips-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
wgrisc:OpenBSD:*:*)
|
wgrisc:OpenBSD:*:*)
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
*:OS/390:*.*)
|
|
echo i370-ibm-openedition
|
|
exit 0 ;;
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
exit 0;;
|
exit 0;;
|
arm32:NetBSD:*:*)
|
arm32:NetBSD:*:*)
|
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
exit 0 ;;
|
exit 0 ;;
|
SR2?01:HI-UX/MPP:*:*)
|
SR2?01:HI-UX/MPP:*:*)
|
echo hppa1.1-hitachi-hiuxmpp
|
echo hppa1.1-hitachi-hiuxmpp
|
exit 0;;
|
exit 0;;
|
Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
|
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
echo pyramid-pyramid-sysv3
|
echo pyramid-pyramid-sysv3
|
else
|
else
|
echo pyramid-pyramid-bsd
|
echo pyramid-pyramid-bsd
|
fi
|
fi
|
exit 0 ;;
|
exit 0 ;;
|
NILE:*:*:dcosx)
|
NILE*:*:*:dcosx)
|
echo pyramid-pyramid-svr4
|
echo pyramid-pyramid-svr4
|
exit 0 ;;
|
exit 0 ;;
|
|
sun4H:SunOS:5.*:*)
|
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
exit 0 ;;
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
exit 0 ;;
|
exit 0 ;;
|
i86pc:SunOS:5.*:*)
|
i86pc:SunOS:5.*:*)
|
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
Line 193... |
Line 225... |
echo m68k-atari-netbsd${UNAME_RELEASE}
|
echo m68k-atari-netbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
atari*:OpenBSD:*:*)
|
atari*:OpenBSD:*:*)
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
# The situation for MiNT is a little confusing. The machine name
|
|
# can be virtually everything (everything which is not
|
|
# "atarist" or "atariste" at least should have a processor
|
|
# > m68000). The system name ranges from "MiNT" over "FreeMiNT"
|
|
# to the lowercase version "mint" (or "freemint"). Finally
|
|
# the system name "TOS" denotes a system which is actually not
|
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
|
# be no problem.
|
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
echo m68k-atari-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
echo m68k-atari-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
|
echo m68k-atari-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
|
echo m68k-milan-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
|
echo m68k-hades-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
|
echo m68k-unknown-mint${UNAME_RELEASE}
|
|
exit 0 ;;
|
sun3*:NetBSD:*:*)
|
sun3*:NetBSD:*:*)
|
echo m68k-sun-netbsd${UNAME_RELEASE}
|
echo m68k-sun-netbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
sun3*:OpenBSD:*:*)
|
sun3*:OpenBSD:*:*)
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
Line 214... |
Line 272... |
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
powerpc:machten:*:*)
|
powerpc:machten:*:*)
|
echo powerpc-apple-machten${UNAME_RELEASE}
|
echo powerpc-apple-machten${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
macppc:NetBSD:*:*)
|
|
echo powerpc-apple-netbsd${UNAME_RELEASE}
|
|
exit 0 ;;
|
RISC*:Mach:*:*)
|
RISC*:Mach:*:*)
|
echo mips-dec-mach_bsd4.3
|
echo mips-dec-mach_bsd4.3
|
exit 0 ;;
|
exit 0 ;;
|
RISC*:ULTRIX:*:*)
|
RISC*:ULTRIX:*:*)
|
echo mips-dec-ultrix${UNAME_RELEASE}
|
echo mips-dec-ultrix${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
VAX*:ULTRIX*:*:*)
|
VAX*:ULTRIX*:*:*)
|
echo vax-dec-ultrix${UNAME_RELEASE}
|
echo vax-dec-ultrix${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
2020:CLIX:*:*)
|
2020:CLIX:*:* | 2430:CLIX:*:*)
|
echo clipper-intergraph-clix${UNAME_RELEASE}
|
echo clipper-intergraph-clix${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
mips:*:*:UMIPS | mips:*:*:RISCos)
|
mips:*:*:UMIPS | mips:*:*:RISCos)
|
sed 's/^ //' << EOF >dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
int main (argc, argv) int argc; char **argv; {
|
#ifdef __cplusplus
|
|
int main (int argc, char *argv[]) {
|
|
#else
|
|
int main (argc, argv) int argc; char *argv[]; {
|
|
#endif
|
#if defined (host_mips) && defined (MIPSEB)
|
#if defined (host_mips) && defined (MIPSEB)
|
#if defined (SYSTYPE_SYSV)
|
#if defined (SYSTYPE_SYSV)
|
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
#endif
|
#endif
|
#if defined (SYSTYPE_SVR4)
|
#if defined (SYSTYPE_SVR4)
|
Line 243... |
Line 308... |
#endif
|
#endif
|
#endif
|
#endif
|
exit (-1);
|
exit (-1);
|
}
|
}
|
EOF
|
EOF
|
${CC-cc} dummy.c -o dummy \
|
$CC_FOR_BUILD $dummy.c -o $dummy \
|
&& ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
&& rm dummy.c dummy && exit 0
|
&& rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
echo mips-mips-riscos${UNAME_RELEASE}
|
echo mips-mips-riscos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
Night_Hawk:Power_UNIX:*:*)
|
Night_Hawk:Power_UNIX:*:*)
|
echo powerpc-harris-powerunix
|
echo powerpc-harris-powerunix
|
exit 0 ;;
|
exit 0 ;;
|
Line 298... |
Line 363... |
i?86:AIX:*:*)
|
i?86:AIX:*:*)
|
echo i386-ibm-aix
|
echo i386-ibm-aix
|
exit 0 ;;
|
exit 0 ;;
|
*:AIX:2:3)
|
*:AIX:2:3)
|
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
sed 's/^ //' << EOF >dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
#include
|
#include
|
|
|
main()
|
main()
|
{
|
{
|
if (!__power_pc())
|
if (!__power_pc())
|
exit(1);
|
exit(1);
|
puts("powerpc-ibm-aix3.2.5");
|
puts("powerpc-ibm-aix3.2.5");
|
exit(0);
|
exit(0);
|
}
|
}
|
EOF
|
EOF
|
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
echo rs6000-ibm-aix3.2.5
|
echo rs6000-ibm-aix3.2.5
|
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
echo rs6000-ibm-aix3.2.4
|
echo rs6000-ibm-aix3.2.4
|
else
|
else
|
echo rs6000-ibm-aix3.2
|
echo rs6000-ibm-aix3.2
|
fi
|
fi
|
exit 0 ;;
|
exit 0 ;;
|
*:AIX:*:4)
|
*:AIX:*:4)
|
if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
|
|
if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
|
IBM_ARCH=rs6000
|
IBM_ARCH=rs6000
|
else
|
else
|
IBM_ARCH=powerpc
|
IBM_ARCH=powerpc
|
fi
|
fi
|
if [ -x /usr/bin/oslevel ] ; then
|
if [ -x /usr/bin/oslevel ] ; then
|
Line 352... |
Line 418... |
echo m68k-hp-bsd
|
echo m68k-hp-bsd
|
exit 0 ;;
|
exit 0 ;;
|
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
echo m68k-hp-bsd4.4
|
echo m68k-hp-bsd4.4
|
exit 0 ;;
|
exit 0 ;;
|
9000/[3478]??:HP-UX:*:*)
|
9000/[34678]??:HP-UX:*:*)
|
case "${UNAME_MACHINE}" in
|
case "${UNAME_MACHINE}" in
|
9000/31? ) HP_ARCH=m68000 ;;
|
9000/31? ) HP_ARCH=m68000 ;;
|
9000/[34]?? ) HP_ARCH=m68k ;;
|
9000/[34]?? ) HP_ARCH=m68k ;;
|
9000/6?? ) HP_ARCH=hppa1.0 ;;
|
9000/[678][0-9][0-9])
|
9000/78? ) HP_ARCH=hppa1.1 ;; # FIXME: really hppa2.0
|
sed 's/^ //' << EOF >$dummy.c
|
9000/7?? ) HP_ARCH=hppa1.1 ;;
|
#include
|
9000/8[67]1 | 9000/80[24] | 9000/8[78]9 | 9000/893 )
|
#include
|
HP_ARCH=hppa1.1 ;; # FIXME: really hppa2.0
|
|
9000/8?[13679] ) HP_ARCH=hppa1.1 ;;
|
int main ()
|
9000/8?? ) HP_ARCH=hppa1.0 ;;
|
{
|
|
#if defined(_SC_KERNEL_BITS)
|
|
long bits = sysconf(_SC_KERNEL_BITS);
|
|
#endif
|
|
long cpu = sysconf (_SC_CPU_VERSION);
|
|
|
|
switch (cpu)
|
|
{
|
|
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
case CPU_PA_RISC2_0:
|
|
#if defined(_SC_KERNEL_BITS)
|
|
switch (bits)
|
|
{
|
|
case 64: puts ("hppa2.0w"); break;
|
|
case 32: puts ("hppa2.0n"); break;
|
|
default: puts ("hppa2.0"); break;
|
|
} break;
|
|
#else /* !defined(_SC_KERNEL_BITS) */
|
|
puts ("hppa2.0"); break;
|
|
#endif
|
|
default: puts ("hppa1.0"); break;
|
|
}
|
|
exit (0);
|
|
}
|
|
EOF
|
|
($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
|
|
rm -f $dummy.c $dummy
|
esac
|
esac
|
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
exit 0 ;;
|
exit 0 ;;
|
3050*:HI-UX:*:*)
|
3050*:HI-UX:*:*)
|
sed 's/^ //' << EOF >dummy.c
|
sed 's/^ //' << EOF >$dummy.c
|
#include
|
#include
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
long cpu = sysconf (_SC_CPU_VERSION);
|
long cpu = sysconf (_SC_CPU_VERSION);
|
Line 393... |
Line 486... |
puts ("m68k-hitachi-hiuxwe2");
|
puts ("m68k-hitachi-hiuxwe2");
|
else puts ("unknown-hitachi-hiuxwe2");
|
else puts ("unknown-hitachi-hiuxwe2");
|
exit (0);
|
exit (0);
|
}
|
}
|
EOF
|
EOF
|
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
echo unknown-hitachi-hiuxwe2
|
echo unknown-hitachi-hiuxwe2
|
exit 0 ;;
|
exit 0 ;;
|
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
echo hppa1.1-hp-bsd
|
echo hppa1.1-hp-bsd
|
exit 0 ;;
|
exit 0 ;;
|
9000/8??:4.3bsd:*:*)
|
9000/8??:4.3bsd:*:*)
|
echo hppa1.0-hp-bsd
|
echo hppa1.0-hp-bsd
|
exit 0 ;;
|
exit 0 ;;
|
|
*9??*:MPE/iX:*:*)
|
|
echo hppa1.0-hp-mpeix
|
|
exit 0 ;;
|
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
echo hppa1.1-hp-osf
|
echo hppa1.1-hp-osf
|
exit 0 ;;
|
exit 0 ;;
|
hp8??:OSF1:*:*)
|
hp8??:OSF1:*:*)
|
echo hppa1.0-hp-osf
|
echo hppa1.0-hp-osf
|
Line 419... |
Line 515... |
fi
|
fi
|
exit 0 ;;
|
exit 0 ;;
|
parisc*:Lites*:*:*)
|
parisc*:Lites*:*:*)
|
echo hppa1.1-hp-lites
|
echo hppa1.1-hp-lites
|
exit 0 ;;
|
exit 0 ;;
|
|
hppa*:OpenBSD:*:*)
|
|
echo hppa-unknown-openbsd
|
|
exit 0 ;;
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
echo c1-convex-bsd
|
echo c1-convex-bsd
|
exit 0 ;;
|
exit 0 ;;
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
if getsysinfo -f scalar_acc
|
if getsysinfo -f scalar_acc
|
Line 451... |
Line 550... |
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
|
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
|
exit 0 ;;
|
exit 0 ;;
|
CRAY*TS:*:*:*)
|
CRAY*TS:*:*:*)
|
echo t90-cray-unicos${UNAME_RELEASE}
|
echo t90-cray-unicos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
CRAY*T3E:*:*:*)
|
|
echo t3e-cray-unicosmk${UNAME_RELEASE}
|
|
exit 0 ;;
|
CRAY-2:*:*:*)
|
CRAY-2:*:*:*)
|
echo cray2-cray-unicos
|
echo cray2-cray-unicos
|
exit 0 ;;
|
exit 0 ;;
|
F300:UNIX_System_V:*:*)
|
F300:UNIX_System_V:*:*)
|
FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
|
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
exit 0 ;;
|
exit 0 ;;
|
F301:UNIX_System_V:*:*)
|
F301:UNIX_System_V:*:*)
|
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
Line 468... |
Line 570... |
echo m68k-hp-netbsd${UNAME_RELEASE}
|
echo m68k-hp-netbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
hp300:OpenBSD:*:*)
|
hp300:OpenBSD:*:*)
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
i?86:BSD/386:*:* | *:BSD/OS:*:*)
|
i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
sparc*:BSD/OS:*:*)
|
|
echo sparc-unknown-bsdi${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
*:BSD/OS:*:*)
|
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
|
exit 0 ;;
|
*:FreeBSD:*:*)
|
*:FreeBSD:*:*)
|
|
if test -x /usr/bin/objformat; then
|
|
if test "elf" = "`/usr/bin/objformat`"; then
|
|
echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
|
|
exit 0
|
|
fi
|
|
fi
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
exit 0 ;;
|
exit 0 ;;
|
*:NetBSD:*:*)
|
*:NetBSD:*:*)
|
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
exit 0 ;;
|
exit 0 ;;
|
*:OpenBSD:*:*)
|
*:OpenBSD:*:*)
|
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
exit 0 ;;
|
exit 0 ;;
|
i*:CYGWIN*:*)
|
i*:CYGWIN*:*)
|
echo ${UNAME_MACHINE}-pc-cygwin32
|
echo ${UNAME_MACHINE}-pc-cygwin
|
exit 0 ;;
|
exit 0 ;;
|
i*:MINGW*:*)
|
i*:MINGW*:*)
|
echo ${UNAME_MACHINE}-pc-mingw32
|
echo ${UNAME_MACHINE}-pc-mingw32
|
exit 0 ;;
|
exit 0 ;;
|
|
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
|
# UNAME_MACHINE based on the output of uname instead of i386?
|
|
echo i386-pc-interix
|
|
exit 0 ;;
|
|
i*:UWIN*:*)
|
|
echo ${UNAME_MACHINE}-pc-uwin
|
|
exit 0 ;;
|
p*:CYGWIN*:*)
|
p*:CYGWIN*:*)
|
echo powerpcle-unknown-cygwin32
|
echo powerpcle-unknown-cygwin
|
exit 0 ;;
|
exit 0 ;;
|
prep*:SunOS:5.*:*)
|
prep*:SunOS:5.*:*)
|
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
exit 0 ;;
|
exit 0 ;;
|
*:GNU:*:*)
|
*:GNU:*:*)
|
Line 499... |
Line 622... |
exit 0 ;;
|
exit 0 ;;
|
*:Linux:*:*)
|
*:Linux:*:*)
|
# uname on the ARM produces all sorts of strangeness, and we need to
|
# uname on the ARM produces all sorts of strangeness, and we need to
|
# filter it out.
|
# filter it out.
|
case "$UNAME_MACHINE" in
|
case "$UNAME_MACHINE" in
|
|
armv*) UNAME_MACHINE=$UNAME_MACHINE ;;
|
arm* | sa110*) UNAME_MACHINE="arm" ;;
|
arm* | sa110*) UNAME_MACHINE="arm" ;;
|
esac
|
esac
|
|
|
# The BFD linker knows what the default object file format is, so
|
# The BFD linker knows what the default object file format is, so
|
# first see if it will tell us.
|
# first see if it will tell us. cd to the root directory to prevent
|
ld_help_string=`ld --help 2>&1`
|
# problems with other programs or directories called `ld' in the path.
|
|
ld_help_string=`cd /; ld --help 2>&1`
|
ld_supported_emulations=`echo $ld_help_string \
|
ld_supported_emulations=`echo $ld_help_string \
|
| sed -ne '/supported emulations:/!d
|
| sed -ne '/supported emulations:/!d
|
s/[ ][ ]*/ /g
|
s/[ ][ ]*/ /g
|
s/.*supported emulations: *//
|
s/.*supported emulations: *//
|
s/ .*//
|
s/ .*//
|
Line 517... |
Line 642... |
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
|
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
|
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
|
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
|
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
elf32ppc)
|
elf32ppc | elf32ppclinux)
|
# Determine Lib Version
|
# Determine Lib Version
|
cat >dummy.c <
|
cat >$dummy.c <
|
#include
|
#include
|
#if defined(__GLIBC__)
|
#if defined(__GLIBC__)
|
extern char __libc_version[];
|
extern char __libc_version[];
|
extern char __libc_release[];
|
extern char __libc_release[];
|
#endif
|
#endif
|
Line 538... |
Line 663... |
#endif
|
#endif
|
return 0;
|
return 0;
|
}
|
}
|
EOF
|
EOF
|
LIBC=""
|
LIBC=""
|
${CC-cc} dummy.c -o dummy 2>/dev/null
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
|
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
./dummy | grep 1\.99 > /dev/null
|
./$dummy | grep 1\.99 > /dev/null
|
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
LIBC="libc1"
|
LIBC="libc1"
|
fi
|
fi
|
fi
|
fi
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
|
echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
|
esac
|
esac
|
|
|
if test "${UNAME_MACHINE}" = "alpha" ; then
|
if test "${UNAME_MACHINE}" = "alpha" ; then
|
sed 's/^ //' <dummy.s
|
sed 's/^ //' <$dummy.s
|
.globl main
|
.globl main
|
.ent main
|
.ent main
|
main:
|
main:
|
.frame \$30,0,\$26,0
|
.frame \$30,0,\$26,0
|
.prologue 0
|
.prologue 0
|
Line 568... |
Line 693... |
addl \$2,\$0,\$0
|
addl \$2,\$0,\$0
|
ret \$31,(\$26),1
|
ret \$31,(\$26),1
|
.end main
|
.end main
|
EOF
|
EOF
|
LIBC=""
|
LIBC=""
|
${CC-cc} dummy.s -o dummy 2>/dev/null
|
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
|
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
./dummy
|
./$dummy
|
case "$?" in
|
case "$?" in
|
7)
|
7)
|
UNAME_MACHINE="alpha"
|
UNAME_MACHINE="alpha"
|
;;
|
;;
|
15)
|
15)
|
Line 589... |
Line 714... |
16)
|
16)
|
UNAME_MACHINE="alphaev6"
|
UNAME_MACHINE="alphaev6"
|
;;
|
;;
|
esac
|
esac
|
|
|
objdump --private-headers dummy | \
|
objdump --private-headers $dummy | \
|
grep ld.so.1 > /dev/null
|
grep ld.so.1 > /dev/null
|
if test "$?" = 0 ; then
|
if test "$?" = 0 ; then
|
LIBC="libc1"
|
LIBC="libc1"
|
fi
|
fi
|
fi
|
fi
|
rm -f dummy.s dummy
|
rm -f $dummy.s $dummy
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
|
elif test "${UNAME_MACHINE}" = "mips" ; then
|
elif test "${UNAME_MACHINE}" = "mips" ; then
|
cat >dummy.c <
|
cat >$dummy.c <
|
main(argc, argv)
|
#ifdef __cplusplus
|
int argc;
|
int main (int argc, char *argv[]) {
|
char *argv[];
|
#else
|
{
|
int main (argc, argv) int argc; char *argv[]; {
|
|
#endif
|
#ifdef __MIPSEB__
|
#ifdef __MIPSEB__
|
printf ("%s-unknown-linux-gnu\n", argv[1]);
|
printf ("%s-unknown-linux-gnu\n", argv[1]);
|
#endif
|
#endif
|
#ifdef __MIPSEL__
|
#ifdef __MIPSEL__
|
printf ("%sel-unknown-linux-gnu\n", argv[1]);
|
printf ("%sel-unknown-linux-gnu\n", argv[1]);
|
#endif
|
#endif
|
return 0;
|
return 0;
|
}
|
}
|
EOF
|
EOF
|
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
else
|
else
|
# Either a pre-BFD a.out linker (linux-gnuoldld)
|
# Either a pre-BFD a.out linker (linux-gnuoldld)
|
# or one that does not give us useful --help.
|
# or one that does not give us useful --help.
|
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
|
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
|
# If ld does not provide *any* "supported emulations:"
|
# If ld does not provide *any* "supported emulations:"
|
Line 632... |
Line 758... |
*)
|
*)
|
VENDOR=unknown;
|
VENDOR=unknown;
|
;;
|
;;
|
esac
|
esac
|
# Determine whether the default compiler is a.out or elf
|
# Determine whether the default compiler is a.out or elf
|
cat >dummy.c <
|
cat >$dummy.c <
|
#include
|
#include
|
main(argc, argv)
|
#ifdef __cplusplus
|
int argc;
|
int main (int argc, char *argv[]) {
|
char *argv[];
|
#else
|
{
|
int main (argc, argv) int argc; char *argv[]; {
|
|
#endif
|
#ifdef __ELF__
|
#ifdef __ELF__
|
# ifdef __GLIBC__
|
# ifdef __GLIBC__
|
# if __GLIBC__ >= 2
|
# if __GLIBC__ >= 2
|
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
# else
|
# else
|
Line 654... |
Line 781... |
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
#endif
|
#endif
|
return 0;
|
return 0;
|
}
|
}
|
EOF
|
EOF
|
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
fi ;;
|
fi ;;
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
# are messed up and put the nodename in both sysname and nodename.
|
# are messed up and put the nodename in both sysname and nodename.
|
i?86:DYNIX/ptx:4*:*)
|
i?86:DYNIX/ptx:4*:*)
|
echo i386-sequent-sysv4
|
echo i386-sequent-sysv4
|
Line 677... |
Line 804... |
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
|
else
|
else
|
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
fi
|
fi
|
exit 0 ;;
|
exit 0 ;;
|
i?86:*:5:7)
|
i?86:*:5:7*)
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586
|
&& UNAME_MACHINE=i586
|
(/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686
|
|
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585
|
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE}
|
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
i?86:*:3.2:*)
|
i?86:*:3.2:*)
|
if test -f /usr/options/cb.name; then
|
if test -f /usr/options/cb.name; then
|
UNAME_REL=`sed -n 's/.*Version //p'
|
UNAME_REL=`sed -n 's/.*Version //p'
|
Line 693... |
Line 821... |
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
&& UNAME_MACHINE=i586
|
&& UNAME_MACHINE=i586
|
|
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
|
|
&& UNAME_MACHINE=i686
|
|
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
|
|
&& UNAME_MACHINE=i686
|
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
else
|
else
|
echo ${UNAME_MACHINE}-pc-sysv32
|
echo ${UNAME_MACHINE}-pc-sysv32
|
fi
|
fi
|
exit 0 ;;
|
exit 0 ;;
|
Line 739... |
Line 871... |
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
mc68030:UNIX_System_V:4.*:*)
|
mc68030:UNIX_System_V:4.*:*)
|
echo m68k-atari-sysv4
|
echo m68k-atari-sysv4
|
exit 0 ;;
|
exit 0 ;;
|
i?86:LynxOS:2.*:*)
|
i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
TSUNAMI:LynxOS:2.*:*)
|
TSUNAMI:LynxOS:2.*:*)
|
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
Line 751... |
Line 883... |
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
SM[BE]S:UNIX_SV:*:*)
|
SM[BE]S:UNIX_SV:*:*)
|
echo mips-dde-sysv${UNAME_RELEASE}
|
echo mips-dde-sysv${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
|
RM*:ReliantUNIX-*:*:*)
|
|
echo mips-sni-sysv4
|
|
exit 0 ;;
|
RM*:SINIX-*:*:*)
|
RM*:SINIX-*:*:*)
|
echo mips-sni-sysv4
|
echo mips-sni-sysv4
|
exit 0 ;;
|
exit 0 ;;
|
*:SINIX-*:*:*)
|
*:SINIX-*:*:*)
|
if uname -p 2>/dev/null >/dev/null ; then
|
if uname -p 2>/dev/null >/dev/null ; then
|
Line 781... |
Line 916... |
echo m68k-apple-aux${UNAME_RELEASE}
|
echo m68k-apple-aux${UNAME_RELEASE}
|
exit 0 ;;
|
exit 0 ;;
|
news*:NEWS-OS:*:6*)
|
news*:NEWS-OS:*:6*)
|
echo mips-sony-newsos6
|
echo mips-sony-newsos6
|
exit 0 ;;
|
exit 0 ;;
|
R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
if [ -d /usr/nec ]; then
|
if [ -d /usr/nec ]; then
|
echo mips-nec-sysv${UNAME_RELEASE}
|
echo mips-nec-sysv${UNAME_RELEASE}
|
else
|
else
|
echo mips-unknown-sysv${UNAME_RELEASE}
|
echo mips-unknown-sysv${UNAME_RELEASE}
|
fi
|
fi
|
Line 794... |
Line 929... |
echo powerpc-be-beos
|
echo powerpc-be-beos
|
exit 0 ;;
|
exit 0 ;;
|
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
echo powerpc-apple-beos
|
echo powerpc-apple-beos
|
exit 0 ;;
|
exit 0 ;;
|
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
|
echo i586-pc-beos
|
|
exit 0 ;;
|
|
SX-4:SUPER-UX:*:*)
|
|
echo sx4-nec-superux${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
SX-5:SUPER-UX:*:*)
|
|
echo sx5-nec-superux${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
Power*:Rhapsody:*:*)
|
|
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
*:Rhapsody:*:*)
|
|
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
|
exit 0 ;;
|
esac
|
esac
|
|
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
|
|
cat >dummy.c <
|
cat >$dummy.c <
|
#ifdef _SEQUENT_
|
#ifdef _SEQUENT_
|
# include
|
# include
|
# include
|
# include
|
#endif
|
#endif
|
main ()
|
main ()
|
Line 837... |
Line 987... |
#if !defined (__ARCHITECTURE__)
|
#if !defined (__ARCHITECTURE__)
|
#define __ARCHITECTURE__ "m68k"
|
#define __ARCHITECTURE__ "m68k"
|
#endif
|
#endif
|
int version;
|
int version;
|
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
|
if (version < 4)
|
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
|
else
|
|
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
exit (0);
|
exit (0);
|
#endif
|
#endif
|
|
|
#if defined (MULTIMAX) || defined (n16)
|
#if defined (MULTIMAX) || defined (n16)
|
#if defined (UMAXV)
|
#if defined (UMAXV)
|
Line 897... |
Line 1050... |
|
|
exit (1);
|
exit (1);
|
}
|
}
|
EOF
|
EOF
|
|
|
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
|
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
|
rm -f dummy.c dummy
|
rm -f $dummy.c $dummy
|
|
|
# Apollos put the system type in the environment.
|
# Apollos put the system type in the environment.
|
|
|
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
|
|