From: David D. Zuhn Date: Mon, 20 Jul 1992 00:56:37 +0000 (+0000) Subject: rearranged tests to remove subdirs from configdirs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43557c0aec2f97f3a7f9658332de7bf90b4017e0;p=binutils-gdb.git rearranged tests to remove subdirs from configdirs --- diff --git a/configure.in b/configure.in index f6d6eb964e9..4734e1a0e36 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} #