This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] minor toplevel configure.in simplification
- From: Nathanael Nerode <neroden at doctormoo dot dyndns dot org>
- To: gcc-patches at gcc dot gnu dot org, dj at redhat dot com, gdb-patches at sources dot redhat dot com,binutils at sources dot redhat dot com
- Date: Thu, 11 Jul 2002 15:33:10 -0400
- Subject: [patch] minor toplevel configure.in simplification
Remove two redundant tests.
The first is redundant because everything in 'skipdirs' is removed from
'target_configdirs', and newlib never appears in target_configdirs more
than once.
The second is redundant because whenever with_gnu_ld=no, use_gnu_ld=no.
I want to do more cleanup on the stuff related to deciding what to do with
newlib, but I have to figure out what the correct behavior of '--without-newlib'
on 'always use newlib' targets is. I'm thinking it should mean 'use installed
newlib, not the one in the tree', but I'd love it if someone else could
confirm that that's reasonable behavior.
2002-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Remove two redundant tests.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.172
diff -u -r1.172 configure.in
--- configure.in 11 Jul 2002 18:56:51 -0000 1.172
+++ configure.in 11 Jul 2002 19:28:26 -0000
@@ -1419,10 +1419,7 @@
fi
FLAGS_FOR_TARGET=
-case " $skipdirs " in
-*" target-newlib "*) ;;
-*)
- case " $target_configdirs " in
+case " $target_configdirs " in
*" newlib "*)
case " $targargs " in
*" --with-newlib "*)
@@ -1470,8 +1467,6 @@
;;
esac
;;
- esac
- ;;
esac
# On Canadian crosses, we'll be searching the right directories for
@@ -1483,7 +1478,7 @@
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
fi
-if test "x${use_gnu_ld}" = x && test "x${with_gnu_ld}" != xno &&
+if test "x${use_gnu_ld}" = x &&
echo " ${configdirs} " | grep " ld " > /dev/null ; then
# Arrange for us to find uninstalled linker scripts.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'