aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1992-07-20 00:56:37 +0000
committerDavid D. Zuhn <zoo@cygnus>1992-07-20 00:56:37 +0000
commit43557c0aec2f97f3a7f9658332de7bf90b4017e0 (patch)
treef776ebcdb4947099e37a0c9385bd694ba6f576d2 /configure.in
parentea2b679c90fc1129b8ffcd514668ab4653a0c088 (diff)
downloadgdb-43557c0aec2f97f3a7f9658332de7bf90b4017e0.zip
gdb-43557c0aec2f97f3a7f9658332de7bf90b4017e0.tar.gz
gdb-43557c0aec2f97f3a7f9658332de7bf90b4017e0.tar.bz2
rearranged tests to remove subdirs from configdirs
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in35
1 files changed, 29 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index f6d6eb9..4734e1a 100644
--- a/configure.in
+++ b/configure.in
@@ -47,9 +47,12 @@ bfd_target=
case "${target_vendor}" in
amd)
case "${target_os}" in
- ebmon) bfd_target="ebmon29k" ;;
- udi) bfd_target="udi29k" ;;
- *) echo "bad target_os for amd" ;;
+ ebmon) bfd_target="ebmon29k"
+ ;;
+ udi) bfd_target="udi29k"
+ ;;
+ *) echo "bad target_os for amd" 1>&2
+ ;;
esac
;;
*)
@@ -57,12 +60,32 @@ amd)
;;
esac
-case "${target_cpu}" in
- mips) configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+#
+# remove various programs from consideration, based on the target
+# this usually means that a port of the program doesn't exist yet.
+
+if [ x"${host}" = x"${target}" ] ; then
+ configdirs=`echo ${configdirs} | sed -e 's/newlib//;s/libgcc//'`
+else
+ true
+fi
+
+case "${target}" in
+mips-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+ ;;
+rs6000-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//'`
+ ;;
+hppa*-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/emacs//'`
+ ;;
+*-*-solaris2)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//'`
;;
- rs6000)configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//'`
esac
+
target_makefile_frag=config/mt-${bfd_target}
#