⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.guess

📁 oracle数据库备份脚本
💻 GUESS
📖 第 1 页 / 共 3 页
字号:
#! /bin/sh# Attempt to guess a canonical system name.## Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000# Free Software Foundation, Inc.## 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# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.## As a special exception to the GNU General Public License, if you# distribute this file as part of a program that contains a# configuration script generated by Autoconf, you may include it under# the same distribution terms that you use for the rest of that program.# Written by Per Bothner <bothner@cygnus.com>.# Please send patches to <config-patches@gnu.org>.## This script attempts to guess a canonical system name similar to# config.sub.  If it succeeds, it prints the system name on stdout, and# exits with 0.  Otherwise, it exits with 1.## The plan is that this can be called by configure scripts if you# don't specify an explicit system type (host/target name).## Only a few systems have been added to this list; please add others# (but try to keep the structure clean).## This is needed to find uname on a Pyramid OSx when run in the BSD universe.# (ghazi@noc.rutgers.edu 8/24/94.)if (test -f /.attbin/uname) >/dev/null 2>&1 ; then	PATH=$PATH:/.attbin ; export PATHfiUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknownUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknownUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknownUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknowndummy=dummy-$$trap 'rm -f $dummy.c $dummy.o $dummy ${dummy}1.s ${dummy}2.c ; exit 1' 1 2 15# Use $HOST_CC if defined. $CC may point to a cross-compilerif 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      echo 'dummy(){}' >$dummy.c      for c in cc c89 gcc; do 	  ($c $dummy.c -c) >/dev/null 2>&1	  if test $? = 0; then	      CC_FOR_BUILD="$c"; break	  fi      done      rm -f $dummy.c $dummy.o      if test x"$CC_FOR_BUILD" = x; then	CC_FOR_BUILD=no_compiler_found      fi    fi  fifi# First make a best effort at recognizing x86 CPU type and leave it in X86CPU.# If we fail, set X86CPU to UNAME_MACHINE## DJGPP v2 (or 2.03 at least) always gives "pc" for uname -m, and the# OEM for uname -s.  Eg. pc:MS-DOS:6:2 on MS-DOS 6.21.  The list of# possible OEMs is in src/libc/dos/dos/getdos_v.c of djlsr203.zip, but# just pc:*:*:* seems ok.case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in    i?86:*:*:* | i86pc:*:*:* | pc:*:*:*)	case "${UNAME_MACHINE}" in	i86pc | pc)  UNAME_MACHINE=i386 ;;	esac	cat <<EOF >${dummy}1.s	.globl cpuid	.globl _cpuidcpuid:_cpuid:	pushl %esi	pushl %ebx	movl 16(%esp),%eax	.byte 0x0f	.byte 0xa2	movl 12(%esp),%esi	movl %ebx,(%esi)	movl %edx,4(%esi)	movl %ecx,8(%esi)	popl %ebx	popl %esi	retEOF	cat <<EOF >${dummy}2.cmain (){  char vendor_string[13];  char dummy_string[12];  long fms;  int family, model;  char *modelstr;  cpuid (vendor_string, 0);  vendor_string[12] = 0;  fms = cpuid (dummy_string, 1);  family = (fms >> 8) & 15;  model = (fms >> 4) & 15;  modelstr = "i486";  if (strcmp (vendor_string, "GenuineIntel") == 0)    {      switch (family)	{	case 5:	  if (model <= 2)	    modelstr = "pentium";	  else if (model >= 4)	    modelstr = "pentiummmx";	  break;	case 6:	  if (model == 1)	    modelstr = "pentiumpro";	  else if (model <= 6)	    modelstr = "pentium2";	  else	    modelstr = "pentium3";	  break;	}    }  else if (strcmp (vendor_string, "AuthenticAMD") == 0)    {      switch (family)	{	case 5:	  if (model <= 3)	    modelstr = "k5";	  else if (model <= 7)	    modelstr = "k6";	  else if (model <= 8)	    modelstr = "k62";	  else if (model <= 9)	    modelstr = "k63";	  break;	case 6:	  modelstr = "athlon";	  break;	}    }  else if (strcmp (vendor_string, "CyrixInstead") == 0)    {      /* Should recognize Cyrix' processors too.  */    }  printf ("%s\n", modelstr);  return 0;}EOF	$CC_FOR_BUILD ${dummy}1.s ${dummy}2.c -o $dummy >/dev/null 2>&1	if test "$?" = 0 ; then	  X86CPU=`./$dummy`	fi	# Default to believing uname -m if the program fails to compile or	# run.  Will fail to run on 386 since cpuid was only added on 486.	if test -z "$X86CPU"	then	    X86CPU="$UNAME_MACHINE"	fi	rm -f ${dummy}1.s ${dummy}2.c $dummy  ;;esac# Note: order is significant - the case branches are not exclusive.case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in    alpha:OSF1:*:*)	if test $UNAME_RELEASE = "V4.0"; then		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`	fi	# A Vn.n version is a released version.	# A Tn.n version is a released field test version.	# A Xn.n version is an unreleased experimental baselevel.	# 1.2 uses "1.2" for uname -r.	cat <<EOF >$dummy.s	.data\$Lformat:	.byte 37,100,45,37,120,10,0	# "%d-%x\n"	.text	.globl main	.align 4	.ent mainmain:	.frame \$30,16,\$26,0	ldgp \$29,0(\$27)	.prologue 1	.long 0x47e03d80 # implver \$0	lda \$2,-1	.long 0x47e20c21 # amask \$2,\$1	lda \$16,\$Lformat	mov \$0,\$17	not \$1,\$18	jsr \$26,printf	ldgp \$29,0(\$26)	mov 0,\$16	jsr \$26,exit	.end mainEOF	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null	if test "$?" = 0 ; then		case `./$dummy` in			0-0)				UNAME_MACHINE="alpha"				;;			1-0)				UNAME_MACHINE="alphaev5"				;;			1-1)				UNAME_MACHINE="alphaev56"				;;			1-101)				UNAME_MACHINE="alphapca56"				;;			2-303)				UNAME_MACHINE="alphaev6"				;;			2-307)				UNAME_MACHINE="alphaev67"				;;		esac	fi	rm -f $dummy.s $dummy	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`	exit 0 ;;    alpha:NetBSD:*:* | alpha:FreeBSD:*:*)	cat <<EOF >$dummy.s	.globl main	.ent mainmain:	.frame \$30,0,\$26,0	.prologue 0	.long 0x47e03d80 # implver $0	lda \$2,259	.long 0x47e20c21 # amask $2,$1	srl \$1,8,\$2	sll \$2,2,\$2	sll \$0,3,\$0	addl \$1,\$0,\$0	addl \$2,\$0,\$0	ret \$31,(\$26),1	.end mainEOF	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null	if test "$?" = 0 ; then		./$dummy		case "$?" in			7)				UNAME_MACHINE="alpha"				;;			15)				UNAME_MACHINE="alphaev5"				;;			14)				UNAME_MACHINE="alphaev56"				;;			10)				UNAME_MACHINE="alphapca56"				;;			16)				UNAME_MACHINE="alphaev6"				;;		esac	fi	rm -f $dummy.s $dummy	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM}${UNAME_RELEASE} | sed -e 's/^[VTX]//' -e 's/[-(].*//' | tr [[A-Z]] [[a-z]]`	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 ;;    21064:Windows_NT:50:3)	echo alpha-dec-winnt3.5	exit 0 ;;    Amiga*:UNIX_System_V:4.0:*)	echo m68k-cbm-sysv4	exit 0;;    amiga:NetBSD:*:*)      echo m68k-cbm-netbsd${UNAME_RELEASE}      exit 0 ;;    amiga:OpenBSD:*:*)	echo m68k-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    *:[Aa]miga[Oo][Ss]:*:*)	echo ${UNAME_MACHINE}-unknown-amigaos	exit 0 ;;    arc64:OpenBSD:*:*)	echo mips64el-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    arc:OpenBSD:*:*)	echo mipsel-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    hkmips:OpenBSD:*:*)	echo mips-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    pmax:OpenBSD:*:*)	echo mipsel-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    sgi:OpenBSD:*:*)	echo mips-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    wgrisc:OpenBSD:*:*)	echo mipsel-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    *:OS/390:*:*)	echo i370-ibm-openedition	exit 0 ;;    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)	echo arm-acorn-riscix${UNAME_RELEASE}	exit 0;;    arm32:NetBSD:*:*)	echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`	exit 0 ;;    SR2?01:HI-UX/MPP:*:*)	echo hppa1.1-hitachi-hiuxmpp	exit 0;;    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.	if test "`(/bin/universe) 2>/dev/null`" = att ; then		echo pyramid-pyramid-sysv3	else		echo pyramid-pyramid-bsd	fi	exit 0 ;;    NILE*:*:*:dcosx)	echo pyramid-pyramid-svr4	exit 0 ;;    sun4H:SunOS:5.*:*)	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`	exit 0 ;;    sun4[md]:SunOS:5.*:*)	echo sparcv8-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`	exit 0 ;;    sun4u:SunOS:5.*:*)	echo sparcv9-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`	exit 0 ;;    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`	exit 0 ;;    i386:SunOS:5.*:*)	echo ${X86CPU}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`	exit 0 ;;    sun4[md]:SunOS:*:*)	case "`/usr/bin/arch -k`" in	    Series*|S4*)		UNAME_RELEASE=`uname -v`		;;	esac	# Japanese Language versions have a version number like `4.1.3-JL'.	echo sparcv8-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`	exit 0 ;;    sun4*:SunOS:*:*)	case "`/usr/bin/arch -k`" in	    Series*|S4*)		UNAME_RELEASE=`uname -v`		;;	esac	# Japanese Language versions have a version number like `4.1.3-JL'.	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`	exit 0 ;;    sun3*:SunOS:*:*)	echo m68k-sun-sunos${UNAME_RELEASE}	exit 0 ;;    sun*:*:4.2BSD:*)	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3	case "`/bin/arch`" in	    sun3)		echo m68k-sun-sunos${UNAME_RELEASE}		;;	    sun4)		echo sparc-sun-sunos${UNAME_RELEASE}		;;	esac	exit 0 ;;    aushp:SunOS:*:*)	echo sparc-auspex-sunos${UNAME_RELEASE}	exit 0 ;;    atari*:NetBSD:*:*)	echo m68k-atari-netbsd${UNAME_RELEASE}	exit 0 ;;    atari*:OpenBSD:*:*)	echo m68k-unknown-openbsd${UNAME_RELEASE}	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:*:*)	echo m68k-sun-netbsd${UNAME_RELEASE}	exit 0 ;;    sun3*:OpenBSD:*:*)	echo m68k-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    mac68k:NetBSD:*:*)	echo m68k-apple-netbsd${UNAME_RELEASE}	exit 0 ;;    mac68k:OpenBSD:*:*)	echo m68k-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;    macppc:NetBSD:*:*)	echo powerpc-apple-netbsd${UNAME_RELEASE}	exit 0 ;;    mvme68k:OpenBSD:*:*)	echo m68k-unknown-openbsd${UNAME_RELEASE}	exit 0 ;;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -