[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (toplevel) introduce host subdir configuration in Makefile
From: |
Daniel Jacobowitz |
Subject: |
Re: (toplevel) introduce host subdir configuration in Makefile |
Date: |
Mon, 2 Dec 2002 13:23:38 -0500 |
User-agent: |
Mutt/1.5.1i |
On Mon, Dec 02, 2002 at 03:44:21PM -0200, Alexandre Oliva wrote:
> One way to try to overcome this limitation in autoconf that has just
> occurred to me is to offload the updating of a shared config.cache to
> the top-level Makefile. E.g., the Makefile safely copies the
> top-level config.cache to a subdirectory before it configures it, and
> safely copies it back (or merges it) with the top-level config.cache
> when configure finishes. Safety can be accomplished with
>
> cp ${cache_file} subdir/config.cache
> run configure in subdir, with --config-cache=./config.cache
> mv subdir/config.cache ${cache_file}
>
> trying to merge the contents can get trickier, but I believe it can be
> done too.
>
> The one thing we'd have to be careful about is in case the user
> specified a config.cache to the top-level, especially /dev/null. We
> may have to handle that especially, like autoconf does.
Yeah, I think this would be the way to go; but in any case, I suggest
that we serialize configure targets if it's practical to do so.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer