This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[toplevel, gfortran] Support --disable-libgfortran option


HP's patch (http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html) to disable libgfortran on mmix and some other complaints about libgfortran on cross targets led to me to write this patch which correctly adds in a --disable-libgfortran option.

It also moves the logic for disabling libgfortran on mmix into this option which means that a mmix user could --enable-libgfortran, if they wished. (It defaults to not using it on that target)

Tested under i686-pc-cygwin with:

./configure (yes)
./configure --enable-libgfortran (yes)
./configure --disable-libgfortran (no)
./configure --target=mmix-unknown-elf (no)
./configure --enable-libgfortran --target=mmix-unknown-elf (yes)
./configure --disable-libgfortran --target=mmix-unknown-elf (no)

./configure --enable-languages=c (no)

OK to install?


2004-11-08  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in (--enable-libgfortran): New documented option.  Default
	on except for target mmix-*-*.
	(mmix-*-*): Remove hardcoded noconfig of libgfortran.
	(--enable-libada): Fix whitespace.
	* configure: Regenerate.

diff -pud /home/kcook34/gcc-orig/configure.in ./configure.in
--- /home/kcook34/gcc-orig/configure.in	2004-11-08 11:19:32.636646700 -0500
+++ ./configure.in	2004-11-08 14:23:48.607349900 -0500
@@ -317,7 +317,7 @@ esac
 
 
 AC_ARG_ENABLE(libada,
-[  --enable-libada        Builds libada directory],
+[  --enable-libada         Builds libada directory],
 ENABLE_LIBADA=$enableval,
 ENABLE_LIBADA=yes)
 if test "${ENABLE_LIBADA}" != "yes" ; then
@@ -340,6 +340,24 @@ no)
   ;;
 esac
 
+AC_ARG_ENABLE(libgfortran,
+  [  --disable-libgfortran   Do not build libfortran directory],
+  [case $enable_libgfortran in
+    yes)
+       ;;
+    no)
+       noconfigdirs="$noconfigdirs target-libgfortran"
+       ;;
+   esac],
+   [case "${target}" in
+     mmix-*-*)
+       enable_libgfortran=no
+       noconfigdirs="$noconfigdirs target-libgfortran"
+       ;;
+     *)
+       enable_libgfortran=yes
+       ;;
+    esac])
 
 # Allow --disable-libmudflap to exclude target-libmudflap
 case $enable_libmudflap in
@@ -655,7 +673,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs target-libstdc++-v3"
     ;;
   mmix-*-*)
-    noconfigdirs="$noconfigdirs ${libgcj} gdb libglossi libgfortran"
+    noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
     ;;
   mn10200-*-*)
     noconfigdirs="$noconfigdirs ${libgcj}"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]