/[gcl]/gcl/gmp3/configfsf.guess
ViewVC logotype

Diff of /gcl/gmp3/configfsf.guess

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

revision 1.4 by camm, Thu Nov 6 16:08:07 2003 UTC revision 1.5 by camm, Thu Aug 11 21:32:50 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 Free Software Foundation, Inc.  #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5    
6  timestamp='2003-10-07'  timestamp='2005-04-22'
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  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
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 ;;
200        amd64:OpenBSD:*:*)
201            echo x86_64-unknown-openbsd${UNAME_RELEASE}
202            exit 0 ;;
203      amiga:OpenBSD:*:*)      amiga:OpenBSD:*:*)
204          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
205          exit 0 ;;          exit 0 ;;
206      arc:OpenBSD:*:*)      cats:OpenBSD:*:*)
207          echo mipsel-unknown-openbsd${UNAME_RELEASE}          echo arm-unknown-openbsd${UNAME_RELEASE}
208          exit 0 ;;          exit 0 ;;
209      hp300:OpenBSD:*:*)      hp300:OpenBSD:*:*)
210          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
211          exit 0 ;;          exit 0 ;;
212        luna88k:OpenBSD:*:*)
213            echo m88k-unknown-openbsd${UNAME_RELEASE}
214            exit 0 ;;
215      mac68k:OpenBSD:*:*)      mac68k:OpenBSD:*:*)
216          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
217          exit 0 ;;          exit 0 ;;
# Line 221  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 227  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
227      mvmeppc:OpenBSD:*:*)      mvmeppc:OpenBSD:*:*)
228          echo powerpc-unknown-openbsd${UNAME_RELEASE}          echo powerpc-unknown-openbsd${UNAME_RELEASE}
229          exit 0 ;;          exit 0 ;;
     pmax:OpenBSD:*:*)  
         echo mipsel-unknown-openbsd${UNAME_RELEASE}  
         exit 0 ;;  
230      sgi:OpenBSD:*:*)      sgi:OpenBSD:*:*)
231          echo mipseb-unknown-openbsd${UNAME_RELEASE}          echo mips64-unknown-openbsd${UNAME_RELEASE}
232          exit 0 ;;          exit 0 ;;
233      sun3:OpenBSD:*:*)      sun3:OpenBSD:*:*)
234          echo m68k-unknown-openbsd${UNAME_RELEASE}          echo m68k-unknown-openbsd${UNAME_RELEASE}
235          exit 0 ;;          exit 0 ;;
     wgrisc:OpenBSD:*:*)  
         echo mipsel-unknown-openbsd${UNAME_RELEASE}  
         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 ;;
239        *:ekkoBSD:*:*)
240            echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
241            exit 0 ;;
242        macppc:MirBSD:*:*)
243            echo powerppc-unknown-mirbsd${UNAME_RELEASE}
244            exit 0 ;;
245        *:MirBSD:*:*)
246            echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
247            exit 0 ;;
248      alpha:OSF1:*:*)      alpha:OSF1:*:*)
249          if test $UNAME_RELEASE = "V4.0"; then          case $UNAME_RELEASE in
250            *4.0)
251                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`                  UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
252          fi                  ;;
253            *5.*)
254                    UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
255                    ;;
256            esac
257          # According to Compaq, /usr/sbin/psrinfo has been available on          # According to Compaq, /usr/sbin/psrinfo has been available on
258          # OSF/1 and Tru64 systems produced since 1995.  I hope that          # OSF/1 and Tru64 systems produced since 1995.  I hope that
259          # covers most systems running today.  This code pipes the CPU          # covers most systems running today.  This code pipes the CPU
# Line 277  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 291  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
291              "EV7.9 (21364A)")              "EV7.9 (21364A)")
292                  UNAME_MACHINE="alphaev79" ;;                  UNAME_MACHINE="alphaev79" ;;
293          esac          esac
294            # A Pn.n version is a patched version.
295          # A Vn.n version is a released version.          # A Vn.n version is a released version.
296          # A Tn.n version is a released field test version.          # A Tn.n version is a released field test version.
297          # A Xn.n version is an unreleased experimental baselevel.          # A Xn.n version is an unreleased experimental baselevel.
298          # 1.2 uses "1.2" for uname -r.          # 1.2 uses "1.2" for uname -r.
299          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
         exit 0 ;;  
     Alpha*:OpenVMS:*:*)  
         echo alpha-hp-vms  
300          exit 0 ;;          exit 0 ;;
301      Alpha\ *:Windows_NT*:*)      Alpha\ *:Windows_NT*:*)
302          # 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 307  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 319  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
319      *:OS/390:*:*)      *:OS/390:*:*)
320          echo i370-ibm-openedition          echo i370-ibm-openedition
321          exit 0 ;;          exit 0 ;;
322        *:z/VM:*:*)
323            echo s390-ibm-zvmoe
324            exit 0 ;;
325        *:OS400:*:*)
326            echo powerpc-ibm-os400
327            exit 0 ;;
328      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
329          echo arm-acorn-riscix${UNAME_RELEASE}          echo arm-acorn-riscix${UNAME_RELEASE}
330          exit 0;;          exit 0;;
# Line 327  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 345  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
345      DRS?6000:unix:4.0:6*)      DRS?6000:unix:4.0:6*)
346          echo sparc-icl-nx6          echo sparc-icl-nx6
347          exit 0 ;;          exit 0 ;;
348      DRS?6000:UNIX_SV:4.2*:7*)      DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
349          case `/usr/bin/uname -p` in          case `/usr/bin/uname -p` in
350              sparc) echo sparc-icl-nx7 && exit 0 ;;              sparc) echo sparc-icl-nx7 && exit 0 ;;
351          esac ;;          esac ;;
# Line 399  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ Line 417  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
417      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
418          echo m68k-unknown-mint${UNAME_RELEASE}          echo m68k-unknown-mint${UNAME_RELEASE}
419          exit 0 ;;          exit 0 ;;
420        m68k:machten:*:*)
421            echo m68k-apple-machten${UNAME_RELEASE}
422            exit 0 ;;
423      powerpc:machten:*:*)      powerpc:machten:*:*)
424          echo powerpc-apple-machten${UNAME_RELEASE}          echo powerpc-apple-machten${UNAME_RELEASE}
425          exit 0 ;;          exit 0 ;;
# Line 734  EOF Line 755  EOF
755          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756          exit 0 ;;          exit 0 ;;
757      *:UNICOS/mp:*:*)      *:UNICOS/mp:*:*)
758          echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'          echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759          exit 0 ;;          exit 0 ;;
760      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`          FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
# Line 742  EOF Line 763  EOF
763          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
764          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
765          exit 0 ;;          exit 0 ;;
766        5000:UNIX_System_V:4.*:*)
767            FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
768            FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
769            echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
770            exit 0 ;;
771      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
772          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
773          exit 0 ;;          exit 0 ;;
# Line 752  EOF Line 778  EOF
778          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}          echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779          exit 0 ;;          exit 0 ;;
780      *:FreeBSD:*:*)      *:FreeBSD:*:*)
781          # Determine whether the default compiler uses glibc.          echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
         eval $set_cc_for_build  
         sed 's/^        //' << EOF >$dummy.c  
         #include <features.h>  
         #if __GLIBC__ >= 2  
         LIBC=gnu  
         #else  
         LIBC=  
         #endif  
 EOF  
         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`  
         # GNU/KFreeBSD systems have a "k" prefix to indicate we are using  
         # FreeBSD's kernel, but not the complete OS.  
         case ${LIBC} in gnu) kernel_only='k' ;; esac  
         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}  
782          exit 0 ;;          exit 0 ;;
783      i*:CYGWIN*:*)      i*:CYGWIN*:*)
784          echo ${UNAME_MACHINE}-pc-cygwin          echo ${UNAME_MACHINE}-pc-cygwin
# Line 792  EOF Line 804  EOF
804      i*:UWIN*:*)      i*:UWIN*:*)
805          echo ${UNAME_MACHINE}-pc-uwin          echo ${UNAME_MACHINE}-pc-uwin
806          exit 0 ;;          exit 0 ;;
807        amd64:CYGWIN*:*:*)
808            echo x86_64-unknown-cygwin
809            exit 0 ;;
810      p*:CYGWIN*:*)      p*:CYGWIN*:*)
811          echo powerpcle-unknown-cygwin          echo powerpcle-unknown-cygwin
812          exit 0 ;;          exit 0 ;;
# Line 815  EOF Line 830  EOF
830      cris:Linux:*:*)      cris:Linux:*:*)
831          echo cris-axis-linux-gnu          echo cris-axis-linux-gnu
832          exit 0 ;;          exit 0 ;;
833        crisv32:Linux:*:*)
834            echo crisv32-axis-linux-gnu
835            exit 0 ;;
836        frv:Linux:*:*)
837            echo frv-unknown-linux-gnu
838            exit 0 ;;
839      ia64:Linux:*:*)      ia64:Linux:*:*)
840          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
841          exit 0 ;;          exit 0 ;;
842        m32r*:Linux:*:*)
843            echo ${UNAME_MACHINE}-unknown-linux-gnu
844            exit 0 ;;
845      m68*:Linux:*:*)      m68*:Linux:*:*)
846          echo ${UNAME_MACHINE}-unknown-linux-gnu          echo ${UNAME_MACHINE}-unknown-linux-gnu
847          exit 0 ;;          exit 0 ;;
# Line 986  EOF Line 1010  EOF
1010      i*86:atheos:*:*)      i*86:atheos:*:*)
1011          echo ${UNAME_MACHINE}-unknown-atheos          echo ${UNAME_MACHINE}-unknown-atheos
1012          exit 0 ;;          exit 0 ;;
1013            i*86:syllable:*:*)
1014            echo ${UNAME_MACHINE}-pc-syllable
1015            exit 0 ;;
1016      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*:*)
1017          echo i386-unknown-lynxos${UNAME_RELEASE}          echo i386-unknown-lynxos${UNAME_RELEASE}
1018          exit 0 ;;          exit 0 ;;
# Line 1055  EOF Line 1082  EOF
1082      M680?0:D-NIX:5.3:*)      M680?0:D-NIX:5.3:*)
1083          echo m68k-diab-dnix          echo m68k-diab-dnix
1084          exit 0 ;;          exit 0 ;;
1085      M68*:*:R3V[567]*:*)      M68*:*:R3V[5678]*:*)
1086          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;          test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1087      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)      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)
1088          OS_REL=''          OS_REL=''
1089          test -r /etc/.relid \          test -r /etc/.relid \
1090          && 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 1113  EOF Line 1140  EOF
1140          # From seanf@swdc.stratus.com.          # From seanf@swdc.stratus.com.
1141          echo i860-stratus-sysv4          echo i860-stratus-sysv4
1142          exit 0 ;;          exit 0 ;;
1143        i*86:VOS:*:*)
1144            # From Paul.Green@stratus.com.
1145            echo ${UNAME_MACHINE}-stratus-vos
1146            exit 0 ;;
1147      *:VOS:*:*)      *:VOS:*:*)
1148          # From Paul.Green@stratus.com.          # From Paul.Green@stratus.com.
1149          echo hppa1.1-stratus-vos          echo hppa1.1-stratus-vos
# Line 1155  EOF Line 1186  EOF
1186          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}          echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1187          exit 0 ;;          exit 0 ;;
1188      *:Darwin:*:*)      *:Darwin:*:*)
1189          case `uname -p` in          UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1190            case $UNAME_PROCESSOR in
1191              *86) UNAME_PROCESSOR=i686 ;;              *86) UNAME_PROCESSOR=i686 ;;
1192              powerpc) UNAME_PROCESSOR=powerpc ;;              unknown) UNAME_PROCESSOR=powerpc ;;
1193          esac          esac
1194          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}          echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1195          exit 0 ;;          exit 0 ;;
# Line 1172  EOF Line 1204  EOF
1204      *:QNX:*:4*)      *:QNX:*:4*)
1205          echo i386-pc-qnx          echo i386-pc-qnx
1206          exit 0 ;;          exit 0 ;;
1207      NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)      NSE-?:NONSTOP_KERNEL:*:*)
1208            echo nse-tandem-nsk${UNAME_RELEASE}
1209            exit 0 ;;
1210        NSR-?:NONSTOP_KERNEL:*:*)
1211          echo nsr-tandem-nsk${UNAME_RELEASE}          echo nsr-tandem-nsk${UNAME_RELEASE}
1212          exit 0 ;;          exit 0 ;;
1213      *:NonStop-UX:*:*)      *:NonStop-UX:*:*)
# Line 1216  EOF Line 1251  EOF
1251      SEI:*:*:SEIUX)      SEI:*:*:SEIUX)
1252          echo mips-sei-seiux${UNAME_RELEASE}          echo mips-sei-seiux${UNAME_RELEASE}
1253          exit 0 ;;          exit 0 ;;
1254        *:DragonFly:*:*)
1255            echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1256            exit 0 ;;
1257        *:*VMS:*:*)
1258            UNAME_MACHINE=`(uname -p) 2>/dev/null`
1259            case "${UNAME_MACHINE}" in
1260                A*) echo alpha-dec-vms && exit 0 ;;
1261                I*) echo ia64-dec-vms && exit 0 ;;
1262                V*) echo vax-dec-vms && exit 0 ;;
1263            esac ;;
1264        *:XENIX:*:SysV)
1265            echo i386-pc-xenix
1266            exit 0 ;;
1267  esac  esac
1268    
1269  #echo '(No uname command or uname output not recognized.)' 1>&2  #echo '(No uname command or uname output not recognized.)' 1>&2
# Line 1375  This script, last modified $timestamp, h Line 1423  This script, last modified $timestamp, h
1423  the operating system you are using. It is advised that you  the operating system you are using. It is advised that you
1424  download the most up to date version of the config scripts from  download the most up to date version of the config scripts from
1425    
1426      ftp://ftp.gnu.org/pub/gnu/config/    http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1427    and
1428      http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1429    
1430  If the version you run ($0) is already up to date, please  If the version you run ($0) is already up to date, please
1431  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.4  
changed lines
  Added in v.1.5

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