#!/bin/sh
-# Configuration validation subroutine script, version 1.0.
-# Copyright (C) 1991 Free Software Foundation, Inc.
+# Configuration validation subroutine script, version 1.1.
+# Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
#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
else os=; fi
# Lets recognize common machines as not being OS so that things like
-# config.subr decstation-3100 as legal.
+# config.subr decstation-3100 work.
case $os in
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -osf* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | \
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin)
os=
basic_machine=$1
;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ os=-sco3.2v4
+ basic_machine=i386-unknown
+ ;;
-sco*)
- os=-scosysv322
+ os=-sco3.2v2
basic_machine=i386-unknown
;;
-isc*)
- os=-iscsysv
+ os=-isc
basic_machine=i386-unknown
;;
esac
# Recognize the basic CPU types with without company name.
# Some are omitted here because they have special meanings below.
tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
- | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1)
+ | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
+ | alpha | we32k)
basic_machine=$basic_machine-unknown
;;
# Recognize the basic CPU types with with company name.
| sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
| none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
- | hppa1.0-* | hppa1.1-*)
+ | hppa1.0-* | hppa1.1-* | alpha-* | we32k-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
;;
i386-sco* | i386sco | sco)
basic_machine=i386-unknown
- os=-scosysv322
+ os=-sco3.2v2
;;
i386-isc* | isc)
basic_machine=i386-unknown
- os=-iscsysv
+ os=-isc
+ ;;
+ i486v32)
+ basic_machine=i486-unknown
+ os=-sysv32
+ ;;
+ i486-sco* | i486sco | sco)
+ basic_machine=i486-unknown
+ os=-sco3.2v2
+ ;;
+ i486-isc* | isc)
+ basic_machine=i486-unknown
+ os=-isc
;;
i386v4*)
basic_machine=i386-unknown
basic_machine=i386-unknown
os=-sysv
;;
+ i486v)
+ basic_machine=i486-unknown
+ os=-sysv
+ ;;
spur)
basic_machine=spur-unknown
;;
crds | unos)
basic_machine=m68k-crds
;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
encore | umax | mmax)
basic_machine=ns32k-encore
os=-bsd
;;
iris | iris4d)
basic_machine=mips-sgi
- os=-irix
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
;;
news | news700 | news800 | news900)
basic_machine=m68k-sony
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
basic_machine=m68000-att
;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
ps2)
basic_machine=i386-ibm
;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
next)
basic_machine=m68k-next
- os=-sysv
+ os=-bsd
;;
amiga)
basic_machine=m68k-cbm
basic_machine=mips-sony
os=-newsos
;;
- decstation-dec | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
+ decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
magnum | m3230)
;;
amigaunix | amix)
basic_machine=m68k-cbm
- os=-amix
+ os=-sysv4
;;
cray | ymp)
basic_machine=ymp-cray
vax)
basic_machine=vax-dec
;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
sparc)
basic_machine=sparc-sun
;;
- fx2800)
- basic_machine=i860-alliant
- ;;
*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
# Each alternative must end in a *, to match a version number.
-bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
- | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* | -amix* \
+ | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* \
| -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
- | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
+ | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs* \
+ | -riscos* | -linux* )
;;
-osfrose*)
- os=-osf
+ os=-osfrose
;;
-osf*)
+ os=-osf
+ ;;
+ -utek*)
os=-bsd
;;
-dynix*)
-svr3)
os=-sysv3
;;
+ -none)
+ ;;
*)
# Get rid of the `-' at the beginning of $os.
os=`echo $1 | sed 's/[^-]*-//'`
# machine or put another way, the most popular os provided with the machine.
case $basic_machine in
*-dec | vax-*)
- os=-ultrix42
+ os=-ultrix4.2
;;
i386-sun)
- os=-sunos402
+ os=-sunos4.0.2
;;
m68000-sun)
os=-sunos3
os=-sysv3
;;
sparc-* | *-sun)
- os=-sunos411
+ os=-sunos4.1.1
;;
*-ibm)
os=-aix
*-ns)
os=-genix
;;
- i386-*)
- os=-scosysv322
+ i[34]86-*)
+ os=-sco3.2v2
;;
*)
os=-none