Minor config polish.

This commit is contained in:
K. Richard Pixley
1991-08-23 04:50:56 +00:00
parent 0a3492951d
commit 69e87de278
6 changed files with 990 additions and 776 deletions

12
bfd/configure vendored
View File

@ -413,8 +413,8 @@ wrs)
;; ;;
sun) sun)
case "${target_cpu}" in case "${target_cpu}" in
m68k) bfd_target=sun3 ;; m68k) bfd_target=m68k-aout ;;
sparc) bfd_target=sun4 ;; sparc) bfd_target=sparc-aout ;;
esac esac
;; ;;
dec) dec)
@ -432,6 +432,11 @@ hp)
;; ;;
esac esac
;; ;;
none)
case "${target_cpu}" in
i386) bfd_target=i386-coff ;;
esac
;;
*) *)
case "${target_cpu}" in case "${target_cpu}" in
tahoe | vax) bfd_target=${target_cpu} ;; tahoe | vax) bfd_target=${target_cpu} ;;
@ -706,6 +711,9 @@ exit 0
# #
# $Log$ # $Log$
# Revision 1.23 1991/08/23 04:48:43 rich
# Minor config polish.
#
# Revision 1.22 1991/08/23 03:31:43 rich # Revision 1.22 1991/08/23 03:31:43 rich
# Minor polish & config mapping. # Minor polish & config mapping.
# #

View File

@ -102,6 +102,11 @@ hp)
;; ;;
esac esac
;; ;;
none)
case "${target_cpu}" in
i386) bfd_target=i386-coff ;;
esac
;;
*) *)
case "${target_cpu}" in case "${target_cpu}" in
tahoe | vax) bfd_target=${target_cpu} ;; tahoe | vax) bfd_target=${target_cpu} ;;

362
config.sub vendored
View File

@ -13,264 +13,332 @@
# a failure to support a valid configuration from a meaningless # a failure to support a valid configuration from a meaningless
# configuration. # configuration.
# Separate what the user gave into CPU-company and OS (if any). # decode aliases into canonical names
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/^.*-/-/'`
else os=; fi
# Decode aliases for certain machine-company combinations. case "$1" in
case $basic_machine in # cpu alone is a valid alias for cpu-none-none.
# Recognize the basic CPU types without company name.
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960 | none) | rtpc | rs6000 | i960)
cpu=$1
vendor=none
os=none
;; ;;
# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
| sparc-* | ns32k-* | alliant-* | arm-* | c1-* | c2-* \
| mips-* | pyramid-* | tron-* | a29k-* | rtpc-* \
| rs6000-* | i960-*)
;;
# Recognize the machine names
# which stand for a CPU time and a company.
nindy960) nindy960)
basic_machine=i960-intel cpu=i960
os=-nindy vendor=intel
os=nindy
;; ;;
vxworks68) vxworks68)
basic_machine=m68k-wrs cpu=m68k
os=-vxworks vendor=wrs
os=vxworks
;; ;;
vxworks960) vxworks960)
basic_machine=i960-wrs cpu=i960
os=-vxworks vendor=wrs
os=vxworks
;; ;;
am29k) am29k)
basic_machine=a29k-unknown cpu=a29k
os=-bsd vendor=none
os=bsd
;; ;;
umax) umax)
basic_machine=ns32k-umax cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
pn) pn)
basic_machine=pn-gould cpu=pn
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
np1) np1)
basic_machine=np1-gould cpu=np1
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
merlin) merlin)
basic_machine=merlin-utek cpu=merlin
os=-sysv # maybe? vendor=utek
os=sysv # maybe?
;; ;;
iris | iris4d) iris | iris4d)
basic_machine=mips-sgi cpu=mips
os=-sysv # maybe? vendor=sgi
os=sysv # maybe?
;; ;;
news1000) news1000)
basic_machine=m68030-sony cpu=m68030
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
news | news700 | news800 | news900) news | news700 | news800 | news900)
basic_machine=m68k-sony cpu=m68k
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300)
basic_machine=m68k-att cpu=m68k
os=-sysv # maybe? vendor=att
os=sysv # maybe?
;; ;;
delta | 3300 | motorola-3300 | motorola-delta \ delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola) | 3300-motorola | delta-motorola)
basic_machine=m68k-motorola cpu=m68k
os=-sysv # maybe? vendor=motorola
os=sysv # maybe?
;; ;;
vax-dec) vax-dec)
basic_machine=vax cpu=vax
os=-ultrix # maybe? vendor=dec
os=ultrix # maybe?
;; ;;
balance) balance)
basic_machine=ns32k-sequent cpu=ns32k
os=-dynix vendor=sequent
os=dynix
;; ;;
mmax) mmax)
basic_machine=ns32k-encore cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
symmetry) symmetry)
basic_machine=i386-sequent cpu=i386
os=-dynix vendor=sequent
os=dynix
;; ;;
sun2) sun2)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun2os3) sun2os3)
basic_machine=m68000-sun cpu=m68000
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun2os4) sun2os4)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3) sun3)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3os3) sun3os3)
basic_machine=m68k-sun cpu=m68k
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun3os4) sun3os4)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4) sun4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4os3) sun4os3)
basic_machine=sparc-sun cpu=sparc
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun4os4) sun4os4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
pbd) pbd)
basic_machine=sparc-unicom cpu=sparc
os=-sysv vendor=unicom
os=sysv
;; ;;
roadrunner | sun386 | sun386i) roadrunner | sun386 | sun386i)
basic_machine=i386-sun cpu=i386
os=-sunos vendor=sun
os=sunos
;; ;;
ps2) ps2)
basic_machine=i386-ibm cpu=i386
os=-sysv # maybe? vendor=ibm
os=sysv # maybe?
;; ;;
i386sco) i386sco)
basic_machine=i386-sco cpu=i386
os=-sysv # maybe? vendor=sco
os=sysv # maybe?
;; ;;
i386v) i386v)
basic_machine=i386-unknown cpu=i386
os=-sysv vendor=none
os=sysv
;; ;;
i386v32) i386v32)
basic_machine=i386-unknown cpu=i386
os=-sysv32 vendor=none
os=sysv32
;; ;;
next) next)
basic_machine=m68k-next cpu=m68k
os=-sysv # maybe? vendor=next
os=sysv # maybe?
;; ;;
hp300bsd) hp300bsd)
basic_machine=m68k-hp cpu=m68k
os=-bsd vendor=hp
os=bsd
;; ;;
hp300hpux | hpux | hp9k3[2-9][0-9]) hp300hpux | hpux | hp9k3[2-9][0-9])
basic_machine=m68k-hp cpu=m68k
os=-hpux vendor=hp
os=hpux
;; ;;
hp9k31[0-9] | hp9k2[0-9][0-9]) hp9k31[0-9] | hp9k2[0-9][0-9])
basic_machine=m68000-hp cpu=m68000
os=-hpux vendor=hp
os=hpux
;; ;;
isi | isi68) isi | isi68)
basic_machine=m68k-isi cpu=m68k
os=-sysv # maybe? vendor=isi
os=sysv # maybe?
;; ;;
apollo68) apollo68)
basic_machine=m68k-apollo cpu=m68k
os=-sysv # maybe? vendor=apollo
os=sysv # maybe?
;; ;;
altos | altos3068) altos | altos3068)
basic_machine=m68k-altos cpu=m68k
os=-sysv # maybe? vendor=altos
os=sysv # maybe?
;; ;;
altosgas) altosgas)
basic_machine=m68k-altos cpu=m68k
os=-gas vendor=altos
os=gas
;; ;;
miniframe) miniframe)
basic_machine=m68000-convergent cpu=m68000
os=-sysv # maybe? vendor=convergent
os=sysv # maybe?
;; ;;
tower | tower-32) tower | tower-32)
basic_machine=m68k-ncr cpu=m68k
os=-sysv # maybe? vendor=ncr
os=sysv # maybe?
;; ;;
bigmips | news-3600 | risc-news) bigmips | news-3600 | risc-news)
basic_machine=mips-sony cpu=mips
os=-newsos # maybe? vendor=sony
os=newsos # maybe?
;; ;;
littlemips) littlemips)
basic_machine=mips-little cpu=mips
os=-bsd vendor=little
os=bsd
;; ;;
dec3100 | decstatn | decstation | decstation-3100 | pmax) dec3100 | decstatn | decstation | decstation-3100 | pmax)
basic_machine=mips-dec cpu=mips
os=-ultrix vendor=dec
os=ultrix
;; ;;
magnum | m3230) magnum | m3230)
basic_machine=mips-mips cpu=mips
os=-sysv # maybe? vendor=mips
os=sysv # maybe?
;; ;;
gmicro) gmicro)
basic_machine=tron cpu=tron
os=-sysv # maybe? vendor=none
os=sysv # maybe?
;; ;;
convex-c1) convex-c1)
basic_machine=c1-convex cpu=c1
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;; ;;
convex-c2) convex-c2)
basic_machine=c2-convex cpu=c2
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;;
none)
cpu=none
vendor=none
os=none
;;
# not an alias. parse what we expect to be a canonical name.
*)
cpu=`echo $1 | sed 's/-.*$//'`
if [ "${cpu}" = "$1" ] ; then
# no vendor so this is an invalid name.
echo '***' No vendor: configuration \`$1\' not recognized 1>&2
exit 1
else
# parse out vendor
rest=`echo $1 | sed "s/${cpu}-//"`
vendor=`echo ${rest} | sed 's/-.*$//'`
if [ "${vendor}" = "${rest}" ] ; then
# a missing os is acceptable
os=none
else
os=`echo ${rest} | sed "s/${vendor}-//"`
fi
fi
;;
esac
# At this point we should have three parts of a canonical name in cpu,
# vendor, and os.
# verify that the cpu is known.
case "${cpu}" in
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960)
;; ;;
*) *)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
# Decode manufacturer-specific aliases for certain operating systems. # verify that the vendor is known.
case $os in case "${vendor}" in
# First accept the basic system types. none | convex | mips | dec | little | sony | ncr | convergent \
# The portable systems comes first. | altos | apollo | isi | hp | next | sco | ibm | sun \
-bsd* | -sysv* | -mach* \ | unicom | sequent | encore | motorola | att | sgi \
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ | utek | gould | wrs | intel | aout | bout | coff) ;;
| -unos* | -osf* | -v88r* | -aout | -coff | -bout \
| -nindy | -vxworks)
;;
-newsos*)
os=-bsd
;;
-ultrix*)
os=-bsd
;;
-osfrose*)
os=-osf
;;
-osf*)
os=-bsd
;;
-dynix*)
os=-bsd
;;
-ctix*)
os=-sysv
;;
*) *)
# Get rid of the `-' at the beginning of $os. echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2
os=`echo $1 | sed 's/[^-]*-//'`
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
echo ${basic_machine}${os} # verify that the os is known, if it exists.
case "${os}" in
aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \
| isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \
| sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks*)
;;
*)
echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
echo ${cpu}-${vendor}-${os}

362
gdb/config.sub vendored
View File

@ -13,264 +13,332 @@
# a failure to support a valid configuration from a meaningless # a failure to support a valid configuration from a meaningless
# configuration. # configuration.
# Separate what the user gave into CPU-company and OS (if any). # decode aliases into canonical names
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/^.*-/-/'`
else os=; fi
# Decode aliases for certain machine-company combinations. case "$1" in
case $basic_machine in # cpu alone is a valid alias for cpu-none-none.
# Recognize the basic CPU types without company name.
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960 | none) | rtpc | rs6000 | i960)
cpu=$1
vendor=none
os=none
;; ;;
# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
| sparc-* | ns32k-* | alliant-* | arm-* | c1-* | c2-* \
| mips-* | pyramid-* | tron-* | a29k-* | rtpc-* \
| rs6000-* | i960-*)
;;
# Recognize the machine names
# which stand for a CPU time and a company.
nindy960) nindy960)
basic_machine=i960-intel cpu=i960
os=-nindy vendor=intel
os=nindy
;; ;;
vxworks68) vxworks68)
basic_machine=m68k-wrs cpu=m68k
os=-vxworks vendor=wrs
os=vxworks
;; ;;
vxworks960) vxworks960)
basic_machine=i960-wrs cpu=i960
os=-vxworks vendor=wrs
os=vxworks
;; ;;
am29k) am29k)
basic_machine=a29k-unknown cpu=a29k
os=-bsd vendor=none
os=bsd
;; ;;
umax) umax)
basic_machine=ns32k-umax cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
pn) pn)
basic_machine=pn-gould cpu=pn
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
np1) np1)
basic_machine=np1-gould cpu=np1
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
merlin) merlin)
basic_machine=merlin-utek cpu=merlin
os=-sysv # maybe? vendor=utek
os=sysv # maybe?
;; ;;
iris | iris4d) iris | iris4d)
basic_machine=mips-sgi cpu=mips
os=-sysv # maybe? vendor=sgi
os=sysv # maybe?
;; ;;
news1000) news1000)
basic_machine=m68030-sony cpu=m68030
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
news | news700 | news800 | news900) news | news700 | news800 | news900)
basic_machine=m68k-sony cpu=m68k
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300)
basic_machine=m68k-att cpu=m68k
os=-sysv # maybe? vendor=att
os=sysv # maybe?
;; ;;
delta | 3300 | motorola-3300 | motorola-delta \ delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola) | 3300-motorola | delta-motorola)
basic_machine=m68k-motorola cpu=m68k
os=-sysv # maybe? vendor=motorola
os=sysv # maybe?
;; ;;
vax-dec) vax-dec)
basic_machine=vax cpu=vax
os=-ultrix # maybe? vendor=dec
os=ultrix # maybe?
;; ;;
balance) balance)
basic_machine=ns32k-sequent cpu=ns32k
os=-dynix vendor=sequent
os=dynix
;; ;;
mmax) mmax)
basic_machine=ns32k-encore cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
symmetry) symmetry)
basic_machine=i386-sequent cpu=i386
os=-dynix vendor=sequent
os=dynix
;; ;;
sun2) sun2)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun2os3) sun2os3)
basic_machine=m68000-sun cpu=m68000
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun2os4) sun2os4)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3) sun3)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3os3) sun3os3)
basic_machine=m68k-sun cpu=m68k
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun3os4) sun3os4)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4) sun4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4os3) sun4os3)
basic_machine=sparc-sun cpu=sparc
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun4os4) sun4os4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
pbd) pbd)
basic_machine=sparc-unicom cpu=sparc
os=-sysv vendor=unicom
os=sysv
;; ;;
roadrunner | sun386 | sun386i) roadrunner | sun386 | sun386i)
basic_machine=i386-sun cpu=i386
os=-sunos vendor=sun
os=sunos
;; ;;
ps2) ps2)
basic_machine=i386-ibm cpu=i386
os=-sysv # maybe? vendor=ibm
os=sysv # maybe?
;; ;;
i386sco) i386sco)
basic_machine=i386-sco cpu=i386
os=-sysv # maybe? vendor=sco
os=sysv # maybe?
;; ;;
i386v) i386v)
basic_machine=i386-unknown cpu=i386
os=-sysv vendor=none
os=sysv
;; ;;
i386v32) i386v32)
basic_machine=i386-unknown cpu=i386
os=-sysv32 vendor=none
os=sysv32
;; ;;
next) next)
basic_machine=m68k-next cpu=m68k
os=-sysv # maybe? vendor=next
os=sysv # maybe?
;; ;;
hp300bsd) hp300bsd)
basic_machine=m68k-hp cpu=m68k
os=-bsd vendor=hp
os=bsd
;; ;;
hp300hpux | hpux | hp9k3[2-9][0-9]) hp300hpux | hpux | hp9k3[2-9][0-9])
basic_machine=m68k-hp cpu=m68k
os=-hpux vendor=hp
os=hpux
;; ;;
hp9k31[0-9] | hp9k2[0-9][0-9]) hp9k31[0-9] | hp9k2[0-9][0-9])
basic_machine=m68000-hp cpu=m68000
os=-hpux vendor=hp
os=hpux
;; ;;
isi | isi68) isi | isi68)
basic_machine=m68k-isi cpu=m68k
os=-sysv # maybe? vendor=isi
os=sysv # maybe?
;; ;;
apollo68) apollo68)
basic_machine=m68k-apollo cpu=m68k
os=-sysv # maybe? vendor=apollo
os=sysv # maybe?
;; ;;
altos | altos3068) altos | altos3068)
basic_machine=m68k-altos cpu=m68k
os=-sysv # maybe? vendor=altos
os=sysv # maybe?
;; ;;
altosgas) altosgas)
basic_machine=m68k-altos cpu=m68k
os=-gas vendor=altos
os=gas
;; ;;
miniframe) miniframe)
basic_machine=m68000-convergent cpu=m68000
os=-sysv # maybe? vendor=convergent
os=sysv # maybe?
;; ;;
tower | tower-32) tower | tower-32)
basic_machine=m68k-ncr cpu=m68k
os=-sysv # maybe? vendor=ncr
os=sysv # maybe?
;; ;;
bigmips | news-3600 | risc-news) bigmips | news-3600 | risc-news)
basic_machine=mips-sony cpu=mips
os=-newsos # maybe? vendor=sony
os=newsos # maybe?
;; ;;
littlemips) littlemips)
basic_machine=mips-little cpu=mips
os=-bsd vendor=little
os=bsd
;; ;;
dec3100 | decstatn | decstation | decstation-3100 | pmax) dec3100 | decstatn | decstation | decstation-3100 | pmax)
basic_machine=mips-dec cpu=mips
os=-ultrix vendor=dec
os=ultrix
;; ;;
magnum | m3230) magnum | m3230)
basic_machine=mips-mips cpu=mips
os=-sysv # maybe? vendor=mips
os=sysv # maybe?
;; ;;
gmicro) gmicro)
basic_machine=tron cpu=tron
os=-sysv # maybe? vendor=none
os=sysv # maybe?
;; ;;
convex-c1) convex-c1)
basic_machine=c1-convex cpu=c1
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;; ;;
convex-c2) convex-c2)
basic_machine=c2-convex cpu=c2
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;;
none)
cpu=none
vendor=none
os=none
;;
# not an alias. parse what we expect to be a canonical name.
*)
cpu=`echo $1 | sed 's/-.*$//'`
if [ "${cpu}" = "$1" ] ; then
# no vendor so this is an invalid name.
echo '***' No vendor: configuration \`$1\' not recognized 1>&2
exit 1
else
# parse out vendor
rest=`echo $1 | sed "s/${cpu}-//"`
vendor=`echo ${rest} | sed 's/-.*$//'`
if [ "${vendor}" = "${rest}" ] ; then
# a missing os is acceptable
os=none
else
os=`echo ${rest} | sed "s/${vendor}-//"`
fi
fi
;;
esac
# At this point we should have three parts of a canonical name in cpu,
# vendor, and os.
# verify that the cpu is known.
case "${cpu}" in
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960)
;; ;;
*) *)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
# Decode manufacturer-specific aliases for certain operating systems. # verify that the vendor is known.
case $os in case "${vendor}" in
# First accept the basic system types. none | convex | mips | dec | little | sony | ncr | convergent \
# The portable systems comes first. | altos | apollo | isi | hp | next | sco | ibm | sun \
-bsd* | -sysv* | -mach* \ | unicom | sequent | encore | motorola | att | sgi \
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ | utek | gould | wrs | intel | aout | bout | coff) ;;
| -unos* | -osf* | -v88r* | -aout | -coff | -bout \
| -nindy | -vxworks)
;;
-newsos*)
os=-bsd
;;
-ultrix*)
os=-bsd
;;
-osfrose*)
os=-osf
;;
-osf*)
os=-bsd
;;
-dynix*)
os=-bsd
;;
-ctix*)
os=-sysv
;;
*) *)
# Get rid of the `-' at the beginning of $os. echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2
os=`echo $1 | sed 's/[^-]*-//'`
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
echo ${basic_machine}${os} # verify that the os is known, if it exists.
case "${os}" in
aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \
| isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \
| sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks*)
;;
*)
echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
echo ${cpu}-${vendor}-${os}

View File

@ -151,9 +151,9 @@ m68030)
esac esac
;; ;;
none | np1 | pn | np1 | pn | pyramid | merlin | i960 | m88k | a29k) none | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin | m88k)
gdb_target=${target_cpu} ;; gdb_target=${target_cpu} ;;
a29k) gdb_target=am29k ;;
arm) gdb_target=${target_cpu} ;; arm) gdb_target=${target_cpu} ;;
mips) mips)
@ -166,13 +166,6 @@ mips)
c1 | c2) gdb_target=convex ;; c1 | c2) gdb_target=convex ;;
i386)
case "${target_vendor}" in
sco) gdb_target=i386sco ;;
sun) gdb_target=sun386 ;;
esac
;;
sparc) sparc)
case "${target_vendor}" in case "${target_vendor}" in
sun) sun)
@ -188,7 +181,11 @@ sparc)
i386) i386)
case "${target_vendor}" in case "${target_vendor}" in
sco) gdb_target=i386sco ;;
sun) gdb_target=sun386 ;;
sequent) gdb_target=symmetry ;; sequent) gdb_target=symmetry ;;
coff) gdb_target=i386v ;;
aout) gdb_target=i386v ;;
*) *)
case "${target_os}" in case "${target_os}" in
sysv) gdb_target=i386v ;; sysv) gdb_target=i386v ;;
@ -199,8 +196,8 @@ i386)
i960) i960)
case "${target_vendor}" in case "${target_vendor}" in
wrs) gdb_target=vxworks960 ;; bout | wrs) gdb_target=vxworks960 ;;
intel) gdb_target=nindy960 ;; coff | intel) gdb_target=nindy960 ;;
esac esac
;; ;;

362
readline/config.sub vendored
View File

@ -13,264 +13,332 @@
# a failure to support a valid configuration from a meaningless # a failure to support a valid configuration from a meaningless
# configuration. # configuration.
# Separate what the user gave into CPU-company and OS (if any). # decode aliases into canonical names
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/^.*-/-/'`
else os=; fi
# Decode aliases for certain machine-company combinations. case "$1" in
case $basic_machine in # cpu alone is a valid alias for cpu-none-none.
# Recognize the basic CPU types without company name.
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \ vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \ | alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960 | none) | rtpc | rs6000 | i960)
cpu=$1
vendor=none
os=none
;; ;;
# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
| sparc-* | ns32k-* | alliant-* | arm-* | c1-* | c2-* \
| mips-* | pyramid-* | tron-* | a29k-* | rtpc-* \
| rs6000-* | i960-*)
;;
# Recognize the machine names
# which stand for a CPU time and a company.
nindy960) nindy960)
basic_machine=i960-intel cpu=i960
os=-nindy vendor=intel
os=nindy
;; ;;
vxworks68) vxworks68)
basic_machine=m68k-wrs cpu=m68k
os=-vxworks vendor=wrs
os=vxworks
;; ;;
vxworks960) vxworks960)
basic_machine=i960-wrs cpu=i960
os=-vxworks vendor=wrs
os=vxworks
;; ;;
am29k) am29k)
basic_machine=a29k-unknown cpu=a29k
os=-bsd vendor=none
os=bsd
;; ;;
umax) umax)
basic_machine=ns32k-umax cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
pn) pn)
basic_machine=pn-gould cpu=pn
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
np1) np1)
basic_machine=np1-gould cpu=np1
os=-sysv # maybe? vendor=gould
os=sysv # maybe?
;; ;;
merlin) merlin)
basic_machine=merlin-utek cpu=merlin
os=-sysv # maybe? vendor=utek
os=sysv # maybe?
;; ;;
iris | iris4d) iris | iris4d)
basic_machine=mips-sgi cpu=mips
os=-sysv # maybe? vendor=sgi
os=sysv # maybe?
;; ;;
news1000) news1000)
basic_machine=m68030-sony cpu=m68030
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
news | news700 | news800 | news900) news | news700 | news800 | news900)
basic_machine=m68k-sony cpu=m68k
os=-sysv # maybe? vendor=sony
os=sysv # maybe?
;; ;;
unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300) unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300)
basic_machine=m68k-att cpu=m68k
os=-sysv # maybe? vendor=att
os=sysv # maybe?
;; ;;
delta | 3300 | motorola-3300 | motorola-delta \ delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola) | 3300-motorola | delta-motorola)
basic_machine=m68k-motorola cpu=m68k
os=-sysv # maybe? vendor=motorola
os=sysv # maybe?
;; ;;
vax-dec) vax-dec)
basic_machine=vax cpu=vax
os=-ultrix # maybe? vendor=dec
os=ultrix # maybe?
;; ;;
balance) balance)
basic_machine=ns32k-sequent cpu=ns32k
os=-dynix vendor=sequent
os=dynix
;; ;;
mmax) mmax)
basic_machine=ns32k-encore cpu=ns32k
os=-sysv # maybe? vendor=encore
os=sysv # maybe?
;; ;;
symmetry) symmetry)
basic_machine=i386-sequent cpu=i386
os=-dynix vendor=sequent
os=dynix
;; ;;
sun2) sun2)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun2os3) sun2os3)
basic_machine=m68000-sun cpu=m68000
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun2os4) sun2os4)
basic_machine=m68000-sun cpu=m68000
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3) sun3)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun3os3) sun3os3)
basic_machine=m68k-sun cpu=m68k
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun3os4) sun3os4)
basic_machine=m68k-sun cpu=m68k
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4) sun4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
sun4os3) sun4os3)
basic_machine=sparc-sun cpu=sparc
os=-sunos3 vendor=sun
os=sunos3
;; ;;
sun4os4) sun4os4)
basic_machine=sparc-sun cpu=sparc
os=-sunos4 vendor=sun
os=sunos4
;; ;;
pbd) pbd)
basic_machine=sparc-unicom cpu=sparc
os=-sysv vendor=unicom
os=sysv
;; ;;
roadrunner | sun386 | sun386i) roadrunner | sun386 | sun386i)
basic_machine=i386-sun cpu=i386
os=-sunos vendor=sun
os=sunos
;; ;;
ps2) ps2)
basic_machine=i386-ibm cpu=i386
os=-sysv # maybe? vendor=ibm
os=sysv # maybe?
;; ;;
i386sco) i386sco)
basic_machine=i386-sco cpu=i386
os=-sysv # maybe? vendor=sco
os=sysv # maybe?
;; ;;
i386v) i386v)
basic_machine=i386-unknown cpu=i386
os=-sysv vendor=none
os=sysv
;; ;;
i386v32) i386v32)
basic_machine=i386-unknown cpu=i386
os=-sysv32 vendor=none
os=sysv32
;; ;;
next) next)
basic_machine=m68k-next cpu=m68k
os=-sysv # maybe? vendor=next
os=sysv # maybe?
;; ;;
hp300bsd) hp300bsd)
basic_machine=m68k-hp cpu=m68k
os=-bsd vendor=hp
os=bsd
;; ;;
hp300hpux | hpux | hp9k3[2-9][0-9]) hp300hpux | hpux | hp9k3[2-9][0-9])
basic_machine=m68k-hp cpu=m68k
os=-hpux vendor=hp
os=hpux
;; ;;
hp9k31[0-9] | hp9k2[0-9][0-9]) hp9k31[0-9] | hp9k2[0-9][0-9])
basic_machine=m68000-hp cpu=m68000
os=-hpux vendor=hp
os=hpux
;; ;;
isi | isi68) isi | isi68)
basic_machine=m68k-isi cpu=m68k
os=-sysv # maybe? vendor=isi
os=sysv # maybe?
;; ;;
apollo68) apollo68)
basic_machine=m68k-apollo cpu=m68k
os=-sysv # maybe? vendor=apollo
os=sysv # maybe?
;; ;;
altos | altos3068) altos | altos3068)
basic_machine=m68k-altos cpu=m68k
os=-sysv # maybe? vendor=altos
os=sysv # maybe?
;; ;;
altosgas) altosgas)
basic_machine=m68k-altos cpu=m68k
os=-gas vendor=altos
os=gas
;; ;;
miniframe) miniframe)
basic_machine=m68000-convergent cpu=m68000
os=-sysv # maybe? vendor=convergent
os=sysv # maybe?
;; ;;
tower | tower-32) tower | tower-32)
basic_machine=m68k-ncr cpu=m68k
os=-sysv # maybe? vendor=ncr
os=sysv # maybe?
;; ;;
bigmips | news-3600 | risc-news) bigmips | news-3600 | risc-news)
basic_machine=mips-sony cpu=mips
os=-newsos # maybe? vendor=sony
os=newsos # maybe?
;; ;;
littlemips) littlemips)
basic_machine=mips-little cpu=mips
os=-bsd vendor=little
os=bsd
;; ;;
dec3100 | decstatn | decstation | decstation-3100 | pmax) dec3100 | decstatn | decstation | decstation-3100 | pmax)
basic_machine=mips-dec cpu=mips
os=-ultrix vendor=dec
os=ultrix
;; ;;
magnum | m3230) magnum | m3230)
basic_machine=mips-mips cpu=mips
os=-sysv # maybe? vendor=mips
os=sysv # maybe?
;; ;;
gmicro) gmicro)
basic_machine=tron cpu=tron
os=-sysv # maybe? vendor=none
os=sysv # maybe?
;; ;;
convex-c1) convex-c1)
basic_machine=c1-convex cpu=c1
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;; ;;
convex-c2) convex-c2)
basic_machine=c2-convex cpu=c2
os=-sysv # maybe? vendor=convex
os=sysv # maybe?
;;
none)
cpu=none
vendor=none
os=none
;;
# not an alias. parse what we expect to be a canonical name.
*)
cpu=`echo $1 | sed 's/-.*$//'`
if [ "${cpu}" = "$1" ] ; then
# no vendor so this is an invalid name.
echo '***' No vendor: configuration \`$1\' not recognized 1>&2
exit 1
else
# parse out vendor
rest=`echo $1 | sed "s/${cpu}-//"`
vendor=`echo ${rest} | sed 's/-.*$//'`
if [ "${vendor}" = "${rest}" ] ; then
# a missing os is acceptable
os=none
else
os=`echo ${rest} | sed "s/${vendor}-//"`
fi
fi
;;
esac
# At this point we should have three parts of a canonical name in cpu,
# vendor, and os.
# verify that the cpu is known.
case "${cpu}" in
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960)
;; ;;
*) *)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
# Decode manufacturer-specific aliases for certain operating systems. # verify that the vendor is known.
case $os in case "${vendor}" in
# First accept the basic system types. none | convex | mips | dec | little | sony | ncr | convergent \
# The portable systems comes first. | altos | apollo | isi | hp | next | sco | ibm | sun \
-bsd* | -sysv* | -mach* \ | unicom | sequent | encore | motorola | att | sgi \
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ | utek | gould | wrs | intel | aout | bout | coff) ;;
| -unos* | -osf* | -v88r* | -aout | -coff | -bout \
| -nindy | -vxworks)
;;
-newsos*)
os=-bsd
;;
-ultrix*)
os=-bsd
;;
-osfrose*)
os=-osf
;;
-osf*)
os=-bsd
;;
-dynix*)
os=-bsd
;;
-ctix*)
os=-sysv
;;
*) *)
# Get rid of the `-' at the beginning of $os. echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2
os=`echo $1 | sed 's/[^-]*-//'`
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
exit 1 exit 1
;; ;;
esac esac
echo ${basic_machine}${os} # verify that the os is known, if it exists.
case "${os}" in
aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* \
| isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \
| sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks*)
;;
*)
echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
echo ${cpu}-${vendor}-${os}