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