Explicit locations: introduce explicit locations
[deliverable/binutils-gdb.git] / ld / configure.ac
index 572440c8014e3edc620bde29879f8070e7e43469..62aed09aed9bae99b98626e846ce6e5d0e6a916a 100644 (file)
@@ -31,6 +31,7 @@ AM_MAINTAINER_MODE
 
 AC_PROG_CC
 AC_PROG_CXX
+AC_PROG_GREP
 AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_INSTALL
@@ -288,6 +289,9 @@ for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
 do
   if test "$targ_alias" = "all"; then
     all_targets=true
+    elf_list_options=TRUE
+    elf_shlib_list_options=TRUE
+    elf_plt_unwind_list_options=TRUE
   else
     # Canonicalize the secondary target names.
     result=`$ac_config_sub $targ_alias 2>/dev/null`
@@ -314,10 +318,23 @@ do
 
     for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
        case " $all_emuls " in
-       *" e${i}.o "*)
+       *" e${i}.o "*) ;;
+       *)
+         all_emuls="$all_emuls e${i}.o"
+         eval result=\$tdir_$i
+         test -z "$result" && result=$targ_alias
+         echo tdir_$i=$result >> tdirs
          case "${i}" in
          *elf*)
            elf_list_options=TRUE
+           ;;
+         *)
+           if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
+             elf_list_options=TRUE
+           fi
+           ;;
+         esac
+         if test "$elf_list_options" = "TRUE"; then
            . ${srcdir}/emulparams/${i}.sh
            if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
              elf_shlib_list_options=TRUE
@@ -325,14 +342,7 @@ do
            if test x${PLT_UNWIND} = xyes; then
              elf_plt_unwind_list_options=TRUE
            fi
-           ;;
-         esac
-         ;;
-       *)
-         all_emuls="$all_emuls e${i}.o"
-         eval result=\$tdir_$i
-         test -z "$result" && result=$targ_alias
-         echo tdir_$i=$result >> tdirs
+         fi
          ;;
        esac
     done
This page took 0.023473 seconds and 4 git commands to generate.