From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20598 invoked by alias); 31 May 2003 21:58:30 -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 20580 invoked from network); 31 May 2003 21:58:30 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 31 May 2003 21:58:30 -0000 Received: from livre.redhat.lsd.ic.unicamp.br (to-dhcp6.toronto.redhat.com [172.16.14.106]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h4VLwOK04748; Sat, 31 May 2003 17:58:24 -0400 Received: from livre.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by livre.redhat.lsd.ic.unicamp.br (8.12.8/8.12.8) with ESMTP id h4VLwOnj016037; Sat, 31 May 2003 18:58:24 -0300 Received: (from aoliva@localhost) by livre.redhat.lsd.ic.unicamp.br (8.12.8/8.12.8/Submit) id h4VLwN6K016033; Sat, 31 May 2003 18:58:23 -0300 To: Nathanael Nerode Cc: gcc-patches@gcc.gnu.org, binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [toplevel patch] Macroize build_subdir & target_subdir, newest version References: <20030317144503.GA16592@doctormoo> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sat, 31 May 2003 21:58:00 -0000 In-Reply-To: <20030317144503.GA16592@doctormoo> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00597.txt.bz2 On Mar 17, 2003, Nathanael Nerode wrote: > * config/acx.m4: Introduce _GCC_TOPLEV_NONCANONICAL_BUILD, > _GCC_TOPLEV_NONCANOICAL_HOST, _GCC_TOPLEV_NONCANONICAL_TARGET, > GCC_TOPLEV_SUBDIRS. > * configure.in: Use GCC_TOPLEV_SUBDIRS. This is ok, if still appropriate. Sorry that it took so long for me to get to it. We still have problems in deciding what options to pass down to sub-configures, because autoconf 2.5x's behavior in deciding whether we're cross compiling or not depends on the actual command-line flags, not only on the implied defaults. Still, your patch is a step in the right direction. As for solving the problem of not passing --build, --host or --target to sub-configures when it's implied, to avoid crossification :-), one idea that was floated in the GCC Summit (was it Zack? I seem to recall two people independently proposing it, but I don't remember who else did it, sorry) was to set up two different _CONFIGARGS variable per build, host and target, and grep the autoconf version number in the configure script to tell which version to use. This sounds like the only sane (even if ugly) way to avoid having to convert the entire tree (gcc, src and what not) to the new autoconf at the same time. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer