OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc3/] [or1ksim/] [config.guess] - Diff between revs 1552 and 1745

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1552 Rev 1745
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, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
#   Free Software Foundation, Inc.
 
 
timestamp='2005-07-08'
timestamp='2008-01-08'
 
 
# 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 53... Line 54...
 
 
version="\
version="\
GNU config.guess ($timestamp)
GNU config.guess ($timestamp)
 
 
Originally written by Per Bothner.
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
Free Software Foundation, Inc.
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
 
This is free software; see the source for copying conditions.  There is NO
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 
 
help="
help="
Line 104... Line 105...
 
 
set_cc_for_build='
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
Line 158... Line 159...
        case "${UNAME_MACHINE_ARCH}" in
        case "${UNAME_MACHINE_ARCH}" in
            armeb) machine=armeb-unknown ;;
            armeb) machine=armeb-unknown ;;
            arm*) machine=arm-unknown ;;
            arm*) machine=arm-unknown ;;
            sh3el) machine=shl-unknown ;;
            sh3el) machine=shl-unknown ;;
            sh3eb) machine=sh-unknown ;;
            sh3eb) machine=sh-unknown ;;
 
            sh5el) machine=sh5le-unknown ;;
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
        esac
        esac
        # The Operating System including object format, if it has switched
        # The Operating System including object format, if it has switched
        # to ELF recently, or will in the future.
        # to ELF recently, or will in the future.
        case "${UNAME_MACHINE_ARCH}" in
        case "${UNAME_MACHINE_ARCH}" in
Line 204... Line 206...
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:ekkoBSD:*:*)
    *:ekkoBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
        exit ;;
        exit ;;
 
    *:SolidBSD:*:*)
 
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
        exit ;;
    macppc:MirBSD:*:*)
    macppc:MirBSD:*:*)
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:MirBSD:*:*)
    *:MirBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
        exit ;;
        exit ;;
    alpha:OSF1:*:*)
    alpha:OSF1:*:*)
Line 323... Line 328...
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        exit ;;
        exit ;;
    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 ;;
        exit ;;
    i86pc:SunOS:5.*:*)
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        exit ;;
        exit ;;
    sun4*:SunOS:6*:*)
    sun4*:SunOS:6*:*)
        # According to config.sub, this is the proper way to canonicalize
        # According to config.sub, this is the proper way to canonicalize
        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
Line 525... Line 530...
                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 ;;
        exit ;;
    *:AIX:*:[45])
    *:AIX:*:[456])
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
                IBM_ARCH=rs6000
                IBM_ARCH=rs6000
        else
        else
                IBM_ARCH=powerpc
                IBM_ARCH=powerpc
Line 762... Line 767...
        exit ;;
        exit ;;
    *:BSD/OS:*:*)
    *:BSD/OS:*:*)
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:FreeBSD:*:*)
    *:FreeBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
        case ${UNAME_MACHINE} in
 
            pc98)
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
            amd64)
 
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
            *)
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
        esac
        exit ;;
        exit ;;
    i*:CYGWIN*:*)
    i*:CYGWIN*:*)
        echo ${UNAME_MACHINE}-pc-cygwin
        echo ${UNAME_MACHINE}-pc-cygwin
        exit ;;
        exit ;;
    i*:MINGW*:*)
    *:MINGW*:*)
        echo ${UNAME_MACHINE}-pc-mingw32
        echo ${UNAME_MACHINE}-pc-mingw32
        exit ;;
        exit ;;
    i*:windows32*:*)
    i*:windows32*:*)
        # uname -m includes "-pc" on this system.
        # uname -m includes "-pc" on this system.
        echo ${UNAME_MACHINE}-mingw32
        echo ${UNAME_MACHINE}-mingw32
        exit ;;
        exit ;;
    i*:PW*:*)
    i*:PW*:*)
        echo ${UNAME_MACHINE}-pc-pw32
        echo ${UNAME_MACHINE}-pc-pw32
        exit ;;
        exit ;;
    x86:Interix*:[34]*)
    *:Interix*:[3456]*)
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
        case ${UNAME_MACHINE} in
 
            x86)
 
                echo i586-pc-interix${UNAME_RELEASE}
 
                exit ;;
 
            EM64T | authenticamd)
 
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
                exit ;;
 
            IA64)
 
                echo ia64-unknown-interix${UNAME_RELEASE}
        exit ;;
        exit ;;
 
        esac ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
        echo i${UNAME_MACHINE}-pc-mks
        echo i${UNAME_MACHINE}-pc-mks
        exit ;;
        exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
        # How do we know it's Interix rather than the generic POSIX subsystem?
        # How do we know it's Interix rather than the generic POSIX subsystem?
Line 792... Line 813...
        echo i586-pc-interix
        echo i586-pc-interix
        exit ;;
        exit ;;
    i*:UWIN*:*)
    i*:UWIN*:*)
        echo ${UNAME_MACHINE}-pc-uwin
        echo ${UNAME_MACHINE}-pc-uwin
        exit ;;
        exit ;;
    amd64:CYGWIN*:*:*)
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
        echo x86_64-unknown-cygwin
        echo x86_64-unknown-cygwin
        exit ;;
        exit ;;
    p*:CYGWIN*:*)
    p*:CYGWIN*:*)
        echo powerpcle-unknown-cygwin
        echo powerpcle-unknown-cygwin
        exit ;;
        exit ;;
Line 813... Line 834...
        exit ;;
        exit ;;
    i*86:Minix:*:*)
    i*86:Minix:*:*)
        echo ${UNAME_MACHINE}-pc-minix
        echo ${UNAME_MACHINE}-pc-minix
        exit ;;
        exit ;;
    arm*:Linux:*:*)
    arm*:Linux:*:*)
 
        eval $set_cc_for_build
 
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
            | grep -q __ARM_EABI__
 
        then
 
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
        else
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
        fi
 
        exit ;;
 
    avr32*:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
        exit ;;
    cris:Linux:*:*)
    cris:Linux:*:*)
        echo cris-axis-linux-gnu
        echo cris-axis-linux-gnu
        exit ;;
        exit ;;
Line 849... Line 880...
        #else
        #else
        CPU=
        CPU=
        #endif
        #endif
        #endif
        #endif
EOF
EOF
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
            /^CPU/{
 
                s: ::g
 
                p
 
            }'`"
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
        ;;
        ;;
    mips64:Linux:*:*)
    mips64:Linux:*:*)
        eval $set_cc_for_build
        eval $set_cc_for_build
        sed 's/^        //' << EOF >$dummy.c
        sed 's/^        //' << EOF >$dummy.c
Line 868... Line 903...
        #else
        #else
        CPU=
        CPU=
        #endif
        #endif
        #endif
        #endif
EOF
EOF
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
            /^CPU/{
 
                s: ::g
 
                p
 
            }'`"
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
        ;;
        ;;
    or32:Linux:*:*)
    or32:Linux:*:*)
        echo or32-unknown-linux-gnu
        echo or32-unknown-linux-gnu
        exit ;;
        exit ;;
Line 917... Line 956...
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
        exit ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
    sparc:Linux:*:* | sparc64:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
        exit ;;
 
    vax:Linux:*:*)
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
 
        exit ;;
    x86_64:Linux:*:*)
    x86_64:Linux:*:*)
        echo x86_64-unknown-linux-gnu
        echo x86_64-unknown-linux-gnu
        exit ;;
        exit ;;
 
    xtensa*:Linux:*:*)
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
        exit ;;
    i*86:Linux:*:*)
    i*86:Linux:*:*)
        # 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. cd to the root directory to prevent
        # first see if it will tell us. cd to the root directory to prevent
        # problems with other programs or directories called `ld' in the path.
        # problems with other programs or directories called `ld' in the path.
        # Set LC_ALL=C to ensure ld outputs messages in English.
        # Set LC_ALL=C to ensure ld outputs messages in English.
Line 962... Line 1007...
        #  endif
        #  endif
        # else
        # else
        LIBC=gnulibc1
        LIBC=gnulibc1
        # endif
        # endif
        #else
        #else
        #ifdef __INTEL_COMPILER
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
        LIBC=gnu
        LIBC=gnu
        #else
        #else
        LIBC=gnuaout
        LIBC=gnuaout
        #endif
        #endif
        #endif
        #endif
        #ifdef __dietlibc__
        #ifdef __dietlibc__
        LIBC=dietlibc
        LIBC=dietlibc
        #endif
        #endif
EOF
EOF
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
            /^LIBC/{
 
                s: ::g
 
                p
 
            }'`"
        test x"${LIBC}" != x && {
        test x"${LIBC}" != x && {
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
                exit
                exit
        }
        }
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
Line 1174... Line 1223...
        echo sx5-nec-superux${UNAME_RELEASE}
        echo sx5-nec-superux${UNAME_RELEASE}
        exit ;;
        exit ;;
    SX-6:SUPER-UX:*:*)
    SX-6:SUPER-UX:*:*)
        echo sx6-nec-superux${UNAME_RELEASE}
        echo sx6-nec-superux${UNAME_RELEASE}
        exit ;;
        exit ;;
 
    SX-7:SUPER-UX:*:*)
 
        echo sx7-nec-superux${UNAME_RELEASE}
 
        exit ;;
 
    SX-8:SUPER-UX:*:*)
 
        echo sx8-nec-superux${UNAME_RELEASE}
 
        exit ;;
 
    SX-8R:SUPER-UX:*:*)
 
        echo sx8r-nec-superux${UNAME_RELEASE}
 
        exit ;;
    Power*:Rhapsody:*:*)
    Power*:Rhapsody:*:*)
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:Rhapsody:*:*)
    *:Rhapsody:*:*)
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:Darwin:*:*)
    *:Darwin:*:*)
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
        case $UNAME_PROCESSOR in
        case $UNAME_PROCESSOR in
            *86) UNAME_PROCESSOR=i686 ;;
 
            unknown) UNAME_PROCESSOR=powerpc ;;
            unknown) UNAME_PROCESSOR=powerpc ;;
        esac
        esac
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
        exit ;;
        exit ;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
Line 1262... Line 1319...
        echo i386-pc-xenix
        echo i386-pc-xenix
        exit ;;
        exit ;;
    i*86:skyos:*:*)
    i*86:skyos:*:*)
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
        exit ;;
        exit ;;
 
    i*86:rdos:*:*)
 
        echo ${UNAME_MACHINE}-pc-rdos
 
        exit ;;
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
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.