Update to Draft D1.2.1: add membar mask names and ASI names.
[deliverable/binutils-gdb.git] / gdb / configure.in
CommitLineData
b12529c1 1configdirs="doc testsuite"
912e0732
RP
2srcname="GDB"
3srctrigger=main.c
bc028766 4
0df06ca0
RP
5# per-host:
6
6c815bbe
RP
7# map host info into gdb names.
8
19758e9e 9case "${host}" in
6c815bbe 10
19758e9e
JG
11a29k-*-*) gdb_host=ultra3 ;;
12
13arm-*-*) gdb_host=arm ;;
14
15c[12]-*-*) gdb_host=convex ;;
16
19758e9e 17hppa*-hp-bsd) gdb_host=hppabsd ;;
ef131e13 18hppa*-hp-hpux) gdb_host=hppahpux ;;
19758e9e 19
19758e9e 20i[34]86-ncr-*) gdb_host=ncr3000 ;;
ef131e13 21i[34]86-sequent-*) gdb_host=symmetry ;;
19758e9e 22
6d685882 23i[34]86-*-bsd*) gdb_host=i386bsd ;;
19758e9e 24i[34]86-*-go32) gdb_host=go32 ;;
ef131e13
JG
25i[34]86-*-linux) gdb_host=linux ;;
26i[34]86-*-mach) gdb_host=i386mach ;;
117f631e 27i[34]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
cf57ff2a 28i[34]86-*-sco*) gdb_host=i386sco ;;
5c820c19 29i[34]86-*-solaris*) gdb_host=i386sol2 ;;
b1aa08e2 30i[34]86-*-sunos*) gdb_host=sun386 ;;
ef131e13 31i[34]86-*-sysv32) gdb_host=i386v32 ;;
19758e9e
JG
32i[34]86-*-sysv4*) gdb_host=i386v4 ;;
33i[34]86-*-sysv*) gdb_host=i386v ;;
19758e9e
JG
34
35i860-*-*) gdb_host=stratus ;;
36
358ca35e
JG
37m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
38m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
ef131e13 39m68030-sony-*) gdb_host=news1000 ;;
19758e9e 40
358ca35e
JG
41m68*-altos-*) gdb_host=altos ;;
42m68*-apollo*-sysv*) gdb_host=apollo68v ;;
43m68*-apollo*-bsd*) gdb_host=apollo68b ;;
44m68*-att-*) gdb_host=3b1 ;;
45m68*-cbm-sysv4*) gdb_host=amix ;;
46m68*-hp-bsd) gdb_host=hp300bsd ;;
47m68*-hp-hpux) gdb_host=hp300hpux ;;
48m68*-isi-*) gdb_host=isi ;;
49m68*-sony-*) gdb_host=news ;;
50m68*-sun-sunos3*) gdb_host=sun3os3 ;;
51m68*-sun-sunos4*) gdb_host=sun3os4 ;;
52m68*-sun-*) gdb_host=sun3os4 ;;
19758e9e 53
19758e9e
JG
54m88k-motorola-*) gdb_host=delta88 ;;
55m88k-*-*) gdb_host=m88k ;;
56
19758e9e
JG
57mips-dec-*) gdb_host=decstation ;;
58mips-little-*) gdb_host=littlemips ;;
59mips-sgi-irix3) gdb_host=irix3 ;;
81029114 60mips-sgi-irix4*) gdb_host=irix4 ;;
ef131e13 61mips-sony-*) gdb_host=bigmips ;;
19758e9e
JG
62
63none-*-*) gdb_host=none ;;
ef131e13 64
19758e9e
JG
65np1-*-*) gdb_host=np1 ;;
66
67ns32k-umax-*) gdb_host=umax ;;
68ns32k-utek-sysv) gdb_host=merlin ;;
69
19758e9e
JG
70pn-*-*) gdb_host=pn ;;
71
72pyramid-*-*) gdb_host=pyramid ;;
73
74romp-*-*) gdb_host=rtbsd ;;
75
76rs6000-*-*) gdb_host=rs6000 ;;
77
ef131e13 78sparc-*-solaris2*) gdb_host=sun4sol2 ;;
ebb3a1e5 79sparc-*-sunos4*) gdb_host=sun4os4 ;;
b52373a2 80sparc-*-*) gdb_host=sun4os4 ;;
19758e9e
JG
81
82tahoe-*-*) gdb_host=tahoe ;;
83
84vax-*-bsd*) gdb_host=vaxbsd ;;
6985bc54 85vax-*-ultrix2*) gdb_host=vaxult2 ;;
19758e9e 86vax-*-ultrix*) gdb_host=vaxult ;;
7da1e27d 87
6c815bbe
RP
88esac
89
8c7ae4a2 90
fe7ca711 91if [ ! -f ${srcdir}/config/${gdb_host}.mh ]; then
6c815bbe 92 echo '***' "Gdb does not support host ${host}" 1>&2
912e0732
RP
93 exit 1
94fi
95
bdf3621b 96# We really shouldn't depend on there being a space after XM_FILE= ...
fe7ca711 97hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
912e0732 98
0df06ca0 99# per-target:
912e0732 100
ef131e13
JG
101case "${target}" in
102
103a29k-*-aout) gdb_target=a29k ;;
104a29k-*-coff) gdb_target=a29k ;;
ebb3a1e5 105a29k-*-elf) gdb_target=a29k ;;
ef131e13
JG
106a29k-*-ebmon) gdb_target=a29k ;;
107a29k-*-kern) gdb_target=a29k-kern ;;
108a29k-*-none) gdb_target=a29k ;;
109a29k-*-sym1) gdb_target=ultra3 ;;
110a29k-*-udi) gdb_target=a29k-udi ;;
111
112arm-*-*) gdb_target=arm ;;
113
114c1-*-*) gdb_target=convex ;;
115c2-*-*) gdb_target=convex ;;
116
117h8300-*-*) gdb_target=h8300hms ;;
195e46ea 118h8500-*-*) gdb_target=h8500hms ;;
ef131e13
JG
119
120hppa*-*-bsd) gdb_target=hppabsd ;;
121hppa*-*-hpux) gdb_target=hppahpux ;;
122
123i[34]86-sequent-*) gdb_target=symmetry ;;
124i[34]86-ncr-*) gdb_target=ncr3000 ;;
ebb3a1e5
JG
125
126i[34]86-*-aout) gdb_target=i386aout ;;
127i[34]86-*-coff) gdb_target=i386v ;;
128i[34]86-*-elf) gdb_target=i386v ;;
129
6d685882 130i[34]86-*-bsd*) gdb_target=i386bsd ;;
e633652f 131i[34]86-*-go32) gdb_target=i386aout ;;
5c820c19 132i[34]86-*-solaris*) gdb_target=i386sol2 ;;
ef131e13
JG
133i[34]86-*-sunos*) gdb_target=sun386 ;;
134i[34]86-*-sysv4*) gdb_target=i386v4 ;;
cf57ff2a 135i[34]86-*-sco*) gdb_target=i386v ;;
ef131e13 136i[34]86-*-sysv*) gdb_target=i386v ;;
ef131e13
JG
137i[34]86-*-linux) gdb_target=linux ;;
138
139i860-*-*) gdb_target=stratus ;;
140
141i960-*-bout) gdb_target=vxworks960 ;;
142i960-*-coff) gdb_target=nindy960 ;;
ebb3a1e5
JG
143i960-*-elf) gdb_target=nindy960 ;;
144
ef131e13
JG
145i960-*-nindy) gdb_target=nindy960 ;;
146i960-*-vxworks) gdb_target=vxworks960 ;;
147
01deac12
JG
148m68000-*-aout) gdb_target=m68k-nofp ;;
149m68000-*-coff) gdb_target=m68k-nofp ;;
150m68000-*-elf) gdb_target=m68k-nofp ;;
ebb3a1e5
JG
151m68000-*-sunos3*) gdb_target=sun2os3 ;;
152m68000-*-sunos4*) gdb_target=sun2os4 ;;
ef131e13 153
358ca35e
JG
154m68*-cbm-sysv4*) gdb_target=amix ;;
155m68*-hp-bsd) gdb_target=hp300bsd ;;
156m68*-hp-hpux) gdb_target=hp300hpux ;;
157
158m68*-altos-*) gdb_target=altos ;;
159m68*-att-*) gdb_target=3b1 ;;
160m68*-ericsson-*) gdb_target=es1800 ;;
161m68*-isi-*) gdb_target=isi ;;
162m68*-netx-*) gdb_target=vxworks68 ;;
163m68*-sony-*) gdb_target=news ;;
164m68*-tandem-*) gdb_target=st2000 ;;
165
84a05e52
JG
166m68*-*-aout) gdb_target=m68k-fp ;;
167m68*-*-coff) gdb_target=m68k-fp ;;
168m68*-*-elf) gdb_target=m68k-fp ;;
358ca35e
JG
169m68*-*-os68k) gdb_target=os68k ;;
170m68*-*-sunos3*) gdb_target=sun3os3 ;;
171m68*-*-sunos4*) gdb_target=sun3os4 ;;
172m68*-*-vxworks*) gdb_target=vxworks68 ;;
ef131e13
JG
173
174m88k-motorola-*) gdb_target=delta88 ;;
175m88k-*-*) gdb_target=m88k ;;
176
177mips-big-*) gdb_target=bigmips ;;
178mips-dec-*) gdb_target=decstation ;;
c2a0f1cb 179mips-idt-ecoff) gdb_target=idt ;;
ef131e13
JG
180mips-little-*) gdb_target=littlemips ;;
181mips-sgi-*) gdb_target=irix3 ;;
182mips-sony-*) gdb_target=bigmips ;;
183
184none-*-*) gdb_target=none ;;
185
186np1-*-*) gdb_target=np1 ;;
187
188ns32k-utek-sysv) gdb_target=merlin ;;
189ns32k-utek-*) gdb_target=umax ;;
190
191pn-*-*) gdb_target=pn ;;
192
193pyramid-*-*) gdb_target=pyramid ;;
194
195rs6000-*-*) gdb_target=rs6000 ;;
196
84a05e52
JG
197sparc-*-aout) gdb_target=sparc-em ;;
198sparc-*-coff) gdb_target=sparc-em ;;
199sparc-*-elf) gdb_target=sparc-em ;;
ef131e13 200sparc-*-solaris2*) gdb_target=sun4sol2 ;;
ebb3a1e5 201sparc-*-sunos4*) gdb_target=sun4os4 ;;
84a05e52 202sparc-*-vxworks*) gdb_target=sparc-em ;;
b52373a2 203sparc-*-*) gdb_target=sun4os4 ;;
a05e2e57 204sparclite*-*-*) gdb_target=sun4os4 ;;
ef131e13
JG
205
206tahoe-*-*) gdb_target=tahoe ;;
207vax-*-*) gdb_target=vax ;;
6c815bbe 208
1242152e 209z8k-unknown-sim) gdb_target=z8ksim ;;
6c815bbe
RP
210esac
211
fe7ca711 212if [ ! -f ${srcdir}/config/${gdb_target}.mt ]; then
6c815bbe 213 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
214 exit 1
215fi
216
217if [ -z "${removing}" ] ; then
fe7ca711 218 cat ${srcdir}/config/${gdb_host}.mh ${srcdir}/config/${gdb_target}.mt | awk '$1 == "#msg" {
912e0732
RP
219 print substr($0,6)}'
220fi
221
bdf3621b 222# We really shouldn't depend on there being a space after TM_FILE= ...
fe7ca711 223targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
912e0732 224
d40309c7
JG
225if [ "${target}" = "${host}" ] ; then
226 nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
227fi
228
fe7ca711
SC
229host_makefile_frag=config/${gdb_host}.mh
230target_makefile_frag=config/${gdb_target}.mt
912e0732 231
d40309c7
JG
232# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
233# (NAT_FILE) is not set in the ?config/* file, we don't make the
234# corresponding links. But we have to remove the xm.h files and tm.h
235# files anyway, e.g. when switching from "configure host" to
236# "configure none".
237
bdf3621b
JG
238files=
239links=
dc0c3f64 240rm -f xm.h
bdf3621b
JG
241if [ "${hostfile}" != "" ]; then
242 files="${files} ${hostfile}"
243 links="${links} xm.h"
244fi
dc0c3f64 245rm -f tm.h
bdf3621b
JG
246if [ "${targetfile}" != "" ]; then
247 files="${files} ${targetfile}"
248 links="${links} tm.h"
249fi
d40309c7
JG
250rm -f nat.h
251if [ "${nativefile}" != "" ]; then
252 files="${files} ${nativefile}"
dfc82617 253 links="${links} nm.h"
c9c23412
RP
254# temporary scaffolding until all hosts have the host/target/native
255# split in place.
256else
dfc82617
RP
257 files="${files} nm-trash.h"
258 links="${links} nm.h"
d40309c7 259fi
bdf3621b
JG
260
261# post-target:
912e0732 262
bdf3621b
JG
263case ${srcdir} in
264 .)
265 ;;
266 *)
267 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
268 echo "source ${srcdir}/.gdbinit" >> .gdbinit
269esac
270
c1ab5dba 271if [ "${nativefile}" = "" ] ; then
41617f8b 272 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
d40309c7
JG
273 < Makefile > Makefile.tem
274 mv -f Makefile.tem Makefile
275fi
276
dc0c3f64 277cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
This page took 0.089375 seconds and 4 git commands to generate.