xref: /openbsd-src/gnu/usr.bin/binutils/gdb/configure.host (revision f2da64fbbbf1b03f09f390ab01267c93dfd77c4c)
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=obsd ;;
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*-*-hiux*)		gdb_host=hppahpux ;;
55hppa*-*-hpux10.20)	gdb_host=hpux1020 ;;
56hppa*64*-*-hpux11*)	gdb_host=hpux11w ;;
57hppa*-*-hpux11*)	gdb_host=hpux11 ;;
58hppa*-*-hpux*)		gdb_host=hppahpux ;;
59hppa*-*-linux*)		gdb_host=linux ;;
60hppa*-*-openbsd*)	gdb_host=obsd ;;
61
62i[34567]86-ncr-*)	gdb_host=ncr3000 ;;
63i[34567]86-*-dgux*)	gdb_host=i386v4 ;;
64i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
65			gdb_host=fbsd ;;
66i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu)
67			gdb_host=nbsdelf ;;
68i[34567]86-*-netbsd*)	gdb_host=nbsdaout ;;
69i[34567]86-*-go32*)	gdb_host=go32 ;;
70i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
71i[34567]86-*-linux*)	gdb_host=linux ;;
72i[34567]86-*-lynxos*)	gdb_host=i386lynx ;;
73i[34567]86-*-gnu*)	gdb_host=i386gnu ;;
74i[3456]86-*-nto*) 	gdb_host=nto ;;
75i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3])
76			gdb_host=obsdaout ;;
77i[34567]86-*-openbsd*)	gdb_host=obsd ;;
78i[34567]86-*-sco3.2v5*)	gdb_host=i386sco5 ;;
79i[34567]86-*-sco3.2v4*)	gdb_host=i386sco4 ;;
80i[34567]86-*-sco*)	gdb_host=i386sco ;;
81i[34567]86-*-solaris*)	gdb_host=i386sol2 ;;
82i[34567]86-*-sysv4.2*)	gdb_host=i386v42mp ;;
83i[34567]86-*-sysv4*)	gdb_host=i386v4 ;;
84i[34567]86-*-sysv5*)	gdb_host=i386v42mp ;;
85i[34567]86-*-unixware2*)	gdb_host=i386v42mp ;;
86i[34567]86-*-unixware*)	gdb_host=i386v4 ;;
87i[34567]86-*-sysv*)	gdb_host=i386v ;;
88i[34567]86-*-isc*)	gdb_host=i386v ;;
89i[34567]86-*-cygwin*)	gdb_host=cygwin ;;
90
91ia64-*-aix*)		gdb_host=aix ;;
92ia64-*-linux*)		gdb_host=linux ;;
93
94m68*-*-linux*)		gdb_host=linux ;;
95m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu)
96			gdb_host=nbsdelf ;;
97m68*-*-netbsd*)		gdb_host=nbsdaout ;;
98m68*-*-openbsd*)	gdb_host=obsd ;;
99
100m88*-*-openbsd*)	gdb_host=obsd ;;
101
102mips-sgi-irix5*)	gdb_host=irix5 ;;
103mips-sgi-irix6*)	gdb_host=irix6 ;;
104mips*-*-linux*)		gdb_host=linux ;;
105mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
106			gdb_host=nbsd ;;
107mips64*-*-openbsd*)	gdb_host=obsd64 ;;
108
109ns32k-*-netbsd*)	gdb_host=nbsdaout ;;
110
111powerpc-*-aix*)		gdb_host=aix ;;
112powerpc-*-linux*)	gdb_host=linux ;;
113powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
114			gdb_host=nbsd ;;
115powerpc-*-openbsd*)	gdb_host=obsd ;;
116
117powerpc64-*-linux*)     gdb_host=ppc64-linux ;;
118
119rs6000-*-lynxos*)	gdb_host=rs6000lynx ;;
120rs6000-*-aix4*)		gdb_host=aix4 ;;
121rs6000-*-*)		gdb_host=rs6000 ;;
122
123s390*-*-*)		gdb_host=s390 ;;
124
125sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
126			gdb_host=nbsd ;;
127sh*-*-openbsd*)		gdb_host=obsd ;;
128
129sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
130			gdb_host=fbsd ;;
131sparc-*-linux*)		gdb_host=linux ;;
132sparc64-*-linux*)	gdb_host=linux64 ;;
133sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu)
134			gdb_host=nbsdelf ;;
135sparc-*-netbsdaout*)	gdb_host=nbsdaout ;;
136sparc-*-netbsd*)	gdb_host=nbsdaout ;;
137sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
138			gdb_host=nbsd64 ;;
139sparc-*-openbsd*)	gdb_host=nbsdelf ;;
140sparc64-*-openbsd*)	gdb_host=obsd64 ;;
141sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
142			gdb_host=sol2
143			;;
144
145vax-*-bsd*)		gdb_host=vax ;;
146vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
147			gdb_host=nbsdelf ;;
148vax-*-netbsd*)		gdb_host=nbsdaout ;;
149vax-*-openbsd*)		gdb_host=obsd ;;
150vax-*-ultrix*)		gdb_host=vax ;;
151
152x86_64-*-linux*)	gdb_host=linux64 ;;
153x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
154			gdb_host=fbsd64 ;;
155x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
156			gdb_host=nbsd64 ;;
157x86_64-*-openbsd*)	gdb_host=obsd64 ;;
158
159m32r*-*-linux*)          gdb_host=linux ;;
160
161esac
162
163
164
165# Map the host/cpu onto the floatformat correspondong to C's "float",
166# "double" and "long double" types.
167
168case "${host}" in
169i[34567]86-*-*)
170	gdb_host_float_format="&floatformat_ieee_single_little"
171	gdb_host_double_format="&floatformat_ieee_double_little"
172	gdb_host_long_double_format="&floatformat_i387_ext"
173	;;
174hppa*-*-linux*)
175	gdb_host_float_format="&floatformat_ieee_single_big"
176	gdb_host_double_format="&floatformat_ieee_double_big"
177	gdb_host_long_double_format="&floatformat_ieee_double_big"
178	;;
179*)
180	gdb_host_float_format=0
181	gdb_host_double_format=0
182	gdb_host_long_double_format=0
183	;;
184esac
185