This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
toplevel configure.in: simplify 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, 21 Sep 2002 13:58:49 -0400
- Subject: toplevel configure.in: simplify tests
Simplify a number of tests, now that all subdirectories are autoconfiscated.
2002-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Simplify tests.
--- configure.in 2002-09-21 13:56:03.000000000 -0400
+++ configure.in.new 2002-09-21 13:55:47.000000000 -0400
@@ -743,8 +743,7 @@
dirname=`echo $dir | sed -e s/target-//g`
if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
- if test -r $srcdir/$dirname/configure \
- || test -r $srcdir/$dirname/configure.in ; then
+ if test -r $srcdir/$dirname/configure ; then
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
true
else
@@ -754,8 +753,7 @@
fi
if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
- if test -r $srcdir/$dirname/configure \
- || test -r $srcdir/$dirname/configure.in ; then
+ if test -r $srcdir/$dirname/configure ; then
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
true
else
@@ -771,7 +769,7 @@
others=
for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
if test "$i" != "libiberty" ; then
- if test -r $srcdir/$i/configure || test -r $srcdir/$i/configure.in ; then
+ if test -r $srcdir/$i/configure ; then
others=yes;
break;
fi