public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: Peter Barada <pbarada@mail.wm.sps.mot.com>
Cc: lucier@math.purdue.edu, gcc@gcc.gnu.org
Subject: Re: 3.0.4 builds for solaris 2.7 and 2.8
Date: Mon, 25 Feb 2002 08:54:00 -0000	[thread overview]
Message-ID: <orn0xxwmra.fsf@free.redhat.lsd.ic.unicamp.br> (raw)
In-Reply-To: Peter Barada's message of "Mon, 25 Feb 2002 10:33:40 -0500"

On Feb 25, 2002, Peter Barada <pbarada@mail.wm.sps.mot.com> wrote:

> Have the top-level configuration script build a file that contains
> a list of the configuration option passed in, one per line, and the
> sub-packages configure script removes from the list those options that
> it understands.  At the end of all the sub-package configurations, if
> there is anything left in the list then its either unknown or mispelled.
> Of course the top-level configuration script would any that it
> undrestands.

There are options that apply to more than one sub-package, so this
won't work.  It could be made to work with some refinement, but still,
it would require every single sub-configure to be modified.

One could use the cache file to store pending options: initialized by
whoever creates the cache file, namely the top-level configure, and
such that each sub-package could take options it understood out of it,
but would still use the options it actually gets for the purpose of
telling which options are active.

At the end, the top-level configure looks at the cache file and checks
whether any option remained.  If so, it warns about it.

Yeah, that sounds pretty reasonable.  And it doesn't even require
changes in autoconf.  But it does require a configure script to know
whether it's the top-level one (easy to do, assuming we use
config.cache to tell), and it won't work if config.cache is /dev/null
or some other pre-exiting file.  Still, worth looking into.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

  reply	other threads:[~2002-02-25 16:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 20:05 lucier
2002-02-22 20:31 ` Alexandre Oliva
2002-02-22 20:43   ` Brad Lucier
2002-02-22 20:47     ` Alexandre Oliva
2002-02-22 21:01       ` Brad Lucier
2002-02-22 21:49         ` Alexandre Oliva
2002-02-24  2:26   ` Fergus Henderson
2002-02-24  4:14     ` Alexandre Oliva
2002-02-24  6:21       ` Fergus Henderson
2002-02-24 19:23       ` Phil Edwards
2002-02-24 11:42   ` Mark Mitchell
2002-02-24 13:28     ` Alexandre Oliva
2002-02-25  7:39   ` Peter Barada
2002-02-25  8:54     ` Alexandre Oliva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-22 15:42 George.R.Goffe
2002-02-22 16:28 ` Alexandre Oliva
2002-02-22 17:26 ` Janis Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=orn0xxwmra.fsf@free.redhat.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=lucier@math.purdue.edu \
    --cc=pbarada@mail.wm.sps.mot.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).