aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1992-08-03 22:44:29 +0000
committerDavid D. Zuhn <zoo@cygnus>1992-08-03 22:44:29 +0000
commitdfa891fc11bb91c692efa5232dd4790479a784ae (patch)
tree3c77f25e72c327f229c1c4e17d5a03bae581d461 /configure.in
parentb40f9c73f7fbe83e5278ad87b087d0ff1a4a11b1 (diff)
downloadgdb-dfa891fc11bb91c692efa5232dd4790479a784ae.zip
gdb-dfa891fc11bb91c692efa5232dd4790479a784ae.tar.gz
gdb-dfa891fc11bb91c692efa5232dd4790479a784ae.tar.bz2
clean up Makefile.in (install), configure.in (the parts that choose what not to build for a host or target)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in25
1 files changed, 19 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 166c31a..2d376ca 100644
--- a/configure.in
+++ b/configure.in
@@ -61,25 +61,38 @@ amd)
;;
esac
-#
-# remove various programs from consideration, based on the target
-# this usually means that a port of the program doesn't exist yet.
+# remove various programs from consideration, if this is a cross-compiler
+# (host != target) build, AND if the host is one that has a
+# "native" environment that we support
if [ x"${host}" = x"${target}" ] ; then
- configdirs=`echo ${configdirs} | sed -e 's/newlib//;s/libgcc//'`
+ configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
else
true
fi
+# remove various programs from consideration, based on the host or
+# target this usually means that a port of the program doesn't
+# exist yet.
+
+case "${host}" in
+hppa*-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+ ;;
+*-*-solaris2)
+ configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+ ;;
+esac
+
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//'`
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'`
;;
hppa*-*-*)
- configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/emacs//'`
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'`
;;
*-*-solaris2)
configdirs=`echo ${configdirs} | sed -e 's/gas//'`