Configure for gdb.
[binutils-gdb.git] / gdb / configure.in
1 srcname="GDB"
2 srctrigger=main.c
3
4 if [ -z "${template}" ] ; then
5 make -f Makefile.dist Makefile.in
6 fi
7
8 # per-host:
9
10 if [ ! -f xconfig/${host} ]; then
11 echo "No such host ${host}"
12 exit 1
13 fi
14
15 targetfile=`awk '
16 $1 == "XM_FILE=" { print $2 }' <xconfig/$host`
17 if [ "${targetfile}" = "/" ] ; then
18 targetfile=/dev/null
19 fi
20
21 # per-target:
22
23 if [ ! -f tconfig/${target} ]; then
24 echo "No such target ${target}"
25 exit 1
26 fi
27
28 if [ -z "${removing}" ] ; then
29 cat xconfig/${host} tconfig/${target} | awk '$1 == "#msg" {
30 print substr($0,6)}'
31 fi
32
33 hostfile=`awk '
34 $1 == "TM_FILE=" { print $2 }' <tconfig/$target`
35 if [ "${hostfile}" = "/" ] ; then
36 hostfile=/dev/null
37 fi
38
39 if [ ! -d readline ]; then
40 mkdir readline
41 # This could be a symlink, but getting the name right (because
42 # srcdir can be either relative or absolute) would be hairy.
43 cp ${srcdir}/readline/Makefile readline
44 fi
45
46 host_makefile_frag=xconfig/${host}
47 target_makefile_frag=tconfig/${target}
48
49 files="${hostfile} ${targetfile}"
50 links="xm.h tm.h"
51