PR binutils/1437
[deliverable/binutils-gdb.git] / gdb / configure.host
... / ...
CommitLineData
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# 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
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 ;;
17arm*) gdb_host_cpu=arm ;;
18hppa*) gdb_host_cpu=pa ;;
19i[34567]86*) gdb_host_cpu=i386 ;;
20m68*) gdb_host_cpu=m68k ;;
21m88*) gdb_host_cpu=m88k ;;
22mips*) gdb_host_cpu=mips ;;
23powerpc*) gdb_host_cpu=powerpc ;;
24sparcv9 | sparc64) gdb_host_cpu=sparc ;;
25s390*) gdb_host_cpu=s390 ;;
26sh*) gdb_host_cpu=sh ;;
27x86_64*) gdb_host_cpu=i386 ;;
28xscale*) gdb_host_cpu=arm ;;
29m32r*) gdb_host_cpu=m32r ;;
30*) gdb_host_cpu=$host_cpu ;;
31
32esac
33
34# map host info into gdb names.
35
36case "${host}" in
37
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 ;;
42alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
43 gdb_host=fbsd ;;
44alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
45 gdb_host=nbsd ;;
46alpha*-*-openbsd*) gdb_host=nbsd ;;
47
48arm*-*-linux*) gdb_host=linux ;;
49arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu)
50 gdb_host=nbsdelf ;;
51arm*-*-netbsd*) gdb_host=nbsdaout ;;
52arm*-*-openbsd*) gdb_host=nbsdelf ;;
53
54hppa*-*-hpux* | hppa*-*-hiux*)
55 gdb_host=hpux ;;
56hppa*-*-linux*) gdb_host=linux ;;
57hppa*-*-openbsd*) gdb_host=obsd ;;
58
59i[34567]86-ncr-*) gdb_host=ncr3000 ;;
60i[34567]86-*-dgux*) gdb_host=i386v4 ;;
61i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
62 gdb_host=fbsd ;;
63i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
64 gdb_host=nbsdelf ;;
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 ;;
71i[3456]86-*-nto*) gdb_host=nto ;;
72i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
73 gdb_host=obsdaout ;;
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-*-solaris2.1[0-9]*) gdb_host=sol2-64 ;;
79i[34567]86-*-solaris*) gdb_host=i386sol2 ;;
80i[34567]86-*-sysv4.2*) gdb_host=i386v42mp ;;
81i[34567]86-*-sysv4*) gdb_host=i386v4 ;;
82i[34567]86-*-sysv5*) gdb_host=i386v42mp ;;
83i[34567]86-*-unixware2*) gdb_host=i386v42mp ;;
84i[34567]86-*-unixware*) gdb_host=i386v4 ;;
85i[34567]86-*-sysv*) gdb_host=i386v ;;
86i[34567]86-*-isc*) gdb_host=i386v ;;
87i[34567]86-*-cygwin*) gdb_host=cygwin ;;
88
89ia64-*-linux*) gdb_host=linux ;;
90
91m68*-*-linux*) gdb_host=linux ;;
92m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
93 gdb_host=nbsdelf ;;
94m68*-*-netbsd*) gdb_host=nbsdaout ;;
95m68*-*-openbsd*) gdb_host=obsd ;;
96
97m88*-*-openbsd*) gdb_host=obsd ;;
98
99mips-sgi-irix5*) gdb_host=irix5 ;;
100mips-sgi-irix6*) gdb_host=irix6 ;;
101mips*-*-linux*) gdb_host=linux ;;
102mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
103 gdb_host=nbsd ;;
104mips64*-*-openbsd*) gdb_host=obsd64 ;;
105
106powerpc-*-aix*) gdb_host=aix ;;
107powerpc-*-linux*) gdb_host=linux ;;
108powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
109 gdb_host=nbsd ;;
110powerpc-*-openbsd*) gdb_host=obsd ;;
111
112powerpc64-*-linux*) gdb_host=ppc64-linux ;;
113
114rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
115rs6000-*-aix4*) gdb_host=aix4 ;;
116rs6000-*-*) gdb_host=rs6000 ;;
117
118s390*-*-*) gdb_host=s390 ;;
119
120sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
121 gdb_host=nbsd ;;
122
123sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
124 gdb_host=fbsd ;;
125sparc-*-linux*) gdb_host=linux ;;
126sparc64-*-linux*) gdb_host=linux64 ;;
127sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
128 gdb_host=nbsdelf ;;
129sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
130sparc-*-netbsd*) gdb_host=nbsdaout ;;
131sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
132 gdb_host=nbsd64 ;;
133sparc-*-openbsd*) gdb_host=nbsdelf ;;
134sparc64-*-openbsd*) gdb_host=nbsd64 ;;
135sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
136 gdb_host=sol2
137 ;;
138
139vax-*-bsd*) gdb_host=vax ;;
140vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
141 gdb_host=nbsdelf ;;
142vax-*-netbsd*) gdb_host=nbsdaout ;;
143vax-*-openbsd*) gdb_host=obsd ;;
144vax-*-ultrix*) gdb_host=vax ;;
145
146x86_64-*-linux*) gdb_host=linux64 ;;
147x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
148 gdb_host=fbsd64 ;;
149x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
150 gdb_host=nbsd64 ;;
151x86_64-*-openbsd*) gdb_host=obsd64 ;;
152
153m32r*-*-linux*) gdb_host=linux ;;
154
155esac
156
157
158
159# Map the host/cpu onto the floatformat correspondong to C's "float",
160# "double" and "long double" types.
161
162case "${host}" in
163i[34567]86-*-*)
164 gdb_host_float_format="&floatformat_ieee_single_little"
165 gdb_host_double_format="&floatformat_ieee_double_little"
166 gdb_host_long_double_format="&floatformat_i387_ext"
167 ;;
168hppa*-*-linux*)
169 gdb_host_float_format="&floatformat_ieee_single_big"
170 gdb_host_double_format="&floatformat_ieee_double_big"
171 gdb_host_long_double_format="&floatformat_ieee_double_big"
172 ;;
173m68*-*-*)
174 gdb_host_float_format="&floatformat_ieee_single_big"
175 gdb_host_double_format="&floatformat_ieee_double_big"
176 gdb_host_long_double_format="&floatformat_m68881_ext"
177 ;;
178*)
179 gdb_host_float_format=0
180 gdb_host_double_format=0
181 gdb_host_long_double_format=0
182 ;;
183esac
This page took 0.023077 seconds and 4 git commands to generate.