From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7741 invoked by alias); 28 Nov 2002 03:48:08 -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 7726 invoked from network); 28 Nov 2002 03:48:07 -0000 Received: from unknown (HELO mailout5-0.nyroc.rr.com) (24.92.226.122) by sources.redhat.com with SMTP; 28 Nov 2002 03:48:07 -0000 Received: from doctormoo (syr-24-24-16-193.twcny.rr.com [24.24.16.193]) by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gAS3m4F09124; Wed, 27 Nov 2002 22:48:04 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18HFeE-0001j5-00; Wed, 27 Nov 2002 22:47:30 -0500 Date: Wed, 27 Nov 2002 19:48:00 -0000 To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: (toplevel patch) introduce extra_host_args Message-ID: <20021128034729.GA6636@doctormoo> 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-11/txt/msg00699.txt.bz2 Diffed to apply after my outstanding patches. For gcc3.4b-i-b, will hit src when that branch lands, etc. Tested on i686-pc-linux-gnu. This hits a lot of points but doesn't do much, so I separated it out in advance of the larger patch to configure subdirectories in the Makefile. * configure.in: Introduce $extra_host_args for non-command-line options passed to subconfigures. --- configure.in.current 2002-11-27 22:36:37.000000000 -0500 +++ configure.in 2002-11-27 22:38:43.000000000 -0500 @@ -33,6 +33,7 @@ ############################################################################## +extra_host_args= # Define the trigger file to make sure configure will re-run whenever # the gcc version number changes. if [ "${with_gcc_version_trigger+set}" = set ]; then @@ -51,7 +52,7 @@ arguments="--with-gcc-version-trigger=$gcc_version_trigger $arguments" ;; esac - withoptions="--with-gcc-version-trigger=$gcc_version_trigger $withoptions" + extra_host_args="--with-gcc-version-trigger=$gcc_version_trigger $extra_host_args" fi fi @@ -1208,21 +1209,21 @@ 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" + extra_host_args="$extra_host_args --with-gnu-as" 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" + extra_host_args="$extra_host_args --with-gnu-ld" fi -# If using newlib, add --with-newlib to the withoptions so that gcc/configure +# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure # can detect this case. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then with_newlib=yes - withoptions="$withoptions --with-newlib" + extra_host_args="$extra_host_args --with-newlib" fi # We default to --with-shared on platforms where -fpic is meaningless. @@ -1249,13 +1250,13 @@ case "${target}" in mips*-*-irix6*o32) with_stabs=yes; - withoptions="${withoptions} --with-stabs" + extra_host_args="${extra_host_args} --with-stabs" ;; mips*-*-irix6*) ;; mips*-*-* | alpha*-*-osf*) with_stabs=yes; - withoptions="${withoptions} --with-stabs" + extra_host_args="${extra_host_args} --with-stabs" ;; esac fi @@ -1264,10 +1265,14 @@ # them automatically. case "${host}" in hppa*64*-*-hpux11*) - withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" + extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" ;; esac +# Now add the extra_host_args to the withoptions. This will go away when +# we start configuring from the Makefile. +withoptions="$extra_host_args $withoptions" + # 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.