# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# it is wrong to echo any other type of specification
+if [ x$1 = x ]
+then
+ echo Configuration name missing. 1>&2
+ echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
+ echo "or $0 ALIAS" 1>&2
+ echo where ALIAS is a recognized configuration type. 1>&2
+ exit 1
+fi
+
# First pass through any local machine types.
case $1 in
*local*)
esac
# Separate what the user gave into CPU-COMPANY and OS (if any).
-basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+basic_machine=`echo $1 | sed 's/-[^-][^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi
-unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -osf* | \
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris)
+ -harris | -sim)
os=
basic_machine=$1
;;
+ -scout)
+ ;;
-sco*)
os=-scosysv322
basic_machine=i386-unknown
;;
+ -OSE68k | -ose68k | -OSE | -ose | -es1800)
+ os=-ose
+ basic_machine=m68k-ericsson
+ ;;
+ -OSE68000 | -ose68000)
+ os=-ose
+ basic_machine=m68000-ericsson
+ ;;
-isc*)
os=-iscsysv
basic_machine=i386-unknown
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
# Recognize the basic CPU types with without company name.
- tahoe | i386 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
- | tron | a29k | 580 | i960 | h8300 | v70)
+ tahoe | i386 | i486 | i860 | m68k | m680[01234]0 | m683?2 \
+ | m88k | ns32k | arm | pyramid \
+ | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 | we32k\
+ | v70 | we32k | z8k)
basic_machine=$basic_machine-unknown
;;
# Recognize the basic CPU types with with company name.
- vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
+ vax-* | tahoe-* | i386-* | i486-* | i860-* | m68k-* \
+ | m680[01234]0-* | m683?2-* | m88k-* \
| sparc-* | ns32k-* | alliant-* | arm-* | c[123]* \
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
| none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
- | hppa-*)
+ | hppa1.0-* | hppa1.1-* | we32k-* | z8k-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
-# start-sanitize-life
- life-*) ;;
- life)
- basic_machine=life-philips
- os=-none
- ;;
-# end-sanitize-life
-
# start-sanitize-v9
sparc64-*) ;;
hal-32 | hal32)
basic_machine=i386-unknown
os=-scosysv322
;;
+ go32 | i386-go32)
+ basic_machine=i386-unknown
+ os=-go32
+ ;;
i386-isc* | isc)
basic_machine=i386-unknown
os=-iscsysv
;;
+ i386-linux* | linux)
+ basic_machine=i386-unknown
+ os=-linux
+ ;;
i386v4*)
basic_machine=i386-unknown
os=-sysv4
;;
+ i486v4*)
+ basic_machine=i486-unknown
+ os=-sysv4
+ ;;
i386v)
basic_machine=i386-unknown
os=-sysv
;;
+ i486v)
+ basic_machine=i486-unknown
+ os=-sysv
+ ;;
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
spur)
basic_machine=spur-unknown
;;
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
basic_machine=m68k-att
;;
+ 3b* | we32k* )
+ basic_machine=we32k-att
+ os=-sysv
+ ;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
basic_machine=sparc-sun
os=-sunos4
;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ z8ksim)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
sun3)
basic_machine=m68k-sun
;;
sun4)
basic_machine=sparc-sun
;;
+ msdos)
+ basic_machine=i386-unknown
+ os=-msdos
+ ;;
pbd)
basic_machine=sparc-unicom
;;
;;
next)
basic_machine=m68k-next
- os=-sysv
+ os=-bsd
;;
hp9k3[2-9][0-9])
basic_machine=m68k-hp
hp9k31[0-9] | hp9k2[0-9][0-9])
basic_machine=m68000-hp
;;
- hp9k8[0-9][0-9] | hp9k7[0-9][0-9] | hp8[0-9][0-9] | hp7[0-9][0-9])
- basic_machine=hp800-hp
+ hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
;;
isi68 | isi)
basic_machine=m68k-isi
os=-newsos
;;
st2000)
- basic_machine=m68kmote-tandem
+ basic_machine=m68k-tandem
;;
decstation-dec | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
basic_machine=mips-dec
basic_machine=a29k-amd
os=-ebmon
;;
- h8300hds)
+
+ h8300hms)
basic_machine=h8300-hitachi
- os=-hds
+ os=-hms
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
;;
harris)
basic_machine=m88k-harris
basic_machine=m68k-hp
os=-hpux
;;
+ hppabsd)
+ basic_machine=hppa-hp
+ os=-bsd
+ ;;
+ hppahpux)
+ basic_machine=hppa-hp
+ os=-hpux
+ ;;
ncr3000)
- basic_machine=i386-ncr
+ basic_machine=i486-ncr
os=-sysv4
;;
necv70)
basic_machine=m68k-wrs
os=-vxworks
;;
+ es1800 | OSE68k | ose68k)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
os68k)
basic_machine=m68k-none
os=-os68k
;;
+ sparclite)
+ basic_machine=sparclite-fujitsu
+ os=-none
+ ;;
+ sparclite-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sparcfrw)
+ basic_machine=sparcfrw-sun
+ os=-sunos4
+ ;;
+ sparcfrwcompat)
+ basic_machine=sparcfrwcompat-sun
+ os=-sunos4
+ ;;
+ sparclitefrw)
+ basic_machine=sparclitefrw-fujitsu
+ os=-none
+ ;;
+ sparclitefrwcompat)
+ basic_machine=sparclitefrwcompat-fujitsu
+ os=-none
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+
none)
basic_machine=none-none
os=-none
# The portable systems comes first.
# Each alternative must end in a *, to match a version number.
-bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* \
+ | -aout | -coff | -elf \
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
- | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solari* | -sym* \
- | -amigados* | -msdos* | -none* | -os68k* | -irix* \
- | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
- ;;
+ | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solaris* | -sym* \
+ | -newsos | -amigados* | -msdos* | -none* | -os68k* | -irix* \
+ | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray \
+ | -m88kbcs* | -go32 | -linux* | -sim | -es1800*)
+ ;;
# start-sanitize-v9
-v7 | -v9 | -hal32 | -hal64) ;;
# end-sanitize-v9
- -newsos*)
- os=-bsd
- ;;
+# Note that readline checks for newsos
+# -newsos*)
+# os=-bsd
+# ;;
-osfrose*)
os=-osf
;;
-aos*)
os=-bsd
;;
+ -386bsd)
+ os=-bsd
+ ;;
-ctix* | -uts*)
os=-sysv
;;
-svr3)
os=-sysv3
;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
*)
# Get rid of the `-' at the beginning of $os.
os=`echo $1 | sed 's/[^-]*-//'`
-genix*)
vendor=ns
;;
+ -vxworks*)
+ vendor=wrs
+ ;;
esac
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
;;