~ubuntu-branches/ubuntu/quantal/mcpp/quantal

« back to all changes in this revision

Viewing changes to config/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Kiyoshi Matsui
  • Date: 2008-05-24 18:40:22 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080524184022-eu8r2a6dd64qftn3
Tags: 2.7.1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
5
6
 
6
 
timestamp='2005-12-13'
 
7
timestamp='2006-07-02'
7
8
 
8
9
# This file is free software; you can redistribute it and/or modify it
9
10
# under the terms of the GNU General Public License as published by
106
107
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107
108
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108
109
: ${TMPDIR=/tmp} ;
109
 
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
110
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110
111
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111
112
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112
113
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
206
207
    *:ekkoBSD:*:*)
207
208
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208
209
        exit ;;
 
210
    *:SolidBSD:*:*)
 
211
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
212
        exit ;;
209
213
    macppc:MirBSD:*:*)
210
 
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
 
214
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
211
215
        exit ;;
212
216
    *:MirBSD:*:*)
213
217
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
764
768
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765
769
        exit ;;
766
770
    *:FreeBSD:*:*)
767
 
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
771
        case ${UNAME_MACHINE} in
 
772
            pc98)
 
773
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
774
            amd64)
 
775
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
776
            *)
 
777
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
778
        esac
768
779
        exit ;;
769
780
    i*:CYGWIN*:*)
770
781
        echo ${UNAME_MACHINE}-pc-cygwin
779
790
    i*:PW*:*)
780
791
        echo ${UNAME_MACHINE}-pc-pw32
781
792
        exit ;;
782
 
    x86:Interix*:[345]*)
783
 
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
793
    x86:Interix*:[3456]*)
 
794
        echo i586-pc-interix${UNAME_RELEASE}
 
795
        exit ;;
 
796
    EM64T:Interix*:[3456]*)
 
797
        echo x86_64-unknown-interix${UNAME_RELEASE}
784
798
        exit ;;
785
799
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786
800
        echo i${UNAME_MACHINE}-pc-mks
817
831
    arm*:Linux:*:*)
818
832
        echo ${UNAME_MACHINE}-unknown-linux-gnu
819
833
        exit ;;
 
834
    avr32*:Linux:*:*)
 
835
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
836
        exit ;;
820
837
    cris:Linux:*:*)
821
838
        echo cris-axis-linux-gnu
822
839
        exit ;;
851
868
        #endif
852
869
        #endif
853
870
EOF
854
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
 
871
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
872
            /^CPU/{
 
873
                s: ::g
 
874
                p
 
875
            }'`"
855
876
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
856
877
        ;;
857
878
    mips64:Linux:*:*)
870
891
        #endif
871
892
        #endif
872
893
EOF
873
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
 
894
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
895
            /^CPU/{
 
896
                s: ::g
 
897
                p
 
898
            }'`"
874
899
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
875
900
        ;;
876
901
    or32:Linux:*:*)
967
992
        LIBC=gnulibc1
968
993
        # endif
969
994
        #else
970
 
        #if defined(__INTEL_COMPILER) || defined(__PGI)
 
995
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
971
996
        LIBC=gnu
972
997
        #else
973
998
        LIBC=gnuaout
977
1002
        LIBC=dietlibc
978
1003
        #endif
979
1004
EOF
980
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
 
1005
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
1006
            /^LIBC/{
 
1007
                s: ::g
 
1008
                p
 
1009
            }'`"
981
1010
        test x"${LIBC}" != x && {
982
1011
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
983
1012
                exit