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