/[gcl]/gcl/binutils/config.guess
ViewVC logotype

Diff of /gcl/binutils/config.guess

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by camm, Thu Aug 11 21:32:50 2005 UTC revision 1.6 by camm, Fri Sep 9 23:32:06 2005 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Attempt to guess a canonical system name.  # Attempt to guess a canonical system name.
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, 2004, 2005 Free Software Foundation, Inc.  #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5    
6  timestamp='2005-04-22'  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
# Line 53  version="\ Line 53  version="\
53  GNU config.guess ($timestamp)  GNU config.guess ($timestamp)
54    
55  Originally written by Per Bothner.  Originally written by Per Bothner.
56  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
57  Free Software Foundation, Inc.  Free Software Foundation, Inc.
58    
59  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
# Line 197  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 197  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
197          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.          # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198          echo "${machine}-${os}${release}"          echo "${machine}-${os}${release}"
199          exit 0 ;;          exit 0 ;;
     amd64:OpenBSD:*:*)  
         echo x86_64-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
200      amiga:OpenBSD:*:*)      amiga:OpenBSD:*:*)
201          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
202          exit 0 ;;          exit 0 ;;
203      cats:OpenBSD:*:*)      arc:OpenBSD:*:*)
204          echo arm-unknown-openbsd${UNAME_RELEASE}          echo mipsel-unknown-openbsd${UNAME_RELEASE}
205          exit 0 ;;          exit 0 ;;
206      hp300:OpenBSD:*:*)      hp300:OpenBSD:*:*)
207          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
208          exit 0 ;;          exit 0 ;;
     luna88k:OpenBSD:*:*)  
         echo m88k-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
209      mac68k:OpenBSD:*:*)      mac68k:OpenBSD:*:*)
210          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
211          exit 0 ;;          exit 0 ;;
# Line 227  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 221  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
221      mvmeppc:OpenBSD:*:*)      mvmeppc:OpenBSD:*:*)
222          echo powerpc-unknown-openbsd${UNAME_RELEASE}          echo powerpc-unknown-openbsd${UNAME_RELEASE}
223          exit 0 ;;          exit 0 ;;
224        pmax:OpenBSD:*:*)
225            echo mipsel-unknown-openbsd${UNAME_RELEASE}
226            exit 0 ;;
227      sgi:OpenBSD:*:*)      sgi:OpenBSD:*:*)
228          echo mips64-unknown-openbsd${UNAME_RELEASE}          echo mipseb-unknown-openbsd${UNAME_RELEASE}
229          exit 0 ;;          exit 0 ;;
230      sun3:OpenBSD:*:*)      sun3:OpenBSD:*:*)
231          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
232          exit 0 ;;          exit 0 ;;
233        wgrisc:OpenBSD:*:*)
234            echo mipsel-unknown-openbsd${UNAME_RELEASE}
235            exit 0 ;;
236      *:OpenBSD:*:*)      *:OpenBSD:*:*)
237          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
238          exit 0 ;;          exit 0 ;;
     *:ekkoBSD:*:*)  
         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}  
         exit 0 ;;  
     macppc:MirBSD:*:*)  
         echo powerppc-unknown-mirbsd${UNAME_RELEASE}  
         exit 0 ;;  
     *:MirBSD:*:*)  
         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}  
         exit 0 ;;  
239      alpha:OSF1:*:*)      alpha:OSF1:*:*)
240          case $UNAME_RELEASE in          if test $UNAME_RELEASE = "V4.0"; then
         *4.0)  
241                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
242                  ;;          fi
         *5.*)  
                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`  
                 ;;  
         esac  
243          # According to Compaq, /usr/sbin/psrinfo has been available on          # According to Compaq, /usr/sbin/psrinfo has been available on
244          # OSF/1 and Tru64 systems produced since 1995.  I hope that          # OSF/1 and Tru64 systems produced since 1995.  I hope that
245          # covers most systems running today.  This code pipes the CPU          # covers most systems running today.  This code pipes the CPU
# Line 291  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 277  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
277              "EV7.9 (21364A)")              "EV7.9 (21364A)")
278                  UNAME_MACHINE="alphaev79" ;;                  UNAME_MACHINE="alphaev79" ;;
279          esac          esac
         # A Pn.n version is a patched version.  
280          # A Vn.n version is a released version.          # A Vn.n version is a released version.
281          # A Tn.n version is a released field test version.          # A Tn.n version is a released field test version.
282          # A Xn.n version is an unreleased experimental baselevel.          # A Xn.n version is an unreleased experimental baselevel.
283          # 1.2 uses "1.2" for uname -r.          # 1.2 uses "1.2" for uname -r.
284          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
285            exit 0 ;;
286        Alpha*:OpenVMS:*:*)
287            echo alpha-hp-vms
288          exit 0 ;;          exit 0 ;;
289      Alpha\ *:Windows_NT*:*)      Alpha\ *:Windows_NT*:*)
290          # 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 319  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 307  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
307      *:OS/390:*:*)      *:OS/390:*:*)
308          echo i370-ibm-openedition          echo i370-ibm-openedition
309          exit 0 ;;          exit 0 ;;
     *:z/VM:*:*)  
         echo s390-ibm-zvmoe  
         exit 0 ;;  
     *:OS400:*:*)  
         echo powerpc-ibm-os400  
         exit 0 ;;  
310      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311          echo arm-acorn-riscix${UNAME_RELEASE}          echo arm-acorn-riscix${UNAME_RELEASE}
312          exit 0;;          exit 0;;
# Line 345  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 327  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
327      DRS?6000:unix:4.0:6*)      DRS?6000:unix:4.0:6*)
328          echo sparc-icl-nx6          echo sparc-icl-nx6
329          exit 0 ;;          exit 0 ;;
330      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)      DRS?6000:UNIX_SV:4.2*:7*)
331          case `/usr/bin/uname -p` in          case `/usr/bin/uname -p` in
332              sparc) echo sparc-icl-nx7 && exit 0 ;;              sparc) echo sparc-icl-nx7 && exit 0 ;;
333          esac ;;          esac ;;
# Line 417  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 399  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
399      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
400          echo m68k-unknown-mint${UNAME_RELEASE}          echo m68k-unknown-mint${UNAME_RELEASE}
401          exit 0 ;;          exit 0 ;;
     m68k:machten:*:*)  
         echo m68k-apple-machten${UNAME_RELEASE}  
         exit 0 ;;  
402      powerpc:machten:*:*)      powerpc:machten:*:*)
403          echo powerpc-apple-machten${UNAME_RELEASE}          echo powerpc-apple-machten${UNAME_RELEASE}
404          exit 0 ;;          exit 0 ;;
# Line 755  EOF Line 734  EOF
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 craynv-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'`
# Line 763  EOF Line 742  EOF
742          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
743          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
744          exit 0 ;;          exit 0 ;;
     5000:UNIX_System_V:4.*:*)  
         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`  
         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`  
         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"  
         exit 0 ;;  
745      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
746          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
747          exit 0 ;;          exit 0 ;;
# Line 778  EOF Line 752  EOF
752          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
753          exit 0 ;;          exit 0 ;;
754      *:FreeBSD:*:*)      *:FreeBSD:*:*)
755          echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`          # Determine whether the default compiler uses glibc.
756            eval $set_cc_for_build
757            sed 's/^        //' << EOF >$dummy.c
758            #include <features.h>
759            #if __GLIBC__ >= 2
760            LIBC=gnu
761            #else
762            LIBC=
763            #endif
764    EOF
765            eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
766            # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
767            # FreeBSD's kernel, but not the complete OS.
768            case ${LIBC} in gnu) kernel_only='k' ;; esac
769            echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
770          exit 0 ;;          exit 0 ;;
771      i*:CYGWIN*:*)      i*:CYGWIN*:*)
772          echo ${UNAME_MACHINE}-pc-cygwin          echo ${UNAME_MACHINE}-pc-cygwin
# Line 804  EOF Line 792  EOF
792      i*:UWIN*:*)      i*:UWIN*:*)
793          echo ${UNAME_MACHINE}-pc-uwin          echo ${UNAME_MACHINE}-pc-uwin
794          exit 0 ;;          exit 0 ;;
     amd64:CYGWIN*:*:*)  
         echo x86_64-unknown-cygwin  
         exit 0 ;;  
795      p*:CYGWIN*:*)      p*:CYGWIN*:*)
796          echo powerpcle-unknown-cygwin          echo powerpcle-unknown-cygwin
797          exit 0 ;;          exit 0 ;;
# Line 830  EOF Line 815  EOF
815      cris:Linux:*:*)      cris:Linux:*:*)
816          echo cris-axis-linux-gnu          echo cris-axis-linux-gnu
817          exit 0 ;;          exit 0 ;;
     crisv32:Linux:*:*)  
         echo crisv32-axis-linux-gnu  
         exit 0 ;;  
     frv:Linux:*:*)  
         echo frv-unknown-linux-gnu  
         exit 0 ;;  
818      ia64:Linux:*:*)      ia64:Linux:*:*)
819          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
820          exit 0 ;;          exit 0 ;;
     m32r*:Linux:*:*)  
         echo ${UNAME_MACHINE}-unknown-linux-gnu  
         exit 0 ;;  
821      m68*:Linux:*:*)      m68*:Linux:*:*)
822          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
823          exit 0 ;;          exit 0 ;;
# Line 1010  EOF Line 986  EOF
986      i*86:atheos:*:*)      i*86:atheos:*:*)
987          echo ${UNAME_MACHINE}-unknown-atheos          echo ${UNAME_MACHINE}-unknown-atheos
988          exit 0 ;;          exit 0 ;;
         i*86:syllable:*:*)  
         echo ${UNAME_MACHINE}-pc-syllable  
         exit 0 ;;  
989      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
990          echo i386-unknown-lynxos${UNAME_RELEASE}          echo i386-unknown-lynxos${UNAME_RELEASE}
991          exit 0 ;;          exit 0 ;;
# Line 1082  EOF Line 1055  EOF
1055      M680?0:D-NIX:5.3:*)      M680?0:D-NIX:5.3:*)
1056          echo m68k-diab-dnix          echo m68k-diab-dnix
1057          exit 0 ;;          exit 0 ;;
1058      M68*:*:R3V[5678]*:*)      M68*:*:R3V[567]*:*)
1059          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1060      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 | S7501*:*: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`
# Line 1140  EOF Line 1113  EOF
1113          # From seanf@swdc.stratus.com.          # From seanf@swdc.stratus.com.
1114          echo i860-stratus-sysv4          echo i860-stratus-sysv4
1115          exit 0 ;;          exit 0 ;;
     i*86:VOS:*:*)  
         # From Paul.Green@stratus.com.  
         echo ${UNAME_MACHINE}-stratus-vos  
         exit 0 ;;  
1116      *:VOS:*:*)      *:VOS:*:*)
1117          # From Paul.Green@stratus.com.          # From Paul.Green@stratus.com.
1118          echo hppa1.1-stratus-vos          echo hppa1.1-stratus-vos
# Line 1186  EOF Line 1155  EOF
1155          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1156          exit 0 ;;          exit 0 ;;
1157      *:Darwin:*:*)      *:Darwin:*:*)
1158          UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown          case `uname -p` in
         case $UNAME_PROCESSOR in  
1159              *86) UNAME_PROCESSOR=i686 ;;              *86) UNAME_PROCESSOR=i686 ;;
1160              unknown) UNAME_PROCESSOR=powerpc ;;              powerpc) UNAME_PROCESSOR=powerpc ;;
1161          esac          esac
1162          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1163          exit 0 ;;          exit 0 ;;
# Line 1204  EOF Line 1172  EOF
1172      *:QNX:*:4*)      *:QNX:*:4*)
1173          echo i386-pc-qnx          echo i386-pc-qnx
1174          exit 0 ;;          exit 0 ;;
1175      NSE-?:NONSTOP_KERNEL:*:*)      NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)
         echo nse-tandem-nsk${UNAME_RELEASE}  
         exit 0 ;;  
     NSR-?: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:*:*)
# Line 1251  EOF Line 1216  EOF
1216      SEI:*:*:SEIUX)      SEI:*:*:SEIUX)
1217          echo mips-sei-seiux${UNAME_RELEASE}          echo mips-sei-seiux${UNAME_RELEASE}
1218          exit 0 ;;          exit 0 ;;
     *:DragonFly:*:*)  
         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`  
         exit 0 ;;  
     *:*VMS:*:*)  
         UNAME_MACHINE=`(uname -p) 2>/dev/null`  
         case "${UNAME_MACHINE}" in  
             A*) echo alpha-dec-vms && exit 0 ;;  
             I*) echo ia64-dec-vms && exit 0 ;;  
             V*) echo vax-dec-vms && exit 0 ;;  
         esac ;;  
     *:XENIX:*:SysV)  
         echo i386-pc-xenix  
         exit 0 ;;  
1219  esac  esac
1220    
1221  #echo '(No uname command or uname output not recognized.)' 1>&2  #echo '(No uname command or uname output not recognized.)' 1>&2
# Line 1423  This script, last modified $timestamp, h Line 1375  This script, last modified $timestamp, h
1375  the operating system you are using. It is advised that you  the operating system you are using. It is advised that you
1376  download the most up to date version of the config scripts from  download the most up to date version of the config scripts from
1377    
1378    http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess      ftp://ftp.gnu.org/pub/gnu/config/
 and  
   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub  
1379    
1380  If the version you run ($0) is already up to date, please  If the version you run ($0) is already up to date, please
1381  send the following data and any information you think might be  send the following data and any information you think might be

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26