Use new i386aout when i386-aout seen
[deliverable/binutils-gdb.git] / gdb / configure.in
CommitLineData
912e0732
RP
1srcname="GDB"
2srctrigger=main.c
912e0732 3
0df06ca0
RP
4# per-host:
5
6c815bbe
RP
6# map host info into gdb names.
7
8case "${host_cpu}" in
9
10m68k)
11 case "${host_vendor}" in
12 att) gdb_host=3b1 ;;
13 altos)
14 case "${host_os}" in
15 gas) gdb_host=altosgas ;;
16 *) gdb_host=altos ;;
17 esac
18 ;;
afe4ca15
JG
19
20 cbm)
21 case ${host_os} in
22 amigados) gdb_host=amigados ;;
23 svr4) gdb_host=amix ;;
24 esac
25 ;;
26
6c815bbe
RP
27 hp)
28 case ${host_os} in
29 hpux) gdb_host=hp300hpux ;;
30 bsd) gdb_host=hp300bsd ;;
31 esac
32 ;;
33
34 isi) gdb_host=isi ;;
35 sony) gdb_host=news ;;
36 sun)
37 case "${host_os}" in
38 sunos3) gdb_host=sun3os3 ;;
39 sunos4) gdb_host=sun3os4 ;;
40 *) gdb_host=sun3 ;;
41 esac
42 ;;
43 esac
44 ;;
45
46m68000)
47 case "${host_vendor}" in
48 sun)
49 case "${host_os}" in
50 sunos3) gdb_host=sun2os3 ;;
51 sunos4) gdb_host=sun2os4 ;;
52 *) gdb_host=sun2 ;;
53 esac
54 esac
55 ;;
56
57sparc)
58 case "${host_os}" in
59 sunos3) gdb_host=sun4os3 ;;
60 sunos4) gdb_host=sun4os4 ;;
61 *) gdb_host=sun4 ;;
62 esac
63 ;;
64
65m68030)
66 case "${host_vendor}" in
67 sony) gdb_host=news1000 ;;
68 esac
69 ;;
70
71mips)
72 case "${host_vendor}" in
73 sony) gdb_host=bigmips ;;
5d2cfefe 74 dec) gdb_host=decstation ;;
6c815bbe 75 little) gdb_host=littlemips ;;
625453dc 76 sgi) gdb_host=irix3 ;;
6c815bbe
RP
77 esac
78 ;;
79
80i386)
81 case "${host_vendor}" in
82 sun) gdb_host=sun386 ;;
83 sco) gdb_host=i386sco ;;
84 sequent) gdb_host=symmetry ;;
85 *)
86 case "${host_os}" in
87 sysv) gdb_host=i386v ;;
88 sysv32) gdb_host=i386v32 ;;
6617b94e 89 mach) gdb_host=i386mach ;;
6c815bbe
RP
90 esac
91 ;;
92 esac
93 ;;
94
95c1 | c2) gdb_host=convex ;;
96
97ns32k)
98 case "${host_vendor}" in
99 umax) gdb_host=umax ;;
100 esac
101 ;;
102
0476df73 103romp)
473f3318
JG
104 gdb_host=rtbsd
105 ;;
106
b90c4f33
JG
107rs6000)
108 gdb_host=rs6000
109 ;;
110
473f3318
JG
111a29k)
112 gdb_host=ultra3
113 ;;
114
115arm | vax | m88k | merlin | none | np1 | pn | pyramid | tahoe)
116 gdb_host=${host_cpu}
117 ;;
6c815bbe
RP
118
119### unhandled hosts
120#altosgas
121#i386v-g
122#i386v32-g
123
124esac
125
126if [ ! -f xconfig/${gdb_host} ]; then
127 echo '***' "Gdb does not support host ${host}" 1>&2
912e0732
RP
128 exit 1
129fi
130
bdf3621b 131# We really shouldn't depend on there being a space after XM_FILE= ...
6c815bbe 132hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <xconfig/${gdb_host}`
912e0732 133
0df06ca0 134# per-target:
912e0732 135
6c815bbe
RP
136case "${target_cpu}" in
137
138m68k)
139 case "${target_vendor}" in
140 att) gdb_target=3b1 ;;
141 altos) gdb_target=altos ;;
afe4ca15
JG
142 cbm)
143 case ${target_os} in
144 amigados) gdb_host=amigados ;;
145 svr4) gdb_target=amix ;;
146 esac
147 ;;
6c815bbe
RP
148 hp)
149 case "${target_os}" in
150 bsd) gdb_target=hp300bsd ;;
151 hpux) gdb_target=hp300hpux ;;
152 esac
153 ;;
154 sun)
155 case "${target_os}" in
156 sunos3) gdb_target=sun3os3 ;;
157 sunos4) gdb_target=sun3os4 ;;
158 *) gdb_target=sun3 ;;
159 esac
160 ;;
161 wrs) gdb_target=vxworks68 ;;
162 isi) gdb_target=isi ;;
163 sony) gdb_target=news ;;
164 esac
165 ;;
166
167m68000)
168 case "${target_vendor}" in
169 sun)
170 case "${target_os}" in
171 sunos3) gdb_target=sun2os3 ;;
172 sunos4) gdb_target=sun2os4 ;;
173 *) gdb_target=sun2 ;;
174 esac
175 esac
176 ;;
177
178m68030)
179 case "${target_vendor}" in
180 sony) gdb_target=news1000 ;;
181 esac
182 ;;
183
473f3318 184none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin | m88k)
6c815bbe 185 gdb_target=${target_cpu} ;;
6c815bbe 186
473f3318
JG
187a29k)
188 case "${target_os}" in
f74ff50f 189 none|aout|coff) gdb_target=a29k ;;
473f3318
JG
190 sym1) gdb_target=ultra3 ;;
191 kern) gdb_target=a29k-kern ;;
44e4e473 192 ebmon) gdb_target=a29k;;
473f3318
JG
193 esac
194 ;;
195
6c815bbe
RP
196mips)
197 case "${target_vendor}" in
198 sony) gdb_target=bigmips ;;
5d2cfefe 199 dec) gdb_target=decstation ;;
6c815bbe 200 little) gdb_target=littlemips ;;
625453dc 201 sgi) gdb_target=irix3 ;;
6c815bbe
RP
202 esac
203 ;;
204
205c1 | c2) gdb_target=convex ;;
206
6c815bbe
RP
207sparc)
208 case "${target_vendor}" in
209 sun)
210 case "${target_os}" in
211 sunos3) gdb_target=sun4os3 ;;
212 sunos4) gdb_target=sun4os4 ;;
213 *) gdb_target=sun4 ;;
214 esac
215 ;;
216 esac
217 ;;
218
219
220i386)
221 case "${target_vendor}" in
69e87de2
RP
222 sco) gdb_target=i386sco ;;
223 sun) gdb_target=sun386 ;;
6c815bbe 224 sequent) gdb_target=symmetry ;;
69e87de2 225 coff) gdb_target=i386v ;;
4dbf824f 226 aout) gdb_target=i386aout ;;
6c815bbe
RP
227 *)
228 case "${target_os}" in
229 sysv) gdb_target=i386v ;;
230 sysv32) gdb_target=i386v32 ;;
6617b94e 231 mach) gdb_target=i386mach ;;
6c815bbe
RP
232 esac
233 esac
234 ;;
235
236i960)
237 case "${target_vendor}" in
69e87de2
RP
238 bout | wrs) gdb_target=vxworks960 ;;
239 coff | intel) gdb_target=nindy960 ;;
6c815bbe
RP
240 esac
241 ;;
242
243ns32k)
244 case "${target_vendor}" in
245 utek) gdb_target=umax ;;
246 esac
247 ;;
248
b90c4f33
JG
249rs6000)
250 gdb_target=rs6000
251 ;;
252
6c815bbe
RP
253### unhandled targets
254# altosgas
255# i386v-g
256# i386v32-g
257
258esac
259
260if [ ! -f tconfig/${gdb_target} ]; then
261 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
262 exit 1
263fi
264
265if [ -z "${removing}" ] ; then
6c815bbe 266 cat xconfig/${gdb_host} tconfig/${gdb_target} | awk '$1 == "#msg" {
912e0732
RP
267 print substr($0,6)}'
268fi
269
bdf3621b 270# We really shouldn't depend on there being a space after TM_FILE= ...
6c815bbe 271targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <tconfig/${gdb_target}`
912e0732 272
6c815bbe
RP
273host_makefile_frag=xconfig/${gdb_host}
274target_makefile_frag=tconfig/${gdb_target}
912e0732 275
bdf3621b 276# If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
dc0c3f64
JG
277# ?config/* file, we don't make the corresponding links. But we have
278# to remove the xm.h files and tm.h files anyway, e.g. when switching
279# from "configure host" to "configure none".
bdf3621b
JG
280files=
281links=
dc0c3f64 282rm -f xm.h
bdf3621b
JG
283if [ "${hostfile}" != "" ]; then
284 files="${files} ${hostfile}"
285 links="${links} xm.h"
286fi
dc0c3f64 287rm -f tm.h
bdf3621b
JG
288if [ "${targetfile}" != "" ]; then
289 files="${files} ${targetfile}"
290 links="${links} tm.h"
291fi
292
293# post-target:
912e0732 294
bdf3621b
JG
295case ${srcdir} in
296 .)
297 ;;
298 *)
299 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
300 echo "source ${srcdir}/.gdbinit" >> .gdbinit
301esac
302
dc0c3f64 303cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
This page took 0.049323 seconds and 4 git commands to generate.