2004-07-29 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / configure.host
CommitLineData
c906108c
SS
1# Mapping of configurations into GDB host definitions. This is
2# invoked from the autoconf generated configure script.
3
4# This file sets the following shell variables:
5# gdb_host_cpu generic name of host's CPU
6# gdb_host name of GDB host definition to use
7
8# Map host cpu into the config cpu subdirectory name.
9# The default is $host_cpu.
10
11case "${host_cpu}" in
12
13alpha*) gdb_host_cpu=alpha ;;
f2ae7829 14arm*) gdb_host_cpu=arm ;;
c906108c 15hppa*) gdb_host_cpu=pa ;;
1581182a 16i[34567]86*) gdb_host_cpu=i386 ;;
c906108c 17m68*) gdb_host_cpu=m68k ;;
bf2ca189 18m88*) gdb_host_cpu=m88k ;;
2aa830e4 19mips*) gdb_host_cpu=mips ;;
c906108c 20powerpc*) gdb_host_cpu=powerpc ;;
ea87b71b 21sparcv9 | sparc64) gdb_host_cpu=sparc ;;
4009c677 22s390*) gdb_host_cpu=s390 ;;
13a38d45 23sh*) gdb_host_cpu=sh ;;
abf22e64 24x86_64*) gdb_host_cpu=i386 ;;
7a76ced5 25xscale*) gdb_host_cpu=arm ;;
ee84457a 26m32r*) gdb_host_cpu=m32r ;;
c906108c
SS
27*) gdb_host_cpu=$host_cpu ;;
28
29esac
30
31# map host info into gdb names.
32
33case "${host}" in
34
c906108c
SS
35alpha*-*-osf1*) gdb_host=alpha-osf1 ;;
36alpha*-*-osf2*) gdb_host=alpha-osf2 ;;
37alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
38alpha*-*-linux*) gdb_host=alpha-linux ;;
59c94889 39alpha*-*-freebsd*) gdb_host=fbsd ;;
da8ca43d 40alpha*-*-netbsd*) gdb_host=nbsd ;;
2031c21a 41alpha*-*-openbsd*) gdb_host=nbsd ;;
c906108c 42
f2ae7829 43arm*-*-linux*) gdb_host=linux ;;
9eeef8ef
JT
44arm*-*-netbsdelf*) gdb_host=nbsdelf ;;
45arm*-*-netbsd*) gdb_host=nbsdaout ;;
c906108c 46
c906108c
SS
47hppa*-*-hiux*) gdb_host=hppahpux ;;
48hppa*-*-hpux10.20) gdb_host=hpux1020 ;;
5ec846f9 49hppa*64*-*-hpux11*) gdb_host=hpux11w ;;
f2ae7829 50hppa*-*-hpux11*) gdb_host=hpux11 ;;
c906108c 51hppa*-*-hpux*) gdb_host=hppahpux ;;
50306a9d 52hppa*-*-linux*) gdb_host=linux ;;
0e56aeaf 53hppa*-*-openbsd*) gdb_host=obsd ;;
c906108c 54
1581182a 55i[34567]86-ncr-*) gdb_host=ncr3000 ;;
1581182a 56i[34567]86-*-dgux*) gdb_host=i386v4 ;;
48184fd4
AC
57i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
58 gdb_host=fbsd ;;
59i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
60 gdb_host=nbsdelf ;;
1581182a 61i[34567]86-*-freebsd*) gdb_host=fbsd ;;
1581182a
MK
62i[34567]86-*-netbsd*) gdb_host=nbsdaout ;;
63i[34567]86-*-go32*) gdb_host=go32 ;;
64i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
65i[34567]86-*-linux*) gdb_host=linux ;;
66i[34567]86-*-lynxos*) gdb_host=i386lynx ;;
67i[34567]86-*-gnu*) gdb_host=i386gnu ;;
61bb466e 68i[3456]86-*-nto*) gdb_host=nto ;;
ba361932
MK
69i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
70 gdb_host=obsdaout ;;
1581182a
MK
71i[34567]86-*-openbsd*) gdb_host=obsd ;;
72i[34567]86-*-sco3.2v5*) gdb_host=i386sco5 ;;
73i[34567]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
74i[34567]86-*-sco*) gdb_host=i386sco ;;
75i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
76i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
77i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
78i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
79i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
80i[34567]86-*-unixware*) gdb_host=i386v4 ;;
81i[34567]86-*-sysv*) gdb_host=i386v ;;
82i[34567]86-*-isc*) gdb_host=i386v ;;
83i[34567]86-*-cygwin*) gdb_host=cygwin ;;
eafb8301 84
596c9d4b 85ia64-*-aix*) gdb_host=aix ;;
eafb8301
KB
86ia64-*-linux*) gdb_host=linux ;;
87
c906108c 88m68*-*-linux*) gdb_host=linux ;;
827f338d 89m68*-*-netbsdelf*) gdb_host=nbsdelf ;;
9eeef8ef 90m68*-*-netbsd*) gdb_host=nbsdaout ;;
8f2d3ea0 91m68*-*-openbsd*) gdb_host=obsd ;;
3c7012f5 92
bf2ca189
MK
93m88*-*-openbsd*) gdb_host=obsd ;;
94
c906108c 95mips-sgi-irix5*) gdb_host=irix5 ;;
1d06468c 96mips-sgi-irix6*) gdb_host=irix6 ;;
2aa830e4 97mips*-*-linux*) gdb_host=linux ;;
45888261 98mips*-*-netbsd*) gdb_host=nbsd ;;
c906108c 99
9eeef8ef 100ns32k-*-netbsd*) gdb_host=nbsdaout ;;
c906108c 101
c41669e0
KB
102powerpc-*-aix3*) gdb_host=aix ;;
103powerpc-*-aix4.[0-2]*) gdb_host=aix ;;
104powerpc-*-aix4.3.[0-1]*) gdb_host=aix ;;
105powerpc-*-aix*) gdb_host=aix432 ;;
c906108c 106powerpc-*-linux*) gdb_host=linux ;;
e42180d7 107powerpc-*-netbsd*) gdb_host=nbsd ;;
d195bc9f 108powerpc-*-openbsd*) gdb_host=obsd ;;
c906108c 109
8fbb30b1
JB
110powerpc64-*-linux*) gdb_host=ppc64-linux ;;
111
c906108c
SS
112rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
113rs6000-*-aix4*) gdb_host=aix4 ;;
114rs6000-*-*) gdb_host=rs6000 ;;
115
4009c677
AC
116s390*-*-*) gdb_host=s390 ;;
117
13a38d45
JT
118sh*-*-netbsdelf*) gdb_host=nbsd ;;
119
386c036b 120sparc64-*-freebsd*) gdb_host=fbsd ;;
c906108c 121sparc-*-linux*) gdb_host=linux ;;
386c036b 122sparc64-*-linux*) gdb_host=linux64 ;;
f2ae7829 123sparc-*-netbsdelf*) gdb_host=nbsdelf ;;
9eeef8ef
JT
124sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
125sparc-*-netbsd*) gdb_host=nbsdaout ;;
9ce5c36a 126sparc64-*-netbsd*) gdb_host=nbsd64 ;;
f2cab569
MK
127sparc-*-openbsd*) gdb_host=nbsdelf ;;
128sparc64-*-openbsd*) gdb_host=nbsd64 ;;
386c036b
MK
129sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
130 gdb_host=sol2
131 ;;
c906108c 132
6f606e1c
MK
133vax-*-netbsdelf*) gdb_host=nbsdelf ;;
134vax-*-netbsd*) gdb_host=nbsdaout ;;
9f076e7a 135vax-*-openbsd*) gdb_host=obsd ;;
c906108c
SS
136vax-*-bsd*) gdb_host=vaxbsd ;;
137vax-*-ultrix2*) gdb_host=vaxult2 ;;
138vax-*-ultrix*) gdb_host=vaxult ;;
139
9c1488cb 140x86_64-*-linux*) gdb_host=linux64 ;;
68cc0bfb 141x86_64-*-freebsd*) gdb_host=fbsd64 ;;
cced5e27 142x86_64-*-netbsd*) gdb_host=nbsd64 ;;
e2879ccb 143x86_64-*-openbsd*) gdb_host=obsd64 ;;
abf22e64 144
ee84457a
AC
145m32r*-*-linux*) gdb_host=linux ;;
146
c906108c 147esac
This page took 0.357044 seconds and 4 git commands to generate.