This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to toplevel Makefile.tpl
- From: Raja R Harinath <harinath at cs dot umn dot edu>
- To: DJ Delorie <dj at redhat dot com>
- Cc: aoliva at redhat dot com, jason at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Feb 2003 20:35:57 -0600
- Subject: Re: PATCH to toplevel Makefile.tpl
- References: <wvln0kte6z5.fsf@prospero.boston.redhat.com><200302181957.h1IJv4S32118@greed.delorie.com><wvlisvhe46k.fsf@prospero.boston.redhat.com><200302182021.h1IKLTZ13438@greed.delorie.com><ork7fkn631.fsf@free.redhat.lsd.ic.unicamp.br><200302281917.h1SJHNQ32143@greed.delorie.com><d91y1s3pzt.fsf@bose.cs.umn.edu><200303010019.h210J0f15294@greed.delorie.com>
Hi,
DJ Delorie <dj at redhat dot com> writes:
>> The autoconf folks appear to have "solved" this by deprecating
>> config.cache: it defaults to /dev/null in configure scripts
>> generated by newer autoconfs.
>
> That doesn't help us; we explicitly specify the cache (so that it can
> be shared).
I think it may be cleaner to move that from the toplevel configure.in
to Makefile.tpl. Then, it could invoke the subdir configure as
configure-host-foo:
cd foo ; \
... ; \
cp ../config.cache config.cache ; \
$$libsrcdir/configure --cache-file=config.cache ... ; \
$$topsrcdir/install-sh config.cache ../config.cache
or
configure-host-foo:
cd foo ; \
... ; \
while ! mv -f ../config.cache config.cache > /dev/null 2>&1; do sleep 1; done; \
$$libsrcdir/configure --cache-file=config.cache ... ; \
mv config.cache ../config.cache
depending on how much parallelism/sharing you want.
- Hari
--
Raja R Harinath ------------------------------ harinath at cs dot umn dot edu