* expression.h (OP_LABELED): New operator, for Chill
[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
83d9bb14 196arc-*-*) gdb_target=arc ;;
ef131e13
JG
197arm-*-*) gdb_target=arm ;;
198
199c1-*-*) gdb_target=convex ;;
200c2-*-*) gdb_target=convex ;;
201
202h8300-*-*) gdb_target=h8300hms ;;
195e46ea 203h8500-*-*) gdb_target=h8500hms ;;
ef131e13 204
9faacb92
SC
205sh-*-*) gdb_target=sh ;;
206
03c4ce2f
MT
207# start-sanitize-r16
208r16-*-*) gdb_target=r16 ;;
209# end-sanitize-r16
210
8f59e92b 211hppa*-*-bsd*) gdb_target=hppabsd ;;
cc5702bd 212hppa*-*-pro*) gdb_target=hppapro ;;
8f59e92b 213hppa*-*-hpux*) gdb_target=hppahpux ;;
7079e766 214hppa*-*-hiux*) gdb_target=hppahpux ;;
6bfd168c 215hppa*-*-osf*) gdb_target=hppaosf ;;
ef131e13 216
7382b3b1
ILT
217i[345]86-sequent-bsd*) gdb_target=symmetry ;;
218i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
219i[345]86-sequent-sysv*) gdb_target=ptx ;;
220i[345]86-ncr-*) gdb_target=ncr3000 ;;
221i[345]86-*-aout*) gdb_target=i386aout ;;
222i[345]86-*-coff*) gdb_target=i386v ;;
223i[345]86-*-elf*) gdb_target=i386v ;;
224i[345]86-*-aix*) gdb_target=i386aix ;;
225i[345]86-*-bsd*) gdb_target=i386bsd ;;
151d7f0a 226i[345]86-*-freebsd*) gdb_target=fbsd ;;
b40fa612 227i[345]86-*-netbsd*) gdb_target=nbsd ;;
7382b3b1
ILT
228i[345]86-*-os9k) gdb_target=i386os9k ;;
229i[345]86-*-go32*) gdb_target=i386aout ;;
230i[345]86-*-lynxos*) gdb_target=i386lynx
6ec7e4d3 231 configdirs="${configdirs} gdbserver" ;;
7382b3b1
ILT
232i[345]86-*-solaris*) gdb_target=i386sol2 ;;
233i[345]86-*-sunos*) gdb_target=sun386 ;;
234i[345]86-*-sysv4*) gdb_target=i386v4 ;;
235i[345]86-*-sco*) gdb_target=i386v ;;
236i[345]86-*-sysv*) gdb_target=i386v ;;
237i[345]86-*-linux*) gdb_target=linux ;;
238i[345]86-*-isc*) gdb_target=i386v ;;
239i[345]86-*-mach3*) gdb_target=i386m3 ;;
240i[345]86-*-mach*) gdb_target=i386mach ;;
241i[345]86-*-netware*) gdb_target=i386nw
bdf218b3 242 configdirs="${configdirs} nlm" ;;
7382b3b1 243i[345]86-*-osf1mk*) gdb_target=i386mk ;;
ef131e13 244
3b891e0b
JK
245i960-*-bout*) gdb_target=vxworks960 ;;
246i960-*-coff*) gdb_target=nindy960 ;;
247i960-*-elf*) gdb_target=nindy960 ;;
ebb3a1e5 248
3b891e0b
JK
249i960-*-nindy*) gdb_target=nindy960 ;;
250i960-*-vxworks*) gdb_target=vxworks960 ;;
ef131e13 251
ebb3a1e5
JG
252m68000-*-sunos3*) gdb_target=sun2os3 ;;
253m68000-*-sunos4*) gdb_target=sun2os4 ;;
ef131e13 254
835fe6e6 255m68*-apollo*-bsd*) gdb_target=apollo68b ;;
6ec7e4d3 256m68*-bull-sysv*) gdb_target=dpx2 ;;
6ec7e4d3
SS
257m68*-hp-bsd*) gdb_target=hp300bsd ;;
258m68*-hp-hpux*) gdb_target=hp300hpux ;;
670a8e09
SS
259m68*-altos-*) gdb_target=altos ;;
260m68*-att-*) gdb_target=3b1 ;;
261m68*-cisco*-*) gdb_target=cisco ;;
262m68*-ericsson-*) gdb_target=es1800 ;;
358ca35e 263m68*-isi-*) gdb_target=isi ;;
c649a7c2 264m68*-motorola-*) gdb_target=delta68 ;;
358ca35e
JG
265m68*-netx-*) gdb_target=vxworks68 ;;
266m68*-sony-*) gdb_target=news ;;
267m68*-tandem-*) gdb_target=st2000 ;;
c1128340
RS
268m68*-rom68k-*) gdb_target=monitor ;;
269m68*-*bug-*) gdb_target=monitor ;;
270m68*-monitor-*) gdb_target=monitor ;;
0ffba029
RS
271m68*-*-aout*) gdb_target=monitor ;;
272m68*-*-coff*) gdb_target=monitor ;;
273m68*-*-elf*) gdb_target=monitor ;;
9bebe500 274m68*-*-lynxos*) gdb_target=m68klynx
6ec7e4d3 275 configdirs="${configdirs} gdbserver" ;;
3b891e0b 276m68*-*-os68k*) gdb_target=os68k ;;
358ca35e
JG
277m68*-*-sunos3*) gdb_target=sun3os3 ;;
278m68*-*-sunos4*) gdb_target=sun3os4 ;;
670a8e09 279m68*-*-sysv4*) gdb_target=m68kv4 ;;
358ca35e 280m68*-*-vxworks*) gdb_target=vxworks68 ;;
93584146 281m68*-*-est*) gdb_target=est ;;
ef131e13 282
670a8e09 283m88*-harris-cxux*) gdb_target=cxux ;;
f9440640 284m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
6ec7e4d3 285m88*-*-mach3*) gdb_target=mach3 ;;
304977ab
JK
286m88*-motorola-*) gdb_target=delta88 ;;
287m88*-*-*) gdb_target=m88k ;;
ef131e13 288
70126bf9 289mips64*-big-*) gdb_target=bigmips64 ;;
b60f6584 290mips*-big-*) gdb_target=bigmips ;;
6ec7e4d3 291mips*-dec-mach3*) gdb_target=mach3 ;;
b60f6584 292mips*-dec-*) gdb_target=decstation ;;
70126bf9
KH
293mips64*el-*-ecoff*) gdb_target=idtl64 ;;
294mips64*-idt-ecoff*) gdb_target=idt64 ;;
295mips64*el-*-elf*) gdb_target=idtl64 ;;
296mips64*-*-elf*) gdb_target=idt64 ;;
b60f6584 297mips*el-*-ecoff*) gdb_target=idtl ;;
2e1b3b03 298mips*-*-ecoff*) gdb_target=idt ;;
b60f6584
ILT
299mips*el-*-elf*) gdb_target=idtl ;;
300mips*-*-elf*) gdb_target=idt ;;
301mips*-little-*) gdb_target=littlemips ;;
302mips*-sgi-irix5*) gdb_target=irix5 ;;
303mips*-sgi-*) gdb_target=irix3 ;;
304mips*-sony-*) gdb_target=bigmips ;;
6ec7e4d3 305mips*-*-mach3*) gdb_target=mach3 ;;
2fe3b329 306mips*-*-sysv4*) gdb_target=mipsv4 ;;
b60f6584
ILT
307mips*-*-sysv*) gdb_target=bigmips ;;
308mips*-*-riscos*) gdb_target=bigmips ;;
ef131e13
JG
309
310none-*-*) gdb_target=none ;;
311
312np1-*-*) gdb_target=np1 ;;
313
6ec7e4d3 314ns32k-*-mach3*) gdb_target=mach3 ;;
84f652b1 315ns32k-*-netbsd*) gdb_target=nbsd ;;
3b891e0b 316ns32k-utek-sysv*) gdb_target=merlin ;;
ef131e13
JG
317ns32k-utek-*) gdb_target=umax ;;
318
319pn-*-*) gdb_target=pn ;;
b7da2494
SG
320powerpc-*-netware*) gdb_target=ppc-nw
321 configdirs="${configdirs} nlm" ;;
ef131e13
JG
322
323pyramid-*-*) gdb_target=pyramid ;;
324
d87d7b10 325rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
ef131e13
JG
326rs6000-*-*) gdb_target=rs6000 ;;
327
3b891e0b
JK
328sparc-*-aout*) gdb_target=sparc-em ;;
329sparc-*-coff*) gdb_target=sparc-em ;;
330sparc-*-elf*) gdb_target=sparc-em ;;
9bebe500 331sparc-*-lynxos*) gdb_target=sparclynx
6ec7e4d3 332 configdirs="${configdirs} gdbserver" ;;
331d515a 333sparc-*-netbsd*) gdb_target=nbsd ;;
ef131e13 334sparc-*-solaris2*) gdb_target=sun4sol2 ;;
ebb3a1e5 335sparc-*-sunos4*) gdb_target=sun4os4 ;;
54d44c8c 336sparc-*-vxworks*) gdb_target=vxsparc ;;
b52373a2 337sparc-*-*) gdb_target=sun4os4 ;;
0c101d49 338sparclite*-*-*) gdb_target=sparclite ;;
6ec7e4d3 339sparc64-*-*) gdb_target=sp64 ;;
ef131e13
JG
340
341tahoe-*-*) gdb_target=tahoe ;;
6ec7e4d3 342
ef131e13 343vax-*-*) gdb_target=vax ;;
6c815bbe 344
d723ade7
SC
345w65-*-*) gdb_target=w65 ;;
346
3b891e0b
JK
347z8k-*-sim*) gdb_target=z8ksim ;;
348z8k-*-coff*) gdb_target=z8ksim ;;
6ec7e4d3 349
6c815bbe
RP
350esac
351
1a0edbc7 352if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
6c815bbe 353 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
354 exit 1
355fi
356
357if [ -z "${removing}" ] ; then
1a0edbc7 358 cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
912e0732
RP
359 print substr($0,6)}'
360fi
361
bdf3621b 362# We really shouldn't depend on there being a space after TM_FILE= ...
1a0edbc7 363targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
912e0732 364
79f68f0f
DZ
365
366# these really aren't orthogonal true/false values of the same condition,
367# but shells are slow enough that I like to reuse the test conditions
368# whenever possible
369#
d40309c7 370if [ "${target}" = "${host}" ] ; then
1a0edbc7 371 nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
79f68f0f
DZ
372else
373 # GDBserver is only useful in a "native" enviroment
374 configdirs=`echo $configdirs | sed 's/gdbserver//'`
d40309c7
JG
375fi
376
1a0edbc7
FF
377host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh
378target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
912e0732 379
d40309c7 380# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6573c898 381# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
d40309c7
JG
382# corresponding links. But we have to remove the xm.h files and tm.h
383# files anyway, e.g. when switching from "configure host" to
384# "configure none".
385
bdf3621b
JG
386files=
387links=
dc0c3f64 388rm -f xm.h
bdf3621b 389if [ "${hostfile}" != "" ]; then
b40fa612 390 files="${files} config/${gdb_host_cpu}/${hostfile}"
bdf3621b
JG
391 links="${links} xm.h"
392fi
dc0c3f64 393rm -f tm.h
bdf3621b 394if [ "${targetfile}" != "" ]; then
b40fa612 395 files="${files} config/${gdb_target_cpu}/${targetfile}"
bdf3621b
JG
396 links="${links} tm.h"
397fi
1a0edbc7 398rm -f nm.h
d40309c7 399if [ "${nativefile}" != "" ]; then
b40fa612 400 files="${files} config/${gdb_host_cpu}/${nativefile}"
dfc82617 401 links="${links} nm.h"
c9c23412 402else
6573c898
SS
403 # A cross-only configuration.
404 files="${files} config/nm-empty.h"
dfc82617 405 links="${links} nm.h"
d40309c7 406fi
bdf3621b 407
d3d75ec9 408# start-sanitize-gdbtk
754e5da2 409# Make it possible to use the GUI without doing a full install
4b078dc3 410if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
754e5da2
SG
411 files="${files} gdbtk.tcl"
412 links="${links} gdbtk.tcl"
413fi
d3d75ec9 414# end-sanitize-gdbtk
754e5da2 415
bdf3621b 416# post-target:
912e0732 417
bdf3621b
JG
418case ${srcdir} in
419 .)
420 ;;
421 *)
e8f8e093 422 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
bdf3621b
JG
423 echo "source ${srcdir}/.gdbinit" >> .gdbinit
424esac
425
c1ab5dba 426if [ "${nativefile}" = "" ] ; then
41617f8b 427 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
d40309c7
JG
428 < Makefile > Makefile.tem
429 mv -f Makefile.tem Makefile
430fi
94d4b713 431
d3d75ec9 432# start-sanitize-gdbtk
754e5da2
SG
433if [ "${enable_gdbtk}" = "yes" ] ; then
434 sed -e '/# End of host and/i\
435\
5b21fb68 436ENABLE_GDBTK = 1\
754e5da2 437ENABLE_DEPFILES = gdbtk.o\
cd2df226 438ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm
754e5da2
SG
439' < Makefile > Makefile.tem
440 mv -f Makefile.tem Makefile
441fi
d3d75ec9 442# end-sanitize-gdbtk
754e5da2 443
94d4b713
JK
444sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
445/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
446/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
447mv -f Makefile.tmp Makefile
This page took 0.187842 seconds and 4 git commands to generate.