Changes from Andrew
[deliverable/binutils-gdb.git] / configure.in
index b4b51c6124e44ee40ea44039e52a056e0f288a34..7892f7ff5b65b127715c72321184e5a7adeb9601 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,10 @@ 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"
+    ;;
+  ppc*-*-pe)
+     noconfigdirs="patch diff flex make tk tcl expect dejagnu cvs autoconf texinfo bison send-pr gprof rcs"
     ;;
 esac
 
@@ -358,13 +371,14 @@ case "${target}" in
   *-*-netware)
     noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-librx target-newlib target-libiberty"
     ;;
-  *-*-vxworks5.1)
+  *-*-vxworks*)
     noconfigdirs="$noconfigdirs target-newlib"
     ;;
   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
@@ -374,10 +388,8 @@ case "${target}" in
   arc-*-*)
     ;;
 # end-sanitize-arc
-# start-sanitize-psion
   arm-*-pe*)
     ;;
-# end-sanitize-psion
   arm-*-riscix*)
     noconfigdirs="$noconfigdirs ld"
     ;;
@@ -405,15 +417,12 @@ case "${target}" in
     ;;
 
   i[345]86-*-win32)
-    noconfigdirs="$noconfigdirs tk"
     # Can't build gdb for win32 if not native.
-    if [ x${is_cross_compiler} = xyes ]; then
-           noconfigdirs="$noconfigdirs gdb"
-    fi
+    # make/glob's configure uses some AC_TRY_RUN type tests
+    target_configdirs="$target_configdirs target-winsup"
+    noconfigdirs="$noconfigdirs gdb tcl tk make"
     # 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"
@@ -436,16 +445,15 @@ case "${target}" in
     # but that's okay since emacs doesn't work anyway
     noconfigdirs="$noconfigdirs emacs emacs19"
     ;;
-# start-sanitize-jaguar
-  jaguar-*-*)
-    ;;
-# end-sanitize-jaguar
   powerpc-*-aix*)
     # copied from rs6000-*-* entry
     noconfigdirs="$noconfigdirs gprof cvs"
     ;;
-  powerpc*-*-winnt* | powerpc*-*-pe*)
-    noconfigdirs="$noconfigdirs ld gdb"
+  powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
+    target_configdirs="$target_configdirs target-winsup"
+    noconfigdirs="$noconfigdirs gdb tcl tk make expect"
+    # always build newlib.
+    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
     ;;
   rs6000-*-lynxos*)
     # The CVS server code doesn't work on the RS/6000
@@ -493,7 +501,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"
@@ -502,9 +510,14 @@ case "${target}" in
     noconfigdirs="$noconfigdirs target-newlib"
     ;;
   *-*-lynxos*)
-     # Newlib makes problems for libg++ in crosses.
-     noconfigdirs="$noconfigdirs target-newlib"
-     ;;    
+    # Newlib makes problems for libg++ in crosses.
+    noconfigdirs="$noconfigdirs target-newlib"
+    ;; 
+  *-*-macos* | \
+  *-*-mpw*)
+    # Macs want a resource compiler.
+    configdirs="$configdirs grez"
+    ;;    
 esac
 
 # If we are building a Canadian Cross, discard tools that can not be built
@@ -650,9 +663,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}%" \
This page took 0.025041 seconds and 4 git commands to generate.