skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
fi
+# Default to using --with-stabs for certain targets.
+if [ x${with_stabs} = x ]; then
+ case "${target}" in
+ mips*-*-* | alpha*-*-osf* | i[345]86*-*-sysv4* | i[345]86*-*-unixware*)
+ with_stabs=yes;
+ withoptions="${withoptions} --with-stabs"
+ ;;
+ esac
+fi
+
# Handle ${copy_dirs}
set fnord ${copy_dirs}
shift
noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff"
;;
i[345]86-*-win32)
- noconfigdirs="tk tcl expect dejagnu cvs autoconf texinfo bison send-pr gprof rcs"
+ noconfigdirs="patch diff flex make tk tcl expect dejagnu cvs autoconf texinfo bison send-pr gprof rcs"
;;
esac
alpha-dec-osf*)
# ld works, but does not support shared libraries. emacs doesn't
# work. newlib is not 64 bit ready. I'm not sure about fileutils or grep.
- noconfigdirs="$noconfigdirs ld emacs fileutils grep target-newlib"
+ # gas doesn't generate exception information.
+ noconfigdirs="$noconfigdirs gas ld emacs fileutils grep target-newlib"
;;
alpha*-*-*)
# newlib is not 64 bit ready
;;
i[345]86-*-win32)
- noconfigdirs="$noconfigdirs tk"
# Can't build gdb for win32 if not native.
+ # make/glob's configure uses some AC_TRY_RUN type tests
+ target_configdirs="$target_configdirs target-winsup"
if [ x${is_cross_compiler} = xyes ]; then
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb tk make"
fi
# always build newlib.
skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
- # and winsup
- configdirs="$configdirs target-winsup"
;;
i[345]86-*-pe)
noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-libio target-librx"
noconfigdirs="$noconfigdirs gprof cvs"
;;
powerpc*-*-winnt* | powerpc*-*-pe*)
- noconfigdirs="$noconfigdirs ld gdb"
+ noconfigdirs="$noconfigdirs gdb"
;;
rs6000-*-lynxos*)
# The CVS server code doesn't work on the RS/6000
fi
;;
v810-*-*)
- noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libg++ target-libstdc++ opcodes"
+ noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libio target-libg++ target-libstdc++ opcodes"
;;
vax-*-vms)
noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes"
# Record target_configdirs and the configure arguments in Makefile.
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
targargs=`echo "${arguments}" | \
- sed -e 's/--*norecursion//' \
- -e 's/--*cache[a-z-]*=[^ ]*//' \
- -e 's/--*cache[a-z-]*[ ][ ]*[^ ]*//'`
+ sed -e 's/--norecursion//' \
+ -e 's/--cache[a-z-]*=[^ ]*//' \
+ -e 's/--ho[a-z-]*=[^ ]*//' \
+ -e 's/--ta[a-z-]*=[^ ]*//'`
+
+# Passing a --with-cross-host argument lets the target libraries know
+# whether they are being built with a cross-compiler or being built
+# native. However, it would be better to use other mechanisms to make the
+# sorts of decisions they want to make on this basis. Please consider
+# this option to be deprecated. FIXME.
+if [ x${is_cross_compiler} = xyes ]; then
+ targargs="--with-cross-host=${host_alias} ${targargs}"
+fi
+
+targargs="--host=${target_alias} ${targargs}"
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
-e "s%^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \