This commit was generated by cvs2svn to track changes on a CVS vendor
[binutils-gdb.git] / gdb / rdi-share / configure.in
1 srcname="RDI library"
2 srctrigger=ardi.c
3
4 # per-host:
5
6 . ${srcdir}/../configure.host
7
8 echo "rdi-share/configure.in: host is $host, target is $target"
9
10 if [ ! -f ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ]; then
11 echo '***' "GDB remote does not support host ${host}" 1>&2
12 exit 1
13 fi
14
15 # We really shouldn't depend on there being a space after XM_FILE= ...
16 hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh`
17
18 # per-target:
19
20 . ${srcdir}/../configure.tgt
21
22 echo "rdi-share/configure.in: host_cpu is $host_cpu, target_cpu is $target_cpu"
23
24 if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt ]; then
25 echo '***' "GDB remote does not support target ${target}" 1>&2
26 exit 1
27 fi
28
29 if [ -z "${removing}" ] ; then
30 cat ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
31 print substr($0,6)}'
32 fi
33
34 # We really shouldn't depend on there being a space after TM_FILE= ...
35 targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt`
36
37 if [ "${target}" = "${host}" ] ; then
38 nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh`
39 fi
40
41 host_makefile_frag=../config/${gdb_host_cpu}/${gdb_host}.mh
42 target_makefile_frag=../config/${gdb_target_cpu}/${gdb_target}.mt
43
44 # post-target: