(arc_get_disassembler): Renamed from arc_disassembler.
[deliverable/binutils-gdb.git] / gdb / configure.in
CommitLineData
6ec7e4d3
SS
1# This file is a shell script fragment that supplies the information
2# necessary to tailor a template configure script into the configure
cc5702bd 3# script approriate for this directory. For more information, check
6ec7e4d3
SS
4# any existing configure script.
5
912e0732
RP
6srcname="GDB"
7srctrigger=main.c
bc028766 8
6ec7e4d3
SS
9configdirs="doc testsuite"
10
0df06ca0
RP
11# per-host:
12
1a0edbc7
FF
13# Map host cpu into the config cpu subdirectory name.
14# The default is $host_cpu.
15
16case "${host_cpu}" in
17
18c[12]) gdb_host_cpu=convex ;;
19hppa*) gdb_host_cpu=pa ;;
7382b3b1 20i[345]86) gdb_host_cpu=i386 ;;
1a0edbc7 21m68*) gdb_host_cpu=m68k ;;
6ec7e4d3 22m88*) gdb_host_cpu=m88k ;;
1a0edbc7
FF
23np1) gdb_host_cpu=gould ;;
24pyramid) gdb_host_cpu=pyr ;;
25*) gdb_host_cpu=$host_cpu ;;
26
27esac
28
6c815bbe
RP
29# map host info into gdb names.
30
19758e9e 31case "${host}" in
6c815bbe 32
19758e9e
JG
33a29k-*-*) gdb_host=ultra3 ;;
34
2592eef8
PS
35alpha-*-osf1*) gdb_host=alpha-osf1 ;;
36alpha-*-osf[23456789]*) gdb_host=alpha-osf2 ;;
7ccb1e44 37
19758e9e
JG
38arm-*-*) gdb_host=arm ;;
39
40c[12]-*-*) gdb_host=convex ;;
41
e8e13040 42hppa*-*-bsd*) gdb_host=hppabsd ;;
e8e13040 43hppa*-*-hiux*) gdb_host=hppahpux ;;
6ec7e4d3 44hppa*-*-hpux*) gdb_host=hppahpux ;;
6bfd168c 45hppa*-*-osf*) gdb_host=hppabsd ;;
19758e9e 46
7382b3b1
ILT
47i[345]86-ncr-*) gdb_host=ncr3000 ;;
48i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
49i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
50i[345]86-sequent-sysv*) gdb_host=ptx ;;
51i[345]86-*-aix*) gdb_host=i386aix ;;
52i[345]86-*-bsd*) gdb_host=i386bsd ;;
151d7f0a 53i[345]86-*-freebsd*) gdb_host=fbsd ;;
b40fa612 54i[345]86-*-netbsd*) gdb_host=nbsd ;;
7382b3b1
ILT
55i[345]86-*-go32*) gdb_host=go32 ;;
56i[345]86-*-linux*) gdb_host=linux ;;
57i[345]86-*-lynxos*) gdb_host=i386lynx ;;
58i[345]86-*-mach3*) gdb_host=i386m3 ;;
59i[345]86-*-mach*) gdb_host=i386mach ;;
60i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
61i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
62i[345]86-*-sco*) gdb_host=i386sco ;;
63i[345]86-*-solaris*) gdb_host=i386sol2 ;;
64i[345]86-*-sunos*) gdb_host=sun386 ;;
65i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
66i[345]86-*-sysv32*) gdb_host=i386v32 ;;
67i[345]86-*-sysv4*) gdb_host=i386v4 ;;
68i[345]86-*-unixware) gdb_host=i386v4 ;;
69i[345]86-*-sysv*) gdb_host=i386v ;;
70i[345]86-*-isc*) gdb_host=i386v32 ;;
71i[345]86-*-os9k) gdb_host=i386os9k ;;
19758e9e 72
358ca35e
JG
73m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
74m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
ef131e13 75m68030-sony-*) gdb_host=news1000 ;;
19758e9e 76
358ca35e
JG
77m68*-altos-*) gdb_host=altos ;;
78m68*-apollo*-sysv*) gdb_host=apollo68v ;;
79m68*-apollo*-bsd*) gdb_host=apollo68b ;;
80m68*-att-*) gdb_host=3b1 ;;
0a8f1742 81m68*-bull*-sysv*) gdb_host=dpx2 ;;
8f59e92b
FF
82m68*-hp-bsd*) gdb_host=hp300bsd ;;
83m68*-hp-hpux*) gdb_host=hp300hpux ;;
358ca35e 84m68*-isi-*) gdb_host=isi ;;
9bebe500 85m68*-*-lynxos*) gdb_host=m68klynx ;;
670a8e09 86m68*-*-sysv4*) gdb_host=m68kv4 ;;
c649a7c2 87m68*-motorola-*) gdb_host=delta68 ;;
358ca35e
JG
88m68*-sony-*) gdb_host=news ;;
89m68*-sun-sunos3*) gdb_host=sun3os3 ;;
90m68*-sun-sunos4*) gdb_host=sun3os4 ;;
91m68*-sun-*) gdb_host=sun3os4 ;;
19758e9e 92
670a8e09 93m88*-harris-cxux*) gdb_host=cxux ;;
304977ab
JK
94m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
95m88*-motorola-sysv*) gdb_host=delta88 ;;
6ec7e4d3 96m88*-*-mach3*) gdb_host=mach3 ;;
304977ab 97m88*-*-*) gdb_host=m88k ;;
19758e9e 98
6ec7e4d3 99mips-dec-mach3*) gdb_host=mach3 ;;
19758e9e
JG
100mips-dec-*) gdb_host=decstation ;;
101mips-little-*) gdb_host=littlemips ;;
3b891e0b 102mips-sgi-irix3*) gdb_host=irix3 ;;
81029114 103mips-sgi-irix4*) gdb_host=irix4 ;;
e03c0cc6 104mips-sgi-irix5*) gdb_host=irix5 ;;
b487ba2e 105mips-sony-*) gdb_host=news-mips ;;
6ec7e4d3 106mips-*-mach3*) gdb_host=mach3 ;;
2fe3b329 107mips-*-sysv4*) gdb_host=mipsv4 ;;
ee06f230 108mips-*-sysv*) gdb_host=riscos ;;
e8f8e093 109mips-*-riscos*) gdb_host=riscos ;;
19758e9e
JG
110
111none-*-*) gdb_host=none ;;
ef131e13 112
19758e9e
JG
113np1-*-*) gdb_host=np1 ;;
114
6ec7e4d3 115ns32k-*-mach3*) gdb_host=mach3 ;;
84f652b1 116ns32k-*-netbsd*) gdb_host=nbsd ;;
19758e9e 117ns32k-umax-*) gdb_host=umax ;;
3b891e0b 118ns32k-utek-sysv*) gdb_host=merlin ;;
19758e9e 119
19758e9e
JG
120pn-*-*) gdb_host=pn ;;
121
122pyramid-*-*) gdb_host=pyramid ;;
123
124romp-*-*) gdb_host=rtbsd ;;
125
d87d7b10 126rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
19758e9e
JG
127rs6000-*-*) gdb_host=rs6000 ;;
128
9bebe500 129sparc-*-lynxos*) gdb_host=sparclynx ;;
331d515a 130sparc-*-netbsd*) gdb_host=nbsd ;;
ef131e13 131sparc-*-solaris2*) gdb_host=sun4sol2 ;;
ebb3a1e5 132sparc-*-sunos4*) gdb_host=sun4os4 ;;
b52373a2 133sparc-*-*) gdb_host=sun4os4 ;;
19758e9e
JG
134
135tahoe-*-*) gdb_host=tahoe ;;
136
137vax-*-bsd*) gdb_host=vaxbsd ;;
6985bc54 138vax-*-ultrix2*) gdb_host=vaxult2 ;;
19758e9e 139vax-*-ultrix*) gdb_host=vaxult ;;
7da1e27d 140
d723ade7
SC
141w65-*-*) gdb_host=w65 ;;
142
6c815bbe
RP
143esac
144
8c7ae4a2 145
1a0edbc7 146if [ ! -f ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ]; then
6c815bbe 147 echo '***' "Gdb does not support host ${host}" 1>&2
912e0732
RP
148 exit 1
149fi
150
bdf3621b 151# We really shouldn't depend on there being a space after XM_FILE= ...
1a0edbc7 152hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
912e0732 153
0df06ca0 154# per-target:
912e0732 155
1a0edbc7
FF
156# Map target cpu into the config cpu subdirectory name.
157# The default is $target_cpu.
158
159case "${target_cpu}" in
160
cef4c2e7 161alpha) gdb_target_cpu=alpha ;;
1a0edbc7
FF
162c[12]) gdb_target_cpu=convex ;;
163hppa*) gdb_target_cpu=pa ;;
7382b3b1 164i[345]86) gdb_target_cpu=i386 ;;
1a0edbc7 165m68*) gdb_target_cpu=m68k ;;
6ec7e4d3 166m88*) gdb_target_cpu=m88k ;;
b60f6584 167mips*) gdb_target_cpu=mips ;;
1a0edbc7
FF
168np1) gdb_target_cpu=gould ;;
169pn) gdb_target_cpu=gould ;;
170pyramid) gdb_target_cpu=pyr ;;
2c30f258 171sparclite*) gdb_target_cpu=sparc
6ec7e4d3 172 configdirs="${configdirs} sparclite" ;;
0c101d49 173sparc*) gdb_target_cpu=sparc ;;
1a0edbc7
FF
174*) gdb_target_cpu=$target_cpu ;;
175
176esac
177
178# map target info into gdb names.
179
ef131e13
JG
180case "${target}" in
181
3b891e0b
JK
182a29k-*-aout*) gdb_target=a29k ;;
183a29k-*-coff*) gdb_target=a29k ;;
184a29k-*-elf*) gdb_target=a29k ;;
185a29k-*-ebmon*) gdb_target=a29k ;;
186a29k-*-kern*) gdb_target=a29k-kern ;;
187a29k-*-none*) gdb_target=a29k ;;
188a29k-*-sym1*) gdb_target=ultra3 ;;
189a29k-*-udi*) gdb_target=a29k-udi ;;
83d9bb14 190a29k-*-vxworks*) gdb_target=vx29k ;;
ef131e13 191
cef4c2e7 192alpha-*-osf*) gdb_target=alpha-osf1 ;;
2e6784a8 193alpha-*-netware*) gdb_target=alpha-nw
6ec7e4d3
SS
194 configdirs="${configdirs} nlm" ;;
195
c1ac88f9 196# start-sanitize-arc
83d9bb14 197arc-*-*) gdb_target=arc ;;
c1ac88f9
DE
198# end-sanitize-arc
199
ef131e13
JG
200arm-*-*) gdb_target=arm ;;
201
202c1-*-*) gdb_target=convex ;;
203c2-*-*) gdb_target=convex ;;
204
205h8300-*-*) gdb_target=h8300hms ;;
195e46ea 206h8500-*-*) gdb_target=h8500hms ;;
ef131e13 207
9faacb92
SC
208sh-*-*) gdb_target=sh ;;
209
03c4ce2f
MT
210# start-sanitize-r16
211r16-*-*) gdb_target=r16 ;;
212# end-sanitize-r16
213
8f59e92b 214hppa*-*-bsd*) gdb_target=hppabsd ;;
cc5702bd 215hppa*-*-pro*) gdb_target=hppapro ;;
8f59e92b 216hppa*-*-hpux*) gdb_target=hppahpux ;;
7079e766 217hppa*-*-hiux*) gdb_target=hppahpux ;;
6bfd168c 218hppa*-*-osf*) gdb_target=hppaosf ;;
ef131e13 219
7382b3b1
ILT
220i[345]86-sequent-bsd*) gdb_target=symmetry ;;
221i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
222i[345]86-sequent-sysv*) gdb_target=ptx ;;
223i[345]86-ncr-*) gdb_target=ncr3000 ;;
224i[345]86-*-aout*) gdb_target=i386aout ;;
225i[345]86-*-coff*) gdb_target=i386v ;;
226i[345]86-*-elf*) gdb_target=i386v ;;
227i[345]86-*-aix*) gdb_target=i386aix ;;
228i[345]86-*-bsd*) gdb_target=i386bsd ;;
151d7f0a 229i[345]86-*-freebsd*) gdb_target=fbsd ;;
b40fa612 230i[345]86-*-netbsd*) gdb_target=nbsd ;;
7382b3b1
ILT
231i[345]86-*-os9k) gdb_target=i386os9k ;;
232i[345]86-*-go32*) gdb_target=i386aout ;;
233i[345]86-*-lynxos*) gdb_target=i386lynx
6ec7e4d3 234 configdirs="${configdirs} gdbserver" ;;
7382b3b1
ILT
235i[345]86-*-solaris*) gdb_target=i386sol2 ;;
236i[345]86-*-sunos*) gdb_target=sun386 ;;
237i[345]86-*-sysv4*) gdb_target=i386v4 ;;
238i[345]86-*-sco*) gdb_target=i386v ;;
239i[345]86-*-sysv*) gdb_target=i386v ;;
240i[345]86-*-linux*) gdb_target=linux ;;
241i[345]86-*-isc*) gdb_target=i386v ;;
242i[345]86-*-mach3*) gdb_target=i386m3 ;;
243i[345]86-*-mach*) gdb_target=i386mach ;;
244i[345]86-*-netware*) gdb_target=i386nw
bdf218b3 245 configdirs="${configdirs} nlm" ;;
7382b3b1 246i[345]86-*-osf1mk*) gdb_target=i386mk ;;
ef131e13 247
3b891e0b
JK
248i960-*-bout*) gdb_target=vxworks960 ;;
249i960-*-coff*) gdb_target=nindy960 ;;
250i960-*-elf*) gdb_target=nindy960 ;;
ebb3a1e5 251
3b891e0b
JK
252i960-*-nindy*) gdb_target=nindy960 ;;
253i960-*-vxworks*) gdb_target=vxworks960 ;;
ef131e13 254
ebb3a1e5
JG
255m68000-*-sunos3*) gdb_target=sun2os3 ;;
256m68000-*-sunos4*) gdb_target=sun2os4 ;;
ef131e13 257
835fe6e6 258m68*-apollo*-bsd*) gdb_target=apollo68b ;;
6ec7e4d3 259m68*-bull-sysv*) gdb_target=dpx2 ;;
6ec7e4d3
SS
260m68*-hp-bsd*) gdb_target=hp300bsd ;;
261m68*-hp-hpux*) gdb_target=hp300hpux ;;
670a8e09
SS
262m68*-altos-*) gdb_target=altos ;;
263m68*-att-*) gdb_target=3b1 ;;
264m68*-cisco*-*) gdb_target=cisco ;;
265m68*-ericsson-*) gdb_target=es1800 ;;
358ca35e 266m68*-isi-*) gdb_target=isi ;;
c649a7c2 267m68*-motorola-*) gdb_target=delta68 ;;
358ca35e
JG
268m68*-netx-*) gdb_target=vxworks68 ;;
269m68*-sony-*) gdb_target=news ;;
270m68*-tandem-*) gdb_target=st2000 ;;
c1128340
RS
271m68*-rom68k-*) gdb_target=monitor ;;
272m68*-*bug-*) gdb_target=monitor ;;
273m68*-monitor-*) gdb_target=monitor ;;
0ffba029
RS
274m68*-*-aout*) gdb_target=monitor ;;
275m68*-*-coff*) gdb_target=monitor ;;
276m68*-*-elf*) gdb_target=monitor ;;
9bebe500 277m68*-*-lynxos*) gdb_target=m68klynx
6ec7e4d3 278 configdirs="${configdirs} gdbserver" ;;
3b891e0b 279m68*-*-os68k*) gdb_target=os68k ;;
358ca35e
JG
280m68*-*-sunos3*) gdb_target=sun3os3 ;;
281m68*-*-sunos4*) gdb_target=sun3os4 ;;
670a8e09 282m68*-*-sysv4*) gdb_target=m68kv4 ;;
358ca35e 283m68*-*-vxworks*) gdb_target=vxworks68 ;;
93584146 284m68*-*-est*) gdb_target=est ;;
ef131e13 285
670a8e09 286m88*-harris-cxux*) gdb_target=cxux ;;
f9440640 287m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
6ec7e4d3 288m88*-*-mach3*) gdb_target=mach3 ;;
304977ab
JK
289m88*-motorola-*) gdb_target=delta88 ;;
290m88*-*-*) gdb_target=m88k ;;
ef131e13 291
70126bf9 292mips64*-big-*) gdb_target=bigmips64 ;;
b60f6584 293mips*-big-*) gdb_target=bigmips ;;
6ec7e4d3 294mips*-dec-mach3*) gdb_target=mach3 ;;
b60f6584 295mips*-dec-*) gdb_target=decstation ;;
70126bf9
KH
296mips64*el-*-ecoff*) gdb_target=idtl64 ;;
297mips64*-idt-ecoff*) gdb_target=idt64 ;;
298mips64*el-*-elf*) gdb_target=idtl64 ;;
299mips64*-*-elf*) gdb_target=idt64 ;;
b60f6584 300mips*el-*-ecoff*) gdb_target=idtl ;;
2e1b3b03 301mips*-*-ecoff*) gdb_target=idt ;;
b60f6584
ILT
302mips*el-*-elf*) gdb_target=idtl ;;
303mips*-*-elf*) gdb_target=idt ;;
304mips*-little-*) gdb_target=littlemips ;;
305mips*-sgi-irix5*) gdb_target=irix5 ;;
306mips*-sgi-*) gdb_target=irix3 ;;
307mips*-sony-*) gdb_target=bigmips ;;
6ec7e4d3 308mips*-*-mach3*) gdb_target=mach3 ;;
2fe3b329 309mips*-*-sysv4*) gdb_target=mipsv4 ;;
b60f6584
ILT
310mips*-*-sysv*) gdb_target=bigmips ;;
311mips*-*-riscos*) gdb_target=bigmips ;;
ef131e13
JG
312
313none-*-*) gdb_target=none ;;
314
315np1-*-*) gdb_target=np1 ;;
316
6ec7e4d3 317ns32k-*-mach3*) gdb_target=mach3 ;;
84f652b1 318ns32k-*-netbsd*) gdb_target=nbsd ;;
3b891e0b 319ns32k-utek-sysv*) gdb_target=merlin ;;
ef131e13
JG
320ns32k-utek-*) gdb_target=umax ;;
321
322pn-*-*) gdb_target=pn ;;
b7da2494
SG
323powerpc-*-netware*) gdb_target=ppc-nw
324 configdirs="${configdirs} nlm" ;;
ef131e13 325
97544048
MM
326powerpc-*-eabi*) gdb_target=ppc-eabi
327 configdirs="${configdirs}" ;;
328
ef131e13
JG
329pyramid-*-*) gdb_target=pyramid ;;
330
d87d7b10 331rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
ef131e13
JG
332rs6000-*-*) gdb_target=rs6000 ;;
333
3b891e0b
JK
334sparc-*-aout*) gdb_target=sparc-em ;;
335sparc-*-coff*) gdb_target=sparc-em ;;
336sparc-*-elf*) gdb_target=sparc-em ;;
9bebe500 337sparc-*-lynxos*) gdb_target=sparclynx
6ec7e4d3 338 configdirs="${configdirs} gdbserver" ;;
331d515a 339sparc-*-netbsd*) gdb_target=nbsd ;;
ef131e13 340sparc-*-solaris2*) gdb_target=sun4sol2 ;;
ebb3a1e5 341sparc-*-sunos4*) gdb_target=sun4os4 ;;
54d44c8c 342sparc-*-vxworks*) gdb_target=vxsparc ;;
b52373a2 343sparc-*-*) gdb_target=sun4os4 ;;
0c101d49 344sparclite*-*-*) gdb_target=sparclite ;;
6ec7e4d3 345sparc64-*-*) gdb_target=sp64 ;;
ef131e13
JG
346
347tahoe-*-*) gdb_target=tahoe ;;
6ec7e4d3 348
ef131e13 349vax-*-*) gdb_target=vax ;;
6c815bbe 350
d723ade7
SC
351w65-*-*) gdb_target=w65 ;;
352
3b891e0b
JK
353z8k-*-sim*) gdb_target=z8ksim ;;
354z8k-*-coff*) gdb_target=z8ksim ;;
6ec7e4d3 355
6c815bbe
RP
356esac
357
1a0edbc7 358if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
6c815bbe 359 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
360 exit 1
361fi
362
363if [ -z "${removing}" ] ; then
1a0edbc7 364 cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
912e0732
RP
365 print substr($0,6)}'
366fi
367
bdf3621b 368# We really shouldn't depend on there being a space after TM_FILE= ...
1a0edbc7 369targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
912e0732 370
79f68f0f
DZ
371
372# these really aren't orthogonal true/false values of the same condition,
373# but shells are slow enough that I like to reuse the test conditions
374# whenever possible
375#
d40309c7 376if [ "${target}" = "${host}" ] ; then
1a0edbc7 377 nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
79f68f0f
DZ
378else
379 # GDBserver is only useful in a "native" enviroment
380 configdirs=`echo $configdirs | sed 's/gdbserver//'`
d40309c7
JG
381fi
382
1a0edbc7
FF
383host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh
384target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
912e0732 385
d40309c7 386# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6573c898 387# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
d40309c7
JG
388# corresponding links. But we have to remove the xm.h files and tm.h
389# files anyway, e.g. when switching from "configure host" to
390# "configure none".
391
bdf3621b
JG
392files=
393links=
dc0c3f64 394rm -f xm.h
bdf3621b 395if [ "${hostfile}" != "" ]; then
b40fa612 396 files="${files} config/${gdb_host_cpu}/${hostfile}"
bdf3621b
JG
397 links="${links} xm.h"
398fi
dc0c3f64 399rm -f tm.h
bdf3621b 400if [ "${targetfile}" != "" ]; then
b40fa612 401 files="${files} config/${gdb_target_cpu}/${targetfile}"
bdf3621b
JG
402 links="${links} tm.h"
403fi
1a0edbc7 404rm -f nm.h
d40309c7 405if [ "${nativefile}" != "" ]; then
b40fa612 406 files="${files} config/${gdb_host_cpu}/${nativefile}"
dfc82617 407 links="${links} nm.h"
c9c23412 408else
6573c898
SS
409 # A cross-only configuration.
410 files="${files} config/nm-empty.h"
dfc82617 411 links="${links} nm.h"
d40309c7 412fi
bdf3621b 413
d3d75ec9 414# start-sanitize-gdbtk
754e5da2 415# Make it possible to use the GUI without doing a full install
4b078dc3 416if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
754e5da2
SG
417 files="${files} gdbtk.tcl"
418 links="${links} gdbtk.tcl"
419fi
d3d75ec9 420# end-sanitize-gdbtk
754e5da2 421
bdf3621b 422# post-target:
912e0732 423
bdf3621b
JG
424case ${srcdir} in
425 .)
426 ;;
427 *)
e8f8e093 428 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
bdf3621b
JG
429 echo "source ${srcdir}/.gdbinit" >> .gdbinit
430esac
431
c1ab5dba 432if [ "${nativefile}" = "" ] ; then
41617f8b 433 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
d40309c7
JG
434 < Makefile > Makefile.tem
435 mv -f Makefile.tem Makefile
436fi
94d4b713 437
d3d75ec9 438# start-sanitize-gdbtk
754e5da2
SG
439if [ "${enable_gdbtk}" = "yes" ] ; then
440 sed -e '/# End of host and/i\
441\
5b21fb68 442ENABLE_GDBTK = 1\
754e5da2 443ENABLE_DEPFILES = gdbtk.o\
cd2df226 444ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm
754e5da2
SG
445' < Makefile > Makefile.tem
446 mv -f Makefile.tem Makefile
447fi
d3d75ec9 448# end-sanitize-gdbtk
754e5da2 449
94d4b713
JK
450sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
451/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
452/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
453mv -f Makefile.tmp Makefile
This page took 0.201337 seconds and 4 git commands to generate.