]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/configure.in
2000-03-02 H.J. Lu (hjl@gnu.org)
[thirdparty/binutils-gdb.git] / gas / configure.in
index 361ae649473b847eb76f9da01b687b0c412ff212..d3e6137b3dbc1c2bfe04321e21a538378f55cd88 100644 (file)
@@ -59,8 +59,13 @@ te_file=generic
 install_tooldir=install-exec-tooldir
 
 canon_targets=""
+all_targets=no
 if test -n "$enable_targets" ; then
   for t in `echo $enable_targets | sed 's/,/ /g'`; do
+    if test $t = "all"; then
+      all_targets=yes
+      continue
+    fi
     result=`$ac_config_sub $t 2>/dev/null`
     if test -n "$result" ; then
       canon_targets="$canon_targets $result"
@@ -519,6 +524,25 @@ changequote([,])dnl
 
 done
 
+# Turn on all targets if possible
+if test ${all_targets} = "yes"; then
+  case ${target_cpu_type} in
+  i386)
+    case ${obj_format} in
+    aout)
+      emulations="$emulations i386coff i386elf"
+      ;;
+    coff)
+      emulations="$emulations i386aout i386elf"
+    ;;
+    elf)
+      emulations="$emulations i386aout i386coff"
+      ;;
+    esac
+  ;;
+  esac
+fi
+
 # Assign floating point type.  Most processors with FP support
 # IEEE FP.  On those that don't support FP at all, usually IEEE
 # is emulated.