[ opcodes/ChangeLog ]
[deliverable/binutils-gdb.git] / opcodes / configure.in
index 587422b6d98ace68b99736d1268118ab1a928a35..ee15b8a4718c9f5a0255e6f51255ddbbc13acf62 100644 (file)
@@ -212,11 +212,15 @@ if test x${all_targets} = xfalse ; then
          # We can't decide what we want just from the CPU family.
          # We want SH5 support unless a specific version of sh is
          # specified, as in sh3-elf, sh3b-linux-gnu, etc.
-         case " $target $canon_targets " in
-            *" all "* | *" sh64-"* | *" sh-"* | *" shl-"*)
+         # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
+         for t in $target $canon_targets; do
+           case $t in
+             all |  sh64-* | sh-*-*elf* | shl-*-*elf* | sh-*-linux* | shl-*-linux*)
                                ta="$ta sh64-dis.lo sh64-opc.lo"
-                               archdefs="$archdefs -DINCLUDE_SHMEDIA";;
-         esac;
+                               archdefs="$archdefs -DINCLUDE_SHMEDIA"
+                               break;;
+           esac;
+         done
                                ta="$ta sh-dis.lo" ;;
        bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
        bfd_tahoe_arch)         ;;
This page took 0.042728 seconds and 4 git commands to generate.