This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] remove redundant tests
- From: Nathanael Nerode <neroden at doctormoo dot dyndns dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com,dj at redhat dot com
- Date: Sat, 22 Jun 2002 10:53:47 -0400
- Subject: [patch] remove redundant tests
This removes some (now) redundant tests from toplevel configure.in.
2002-06-22 Nathanael Nerode <neroden@twcny.rr.com>
* configure.in: Remove some redundant tests.
Index: configure.in
===================================================================
RCS file: /cvsroot/gcc/gcc/configure.in,v
retrieving revision 1.162
diff -u -r1.162 configure.in
--- configure.in 21 Jun 2002 22:20:17 -0000 1.162
+++ configure.in 22 Jun 2002 14:52:31 -0000
@@ -1266,24 +1266,22 @@
# want to do that, then you should use the --without-gnu-as and
# --without-gnu-ld options for the configure script.
-if test x${use_gnu_as} = x ; then
- if test x${with_gnu_as} != xno && echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 && test -d ${srcdir}/gas ; then
- with_gnu_as=yes
- withoptions="$withoptions --with-gnu-as"
- fi
+if test x${use_gnu_as} = x &&
+ echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
+ with_gnu_as=yes
+ withoptions="$withoptions --with-gnu-as"
fi
-if test x${use_gnu_ld} = x ; then
- if test x${with_gnu_ld} != xno && echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 && test -d ${srcdir}/ld ; then
- with_gnu_ld=yes
- withoptions="$withoptions --with-gnu-ld"
- fi
+if test x${use_gnu_ld} = x &&
+ echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
+ with_gnu_ld=yes
+ withoptions="$withoptions --with-gnu-ld"
fi
# If using newlib, add --with-newlib to the withoptions so that gcc/configure
# can detect this case.
-if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
+if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
with_newlib=yes
withoptions="$withoptions --with-newlib"
fi
@@ -1517,8 +1515,7 @@
fi
if test "x${use_gnu_ld}" = x && test "x${with_gnu_ld}" != xno &&
- echo " ${configdirs} " | grep " ld " > /dev/null &&
- test -d ${srcdir}/ld; then
+ echo " ${configdirs} " | grep " ld " > /dev/null ; then
# Arrange for us to find uninstalled linker scripts.
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
fi