* infrun.c (wait_for_inferior): Don't test for SIGEMT
[deliverable/binutils-gdb.git] / gdb / configure.in
1 configdirs="doc"
2 srcname="GDB"
3 srctrigger=main.c
4 target_dependent=true
5
6 # per-host:
7
8 # map host info into gdb names.
9
10 case "${host_cpu}" in
11
12 m68k)
13 case "${host_vendor}" in
14 apollo*)
15 case "${host_os}" in
16 sysv*) gdb_host=apollo68v ;;
17 esac
18 ;;
19 att) gdb_host=3b1 ;;
20 altos)
21 case "${host_os}" in
22 gas) gdb_host=altosgas ;;
23 *) gdb_host=altos ;;
24 esac
25 ;;
26
27 cbm)
28 case ${host_os} in
29 amigados) gdb_host=amigados ;;
30 sysv4*) gdb_host=amix ;;
31 esac
32 ;;
33
34 hp)
35 case ${host_os} in
36 hpux) gdb_host=hp300hpux ;;
37 bsd) gdb_host=hp300bsd ;;
38 esac
39 ;;
40
41 isi) gdb_host=isi ;;
42 sony) gdb_host=news ;;
43 sun)
44 case "${host_os}" in
45 sunos3) gdb_host=sun3os3 ;;
46 sunos4) gdb_host=sun3os4 ;;
47 *) gdb_host=sun3 ;;
48 esac
49 ;;
50 esac
51 ;;
52
53 m68000)
54 case "${host_vendor}" in
55 sun)
56 case "${host_os}" in
57 sunos3) gdb_host=sun2os3 ;;
58 sunos4) gdb_host=sun2os4 ;;
59 *) gdb_host=sun2 ;;
60 esac
61 esac
62 ;;
63
64 sparc)
65 case "${host_os}" in
66 sunos3) gdb_host=sun4os3 ;;
67 sunos4) gdb_host=sun4os4 ;;
68 solaris2*) gdb_host=sun4sol2 ;;
69 *) gdb_host=sun4 ;;
70 esac
71 ;;
72
73 m68030)
74 case "${host_vendor}" in
75 sony) gdb_host=news1000 ;;
76 esac
77 ;;
78
79 mips)
80 case "${host_vendor}" in
81 sony) gdb_host=bigmips ;;
82 dec) gdb_host=decstation ;;
83 little) gdb_host=littlemips ;;
84 sgi)
85 case "${host_os}" in
86 irix3) gdb_host=irix3 ;;
87 irix4) gdb_host=irix4 ;;
88 esac
89 ;;
90 esac
91 ;;
92
93 i860)
94 gdb_host=stratus
95 ;;
96
97 i386)
98 case "${host_vendor}" in
99 sun) gdb_host=sun386 ;;
100 sco) gdb_host=i386sco ;;
101 sequent) gdb_host=symmetry ;;
102 ncr) gdb_host=ncr3000 ;;
103 *)
104 case "${host_os}" in
105 go32) gdb_host=go32 ;;
106 sysv32) gdb_host=i386v32 ;;
107 sysv4*) gdb_host=i386v4 ;;
108 sysv*) gdb_host=i386v ;;
109 scosysv*) gdb_host=i386sco ;;
110 mach) gdb_host=i386mach ;;
111 linux) gdb_host=linux ;;
112 esac
113 ;;
114 esac
115 ;;
116
117 c1 | c2) gdb_host=convex ;;
118
119 ns32k)
120 case "${host_vendor}" in
121 umax) gdb_host=umax ;;
122 esac
123 ;;
124
125 romp)
126 gdb_host=rtbsd
127 ;;
128
129 rs6000)
130 gdb_host=rs6000
131 ;;
132
133 a29k)
134 gdb_host=ultra3
135 ;;
136
137 m88k)
138 case "${host_vendor}" in
139 motorola)
140 gdb_host=delta88 ;;
141 *)
142 gdb_host=m88k ;;
143 esac
144 ;;
145
146 vax)
147 case "${host_os}" in
148 bsd*)
149 gdb_host=vaxbsd ;;
150 ultrix*)
151 gdb_host=vaxult ;;
152 esac
153 ;;
154
155 arm | merlin | none | np1 | pn | pyramid | tahoe)
156 gdb_host=${host_cpu}
157 ;;
158
159 hppa)
160 case "${host_vendor}" in
161 hp)
162 case "${host_os}" in
163 hpux) gdb_host=hppahpux ;;
164 bsd) gdb_host=hppabsd ;;
165 esac
166 ;;
167 esac
168 ;;
169
170 ### unhandled hosts
171 #altosgas
172 #i386v-g
173 #i386v32-g
174
175 esac
176
177
178 if [ ! -f ${srcdir}/config/${gdb_host}.mh ]; then
179 echo '***' "Gdb does not support host ${host}" 1>&2
180 exit 1
181 fi
182
183 # We really shouldn't depend on there being a space after XM_FILE= ...
184 hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
185
186 # per-target:
187
188 case "${target_cpu}" in
189
190 m68k)
191 case "${target_vendor}" in
192 att) gdb_target=3b1 ;;
193 altos) gdb_target=altos ;;
194 cbm)
195 case ${target_os} in
196 amigados) gdb_host=amigados ;;
197 sysv4*) gdb_target=amix ;;
198 esac
199 ;;
200 hp)
201 case "${target_os}" in
202 bsd) gdb_target=hp300bsd ;;
203 hpux) gdb_target=hp300hpux ;;
204 esac
205 ;;
206 sun)
207 case "${target_os}" in
208 sunos3) gdb_target=sun3os3 ;;
209 sunos4) gdb_target=sun3os4 ;;
210 *) gdb_target=sun3 ;;
211 esac
212 ;;
213 wrs) gdb_target=vxworks68 ;;
214 isi) gdb_target=isi ;;
215 sony) gdb_target=news ;;
216 esac
217 case "${target_os}" in
218 os68k) gdb_target=os68k ;;
219 esac
220 ;;
221
222 m68000)
223 case "${target_vendor}" in
224 sun)
225 case "${target_os}" in
226 sunos3) gdb_target=sun2os3 ;;
227 sunos4) gdb_target=sun2os4 ;;
228 *) gdb_target=sun2 ;;
229 esac
230 ;;
231 wrs) gdb_target=vxworks68 ;;
232 esac
233 ;;
234
235 m680[124]0)
236 case "${target_vendor}" in
237 wrs) gdb_target=vxworks68 ;;
238 esac
239 ;;
240
241 m68030)
242 case "${target_vendor}" in
243 sony) gdb_target=news1000 ;;
244 wrs) gdb_target=vxworks68 ;;
245 esac
246 ;;
247
248 m68kmote)
249 case "${target_vendor}" in
250 tandem) gdb_target=st2000 ;;
251 esac
252 ;;
253
254 none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin)
255 gdb_target=${target_cpu} ;;
256
257 m88k)
258 case "${target_vendor}" in
259 motorola) gdb_target=delta88 ;;
260 *) gdb_target=dgux ;;
261 esac
262 ;;
263 a29k)
264 case "${target_os}" in
265 none|aout|coff) gdb_target=a29k ;;
266 sym1) gdb_target=ultra3 ;;
267 kern) gdb_target=a29k-kern ;;
268 ebmon) gdb_target=a29k;;
269 udi) gdb_target=a29k-udi;;
270 esac
271 ;;
272
273 mips)
274 case "${target_vendor}" in
275 sony) gdb_target=bigmips ;;
276 big) gdb_target=bigmips ;;
277 dec) gdb_target=decstation ;;
278 little) gdb_target=littlemips ;;
279 sgi) gdb_target=irix3 ;;
280 esac
281 ;;
282
283 c1 | c2) gdb_target=convex ;;
284
285 sparc)
286 case "${target_vendor}" in
287 sun)
288 case "${target_os}" in
289 sunos3) gdb_target=sun4os3 ;;
290 sunos4) gdb_target=sun4os4 ;;
291 solaris2*) gdb_target=sun4sol2 ;;
292 *) gdb_target=sun4 ;;
293 esac
294 ;;
295 esac
296 ;;
297
298 h8300)
299 gdb_target=h8300hms
300 ;;
301
302 i860) gdb_target=stratus
303 ;;
304
305 i386)
306 case "${target_vendor}" in
307 sco) gdb_target=i386sco ;;
308 sun) gdb_target=sun386 ;;
309 sequent) gdb_target=symmetry ;;
310 ncr) gdb_target=ncr3000 ;;
311 *)
312 case "${target_os}" in
313 sysv32) gdb_target=i386v32 ;;
314 scosysv3*) gdb_target=i386v32 ;;
315 sysv4*) gdb_target=i386v4 ;;
316 sysv*) gdb_target=i386v ;;
317 mach) gdb_target=i386mach ;;
318 coff) gdb_target=i386v ;;
319 aout) gdb_target=i386aout ;;
320 linux) gdb_target=linux ;;
321 esac
322 esac
323 ;;
324
325 i960)
326 case "${target_vendor}" in
327 bout | wrs) gdb_target=vxworks960 ;;
328 coff | intel) gdb_target=nindy960 ;;
329 esac
330 ;;
331
332 ns32k)
333 case "${target_vendor}" in
334 utek) gdb_target=umax ;;
335 esac
336 ;;
337
338 rs6000)
339 gdb_target=rs6000
340 ;;
341
342 hppa)
343 case "${target_vendor}" in
344 hp)
345 case "${target_os}" in
346 hpux) gdb_target=hppahpux ;;
347 bsd) gdb_target=hppabsd ;;
348 esac
349 ;;
350 esac
351 ;;
352
353 ### unhandled targets
354 # altosgas
355 # i386v-g
356 # i386v32-g
357
358 esac
359
360 if [ ! -f ${srcdir}/config/${gdb_target}.mt ]; then
361 echo '***' "Gdb does not support target ${target}" 1>&2
362 exit 1
363 fi
364
365 if [ -z "${removing}" ] ; then
366 cat ${srcdir}/config/${gdb_host}.mh ${srcdir}/config/${gdb_target}.mt | awk '$1 == "#msg" {
367 print substr($0,6)}'
368 fi
369
370 # We really shouldn't depend on there being a space after TM_FILE= ...
371 targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
372
373 host_makefile_frag=config/${gdb_host}.mh
374 target_makefile_frag=config/${gdb_target}.mt
375
376 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
377 # ?config/* file, we don't make the corresponding links. But we have
378 # to remove the xm.h files and tm.h files anyway, e.g. when switching
379 # from "configure host" to "configure none".
380 files=
381 links=
382 rm -f xm.h
383 if [ "${hostfile}" != "" ]; then
384 files="${files} ${hostfile}"
385 links="${links} xm.h"
386 fi
387 rm -f tm.h
388 if [ "${targetfile}" != "" ]; then
389 files="${files} ${targetfile}"
390 links="${links} tm.h"
391 fi
392
393 # post-target:
394
395 case ${srcdir} in
396 .)
397 ;;
398 *)
399 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
400 echo "source ${srcdir}/.gdbinit" >> .gdbinit
401 esac
402
403 cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
This page took 0.03792 seconds and 5 git commands to generate.