rearranged tests to remove subdirs from configdirs

This commit is contained in:
David D. Zuhn 1992-07-20 00:56:37 +00:00
parent ea2b679c90
commit 43557c0aec

View File

@ -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}
#