* gdbtypes.c (check_stub_type): Removed; no longes needed.
[binutils-gdb.git] / configure.in
index 2a0d47012e34f332e0da542319bc4cb61d36fecd..59428fbf6162492d201fc6bede16107e61459c8e 100644 (file)
@@ -297,6 +297,16 @@ elif [ x${with_newlib} = xyes ]; then
   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
@@ -349,7 +359,7 @@ case "${host}" in
     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
 
@@ -364,7 +374,8 @@ case "${target}" in
   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
@@ -405,15 +416,14 @@ case "${target}" in
     ;;
 
   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"
@@ -445,7 +455,7 @@ case "${target}" in
     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
@@ -493,7 +503,7 @@ case "${target}" in
     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"
@@ -655,9 +665,21 @@ fi
 # 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}%" \