From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8046 invoked by alias); 21 Sep 2002 18:03:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7917 invoked from network); 21 Sep 2002 18:03:03 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 21 Sep 2002 18:03:03 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17soWo-00088K-00; Sat, 21 Sep 2002 13:58:50 -0400 Date: Sat, 21 Sep 2002 11:03:00 -0000 To: gcc-patches@gcc.gnu.org Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: toplevel configure.in: simplify tests Message-ID: <20020921175849.GA31265@doctormoo.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2002-09/txt/msg00551.txt.bz2 Simplify a number of tests, now that all subdirectories are autoconfiscated. 2002-09-21 Nathanael Nerode * 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