This is the mail archive of the 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 ( 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  <>

	* (--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/ ./
--- /home/kcook34/gcc-orig/	2004-11-08 11:19:32.636646700 -0500
+++ ./	2004-11-08 14:23:48.607349900 -0500
@@ -317,7 +317,7 @@ esac
-[  --enable-libada        Builds libada directory],
+[  --enable-libada         Builds libada directory],
 if test "${ENABLE_LIBADA}" != "yes" ; then
@@ -340,6 +340,24 @@ no)
+  [  --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"
-    noconfigdirs="$noconfigdirs ${libgcj} gdb libglossi libgfortran"
+    noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
     noconfigdirs="$noconfigdirs ${libgcj}"

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