Skip to content
Snippets Groups Projects
config.sub 34.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • 	ppc | ppcbe)	basic_machine=powerpc-unknown
    
    	ppc-* | ppcbe-*)
    		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    
    		;;
    	ppcle | powerpclittle | ppc-le | powerpc-little)
    		basic_machine=powerpcle-unknown
    		;;
    	ppcle-* | powerpclittle-*)
    		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    		;;
    	ppc64)	basic_machine=powerpc64-unknown
    		;;
    	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
    		;;
    	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
    		basic_machine=powerpc64le-unknown
    		;;
    	ppc64le-* | powerpc64little-*)
    		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
    		;;
    	ps2)
    		basic_machine=i386-ibm
    		;;
    	pw32)
    		basic_machine=i586-unknown
    		os=-pw32
    		;;
    
    	rdos | rdos64)
    		basic_machine=x86_64-pc
    		os=-rdos
    		;;
    	rdos32)
    
    		basic_machine=i386-pc
    		os=-rdos
    		;;
    	rom68k)
    		basic_machine=m68k-rom68k
    		os=-coff
    		;;
    	rm[46]00)
    		basic_machine=mips-siemens
    		;;
    	rtpc | rtpc-*)
    		basic_machine=romp-ibm
    		;;
    	s390 | s390-*)
    		basic_machine=s390-ibm
    		;;
    	s390x | s390x-*)
    		basic_machine=s390x-ibm
    		;;
    	sa29200)
    		basic_machine=a29k-amd
    		os=-udi
    		;;
    	sb1)
    		basic_machine=mipsisa64sb1-unknown
    		;;
    	sb1el)
    		basic_machine=mipsisa64sb1el-unknown
    		;;
    
    	sde)
    		basic_machine=mipsisa32-sde
    		os=-elf
    		;;
    
    	sei)
    		basic_machine=mips-sei
    		os=-seiux
    		;;
    	sequent)
    		basic_machine=i386-sequent
    		;;
    	sh)
    		basic_machine=sh-hitachi
    		os=-hms
    		;;
    
    	sh5el)
    		basic_machine=sh5le-unknown
    		;;
    
    	sh64)
    		basic_machine=sh64-unknown
    		;;
    	sparclite-wrs | simso-wrs)
    		basic_machine=sparclite-wrs
    		os=-vxworks
    		;;
    	sps7)
    		basic_machine=m68k-bull
    		os=-sysv2
    		;;
    	spur)
    		basic_machine=spur-unknown
    		;;
    	st2000)
    		basic_machine=m68k-tandem
    		;;
    	stratus)
    		basic_machine=i860-stratus
    		os=-sysv4
    		;;
    
    	strongarm-* | thumb-*)
    		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
    		;;
    
    	sun2)
    		basic_machine=m68000-sun
    		;;
    	sun2os3)
    		basic_machine=m68000-sun
    		os=-sunos3
    		;;
    	sun2os4)
    		basic_machine=m68000-sun
    		os=-sunos4
    		;;
    	sun3os3)
    		basic_machine=m68k-sun
    		os=-sunos3
    		;;
    	sun3os4)
    		basic_machine=m68k-sun
    		os=-sunos4
    		;;
    	sun4os3)
    		basic_machine=sparc-sun
    		os=-sunos3
    		;;
    	sun4os4)
    		basic_machine=sparc-sun
    		os=-sunos4
    		;;
    	sun4sol2)
    		basic_machine=sparc-sun
    		os=-solaris2
    		;;
    	sun3 | sun3-*)
    		basic_machine=m68k-sun
    		;;
    	sun4)
    		basic_machine=sparc-sun
    		;;
    	sun386 | sun386i | roadrunner)
    		basic_machine=i386-sun
    		;;
    	sv1)
    		basic_machine=sv1-cray
    		os=-unicos
    		;;
    	symmetry)
    		basic_machine=i386-sequent
    		os=-dynix
    		;;
    	t3e)
    		basic_machine=alphaev5-cray
    		os=-unicos
    		;;
    	t90)
    		basic_machine=t90-cray
    		os=-unicos
    		;;
    
    		basic_machine=$basic_machine-unknown
    
    	tx39)
    		basic_machine=mipstx39-unknown
    		;;
    	tx39el)
    		basic_machine=mipstx39el-unknown
    		;;
    	toad1)
    		basic_machine=pdp10-xkl
    		os=-tops20
    		;;
    	tower | tower-32)
    		basic_machine=m68k-ncr
    		;;
    	tpf)
    		basic_machine=s390x-ibm
    		os=-tpf
    		;;
    	udi29k)
    		basic_machine=a29k-amd
    		os=-udi
    		;;
    	ultra3)
    		basic_machine=a29k-nyu
    		os=-sym1
    		;;
    	v810 | necv810)
    		basic_machine=v810-nec
    		os=-none
    		;;
    	vaxv)
    		basic_machine=vax-dec
    		os=-sysv
    		;;
    	vms)
    		basic_machine=vax-dec
    		os=-vms
    		;;
    	vpp*|vx|vx-*)
    		basic_machine=f301-fujitsu
    		;;
    	vxworks960)
    		basic_machine=i960-wrs
    		os=-vxworks
    		;;
    	vxworks68)
    		basic_machine=m68k-wrs
    		os=-vxworks
    		;;
    	vxworks29k)
    		basic_machine=a29k-wrs
    		os=-vxworks
    		;;
    	w65*)
    		basic_machine=w65-wdc
    		os=-none
    		;;
    	w89k-*)
    		basic_machine=hppa1.1-winbond
    		os=-proelf
    		;;
    	xbox)
    		basic_machine=i686-pc
    		os=-mingw32
    		;;
    	xps | xps100)
    		basic_machine=xps100-honeywell
    		;;
    
    	xscale-* | xscalee[bl]-*)
    		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
    		;;
    
    	ymp)
    		basic_machine=ymp-cray
    		os=-unicos
    		;;
    	z8k-*-coff)
    		basic_machine=z8k-unknown
    		os=-sim
    		;;
    
    	z80-*-coff)
    		basic_machine=z80-unknown
    		os=-sim
    		;;
    
    	none)
    		basic_machine=none-none
    		os=-none
    		;;
    
    # Here we handle the default manufacturer of certain CPU types.  It is in
    # some cases the only manufacturer, in others, it is the most popular.
    	w89k)
    		basic_machine=hppa1.1-winbond
    		;;
    	op50n)
    		basic_machine=hppa1.1-oki
    		;;
    	op60c)
    		basic_machine=hppa1.1-oki
    		;;
    	romp)
    		basic_machine=romp-ibm
    		;;
    	mmix)
    		basic_machine=mmix-knuth
    		;;
    	rs6000)
    		basic_machine=rs6000-ibm
    		;;
    	vax)
    		basic_machine=vax-dec
    		;;
    	pdp10)
    		# there are many clones, so DEC is not a safe bet
    		basic_machine=pdp10-unknown
    		;;
    	pdp11)
    		basic_machine=pdp11-dec
    		;;
    	we32k)
    		basic_machine=we32k-att
    		;;
    
    	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
    
    		basic_machine=sh-unknown
    		;;
    	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
    		basic_machine=sparc-sun
    		;;
    	cydra)
    		basic_machine=cydra-cydrome
    		;;
    	orion)
    		basic_machine=orion-highlevel
    		;;
    	orion105)
    		basic_machine=clipper-highlevel
    		;;
    	mac | mpw | mac-mpw)
    		basic_machine=m68k-apple
    		;;
    	pmac | pmac-mpw)
    		basic_machine=powerpc-apple
    		;;
    	*-unknown)
    		# Make sure to match an already-canonicalized machine name.
    		;;
    	*)
    		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
    		exit 1
    		;;
    esac
    
    # Here we canonicalize certain aliases for manufacturers.
    case $basic_machine in
    	*-digital*)
    		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
    		;;
    	*-commodore*)
    		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
    		;;
    	*)
    		;;
    esac
    
    # Decode manufacturer-specific aliases for certain operating systems.
    
    if [ x"$os" != x"" ]
    then
    case $os in
    
    	# First match some system type aliases
    	# that might get confused with valid system types.
    
    	# -solaris* is a basic system type, with this one exception.
    
    	-solaris1 | -solaris1.*)
    		os=`echo $os | sed -e 's|solaris1|sunos4|'`
    		;;
    	-solaris)
    		os=-solaris2
    		;;
    	-svr4*)
    		os=-sysv4
    		;;
    	-unixware*)
    		os=-sysv4.2uw
    		;;
    	-gnu/linux*)
    		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
    		;;
    	# First accept the basic system types.
    	# The portable systems comes first.
    	# Each alternative MUST END IN A *, to match a version number.
    	# -sysv* is not here because it comes later, after sysvr4.
    	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
    
    	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
    
    	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
    
    	      | -sym* | -kopensolaris* | -plan9* \
    
    	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
    
    	      | -aos* | -aros* \
    
    	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
    
    	      | -bitrig* | -openbsd* | -solidbsd* \
    
    	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
    	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    
    	      | -chorusos* | -chorusrdb* | -cegcc* \
    
    	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
    	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
    
    	      | -uxpv* | -beos* | -mpeix* | -udk* \
    	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
    
    	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
    
    	# Remember, each alternative MUST END IN *, to match a version number.
    		;;
    	-qnx*)
    		case $basic_machine in
    		    x86-* | i*86-*)
    			;;
    		    *)
    			os=-nto$os
    			;;
    		esac
    		;;
    	-nto-qnx*)
    		;;
    	-nto*)
    		os=`echo $os | sed -e 's|nto|nto-qnx|'`
    		;;
    	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
    	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    		;;
    	-mac*)
    		os=`echo $os | sed -e 's|mac|macos|'`
    		;;
    	-linux-dietlibc)
    		os=-linux-dietlibc
    		;;
    	-linux*)
    		os=`echo $os | sed -e 's|linux|linux-gnu|'`
    		;;
    	-sunos5*)
    		os=`echo $os | sed -e 's|sunos5|solaris2|'`
    		;;
    	-sunos6*)
    		os=`echo $os | sed -e 's|sunos6|solaris3|'`
    		;;
    	-opened*)
    		os=-openedition
    		;;
    
    		os=-os400
    		;;
    	-wince*)
    		os=-wince
    		;;
    	-osfrose*)
    		os=-osfrose
    		;;
    	-osf*)
    		os=-osf
    		;;
    	-utek*)
    		os=-bsd
    		;;
    	-dynix*)
    		os=-bsd
    		;;
    	-acis*)
    		os=-aos
    		;;
    	-atheos*)
    		os=-atheos
    		;;
    	-syllable*)
    		os=-syllable
    		;;
    	-386bsd)
    		os=-bsd
    		;;
    	-ctix* | -uts*)
    		os=-sysv
    		;;
    	-nova*)
    		os=-rtmk-nova
    		;;
    	-ns2 )
    		os=-nextstep2
    		;;
    	-nsk*)
    		os=-nsk
    		;;
    	# Preserve the version number of sinix5.
    	-sinix5.*)
    		os=`echo $os | sed -e 's|sinix|sysv|'`
    		;;
    	-sinix*)
    		os=-sysv4
    		;;
    
    		os=-tpf
    		;;
    	-triton*)
    		os=-sysv3
    		;;
    	-oss*)
    		os=-sysv3
    		;;
    	-svr4)
    		os=-sysv4
    		;;
    	-svr3)
    		os=-sysv3
    		;;
    	-sysvr4)
    		os=-sysv4
    		;;
    	# This must come after -sysvr4.
    	-sysv*)
    		;;
    	-ose*)
    		os=-ose
    		;;
    	-es1800*)
    		os=-ose
    		;;
    	-xenix)
    		os=-xenix
    		;;
    	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    		os=-mint
    		;;
    	-aros*)
    		os=-aros
    		;;
    	-zvmoe)
    		os=-zvmoe
    		;;
    
    	-none)
    		;;
    	*)
    		# Get rid of the `-' at the beginning of $os.
    		os=`echo $os | sed 's/[^-]*-//'`
    		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
    		exit 1
    		;;
    esac
    else
    
    # Here we handle the default operating systems that come with various machines.
    # The value should be what the vendor currently ships out the door with their
    # machine or put another way, the most popular os provided with the machine.
    
    # Note that if you're going to try to match "-MANUFACTURER" here (say,
    # "-sun"), then you have to tell the case statement up towards the top
    # that MANUFACTURER isn't an operating system.  Otherwise, code above
    # will signal an error saying that MANUFACTURER isn't an operating
    # system, and we'll never get to this point.
    
    case $basic_machine in
    
    	c4x-* | tic4x-*)
    		os=-coff
    		;;
    
    	c8051-*)
    		os=-elf
    		;;
    
    	hexagon-*)
    		os=-elf
    		;;
    	tic54x-*)
    		os=-coff
    		;;
    	tic55x-*)
    		os=-coff
    		;;
    	tic6x-*)
    		os=-coff
    
    	# This must come before the *-dec entry.
    	pdp10-*)
    		os=-tops20
    		;;
    	pdp11-*)
    		os=-none
    		;;
    	*-dec | vax-*)
    		os=-ultrix4.2
    		;;
    	m68*-apollo)
    		os=-domain
    		;;
    	i386-sun)
    		os=-sunos4.0.2
    		;;
    	m68000-sun)
    		os=-sunos3
    		;;
    	m68*-cisco)
    		os=-aout
    		;;
    
    	mips*-cisco)
    		os=-elf
    		;;
    	mips*-*)
    		os=-elf
    		;;
    	or32-*)
    		os=-coff
    		;;
    	*-tti)	# must be before sparc entry or we get the wrong os.
    		os=-sysv3
    		;;
    	sparc-* | *-sun)
    		os=-sunos4.1.1
    		;;
    	*-be)
    		os=-beos
    		;;
    	*-haiku)
    		os=-haiku
    		;;
    	*-ibm)
    		os=-aix
    		;;
    
    		os=-mmixware
    		;;
    	*-wec)
    		os=-proelf
    		;;
    	*-winbond)
    		os=-proelf
    		;;
    	*-oki)
    		os=-proelf
    		;;
    	*-hp)
    		os=-hpux
    		;;
    	*-hitachi)
    		os=-hiux
    		;;
    	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
    		os=-sysv
    		;;
    	*-cbm)
    		os=-amigaos
    		;;
    	*-dg)
    		os=-dgux
    		;;
    	*-dolphin)
    		os=-sysv3
    		;;
    	m68k-ccur)
    		os=-rtu
    		;;
    	m88k-omron*)
    		os=-luna
    		;;
    	*-next )
    		os=-nextstep
    		;;
    	*-sequent)
    		os=-ptx
    		;;
    	*-crds)
    		os=-unos
    		;;
    	*-ns)
    		os=-genix
    		;;
    	i370-*)
    		os=-mvs
    		;;
    	*-next)
    		os=-nextstep3
    		;;
    	*-gould)
    		os=-sysv
    		;;
    	*-highlevel)
    		os=-bsd
    		;;
    	*-encore)
    		os=-bsd
    		;;
    	*-sgi)
    		os=-irix
    		;;
    	*-siemens)
    		os=-sysv4
    		;;
    	*-masscomp)
    		os=-rtu
    		;;
    	f30[01]-fujitsu | f700-fujitsu)
    		os=-uxpv
    		;;
    	*-rom68k)
    		os=-coff
    		;;
    	*-*bug)
    		os=-coff
    		;;
    	*-apple)
    		os=-macos
    		;;
    	*-atari*)
    		os=-mint
    		;;
    	*)
    		os=-none
    		;;
    esac
    fi
    
    # Here we handle the case where we know the os, and the CPU type, but not the
    # manufacturer.  We pick the logical manufacturer.
    vendor=unknown
    case $basic_machine in
    	*-unknown)
    		case $os in
    			-riscix*)
    				vendor=acorn
    				;;
    			-sunos*)
    				vendor=sun
    				;;
    
    				vendor=ibm
    				;;
    			-beos*)
    				vendor=be
    				;;
    			-hpux*)
    				vendor=hp
    				;;
    			-mpeix*)
    				vendor=hp
    				;;
    			-hiux*)
    				vendor=hitachi
    				;;
    			-unos*)
    				vendor=crds
    				;;
    			-dgux*)
    				vendor=dg
    				;;
    			-luna*)
    				vendor=omron
    				;;
    			-genix*)
    				vendor=ns
    				;;
    			-mvs* | -opened*)
    				vendor=ibm
    				;;
    			-os400*)
    				vendor=ibm
    				;;
    			-ptx*)
    				vendor=sequent
    				;;
    			-tpf*)
    				vendor=ibm
    				;;
    			-vxsim* | -vxworks* | -windiss*)
    				vendor=wrs
    				;;
    			-aux*)
    				vendor=apple
    				;;
    			-hms*)
    				vendor=hitachi
    				;;
    			-mpw* | -macos*)
    				vendor=apple
    				;;
    			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    				vendor=atari
    				;;
    			-vos*)
    				vendor=stratus
    				;;
    		esac
    		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
    		;;
    esac
    
    echo $basic_machine$os
    exit
    
    # Local variables:
    # eval: (add-hook 'write-file-hooks 'time-stamp)
    # time-stamp-start: "timestamp='"
    # time-stamp-format: "%:y-%02m-%02d"
    # time-stamp-end: "'"
    # End: