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