aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-05-19 00:16:46 +0000
committerK. Richard Pixley <rich@cygnus>1991-05-19 00:16:46 +0000
commit912e0732bef948b2be1e8b57a9ebda9ada7b70c9 (patch)
treedfc0c8ac27647bae0a6a62f87995d35b28507d81 /gdb/configure.in
parent7cb9aa509c340ea95e6a843036fde5ef04b4ee28 (diff)
downloadgdb-912e0732bef948b2be1e8b57a9ebda9ada7b70c9.zip
gdb-912e0732bef948b2be1e8b57a9ebda9ada7b70c9.tar.gz
gdb-912e0732bef948b2be1e8b57a9ebda9ada7b70c9.tar.bz2
Configure for gdb.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in48
1 files changed, 48 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 277eb3c..6cc5fba 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -1,3 +1,51 @@
+srcname="GDB"
+srctrigger=main.c
+
+if [ -z "${template}" ] ; then
+ make -f Makefile.dist Makefile.in
+fi
+
# per-host:
+if [ ! -f xconfig/${host} ]; then
+ echo "No such host ${host}"
+ exit 1
+fi
+
+targetfile=`awk '
+ $1 == "XM_FILE=" { print $2 }' <xconfig/$host`
+if [ "${targetfile}" = "/" ] ; then
+ targetfile=/dev/null
+fi
+
# per-target:
+
+if [ ! -f tconfig/${target} ]; then
+ echo "No such target ${target}"
+ exit 1
+fi
+
+if [ -z "${removing}" ] ; then
+ cat xconfig/${host} tconfig/${target} | awk '$1 == "#msg" {
+ print substr($0,6)}'
+fi
+
+hostfile=`awk '
+ $1 == "TM_FILE=" { print $2 }' <tconfig/$target`
+if [ "${hostfile}" = "/" ] ; then
+ hostfile=/dev/null
+fi
+
+if [ ! -d readline ]; then
+ mkdir readline
+ # This could be a symlink, but getting the name right (because
+ # srcdir can be either relative or absolute) would be hairy.
+ cp ${srcdir}/readline/Makefile readline
+fi
+
+host_makefile_frag=xconfig/${host}
+target_makefile_frag=tconfig/${target}
+
+files="${hostfile} ${targetfile}"
+links="xm.h tm.h"
+