]> gcc.gnu.org Git - gcc.git/blobdiff - configure.in
Redesign GCC_FUNC_PRINTF_PTR so that it doesn't define HOST_PTR_PRINTF directly.
[gcc.git] / configure.in
index 68d0d9dd58e67081b059e8c120b5dcc15fdbf661..f61d3c8ad03410dfd0d6b2ad88738e30e4848000 100644 (file)
@@ -55,7 +55,7 @@ host_tools="texinfo byacc flex bison binutils ld gas gcc sim gdb make patch prms
 # these libraries are built for the target environment, and are built after
 # the host libraries and the host tools (which may be a cross compiler)
 #
-target_libs="target-libiberty target-libgloss target-newlib target-libio target-librx target-libstdc++ target-libg++"
+target_libs="target-libiberty target-libgloss target-newlib target-libio target-librx target-libstdc++ target-libg++ target-libf2c"
 
 
 # these tools are built using the target libs, and are intended to run only
@@ -278,7 +278,9 @@ if [ x${shared} = xyes ]; then
       host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
       ;;
     *)
-      host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+      if test -f ${srcdir}/config/mh-${host_cpu}pic; then
+        host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+      fi
       ;;
   esac
 fi
@@ -304,14 +306,25 @@ case "${target}" in
   powerpc-*-netware*)
     target_makefile_frag="${target_makefile_frag} config/mt-netware"
     ;;
-  alpha*-*-linux-gnulibc1)
+  *-*-linux-gnu)
     target_makefile_frag="${target_makefile_frag} config/mt-linux"
     ;;
-  powerpc*-*-linux-gnulibc1)
-    target_makefile_frag="${target_makefile_frag} config/mt-linux"
+esac
+
+# If --enable-target-optspace always use -Os instead of -O2 to build
+# the target libraries, similarly if it is not specified, use -Os
+# on selected platforms.
+case "${enable_target_optspace}:${target}" in
+  yes:*)
+    target_makefile_frag="${target_makefile_frag} config/mt-ospace"
     ;;
-  *-*-linux-gnu)
-    target_makefile_frag="${target_makefile_frag} config/mt-linux"
+  :m32r-*)
+    target_makefile_frag="${target_makefile_frag} config/mt-ospace"
+    ;;
+  no:* | :*)
+    ;;
+  *)
+    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
     ;;
 esac
 
@@ -350,7 +363,7 @@ if [ x"${host}" = x"${target}" ] ; then
        if [ x${enable_multilib} = xno ]; then
          target_subdir=.
        else
-         target_subdir=libraries
+         target_subdir=${target_alias}
        fi
 else
        # similarly, don't build the targets in the 'native only' 
@@ -544,6 +557,9 @@ case "${target}" in
   arm-*-riscix*)
     noconfigdirs="$noconfigdirs ld target-libgloss"
     ;;
+  thumb-*-coff)
+    noconfigdirs="$noconfigdirs target-libgloss"
+    ;;
   d10v-*-*)
     noconfigdirs="$noconfigdirs target-librx target-libg++ target-libstdc++ target-libio target-libgloss"
     ;;
@@ -898,7 +914,9 @@ if [ x${shared} = xyes ]; then
       target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
       ;;
     *)
-      target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+      if test -f ${srcdir}/config/mt-${target_cpu}pic; then
+        target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+      fi
       ;;
   esac
 fi
This page took 0.033144 seconds and 5 git commands to generate.