From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2385 invoked by alias); 20 Sep 2002 20:19:59 -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 2369 invoked from network); 20 Sep 2002 20:19:57 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 20 Sep 2002 20:19:57 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17sUBl-0005ok-00; Fri, 20 Sep 2002 16:15:45 -0400 Date: Fri, 20 Sep 2002 13:19: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: small rearrangement Message-ID: <20020920201545.GA22355@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/msg00534.txt.bz2 I'm back. This moves one of the definitions of CC a bit lower; when I autoconfiscate, it's much easier if all the logic related to CC is as close as possible, and also if all the fragment collection code is uninterrupted by other things. Tested, no behavior changes. 2002-09-20 Nathanael Nerode * configure.in: Rearrange. Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.177 diff -u -3 -r1.177 configure.in --- configure.in 19 Aug 2002 20:38:15 -0000 1.177 +++ configure.in 20 Sep 2002 20:10:30 -0000 @@ -1127,25 +1127,6 @@ host_makefile_frag=mh-frag fi -# If we aren't going to be using gcc, see if we can extract a definition -# of CC from the fragment. -# Actually, use the 'pre-extracted' version above. -if test -z "${CC}" && test "${build}" = "${host}" ; then - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" - found= - for dir in $PATH; do - test -z "$dir" && dir=. - if test -f $dir/gcc; then - found=yes - break - fi - done - IFS="$save_ifs" - if test -z "${found}" && test -n "${tentative_cc}" ; then - CC=$tentative_cc - fi -fi - case "${target}" in v810*) target_makefile_frag="config/mt-v810" @@ -1281,6 +1262,25 @@ withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" ;; esac + +# If we aren't going to be using gcc, see if we can extract a definition +# of CC from the fragment. +# Actually, use the 'pre-extracted' version above. +if test -z "${CC}" && test "${build}" = "${host}" ; then + IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" + found= + for dir in $PATH; do + test -z "$dir" && dir=. + if test -f $dir/gcc; then + found=yes + break + fi + done + IFS="$save_ifs" + if test -z "${found}" && test -n "${tentative_cc}" ; then + CC=$tentative_cc + fi +fi # post-target: