autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple subdirectories with non-similar configure needs


From: Ralf Corsepius
Subject: Re: Multiple subdirectories with non-similar configure needs
Date: Tue, 29 Mar 2011 19:24:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9

On 03/29/2011 06:39 PM, Stefano Lattarini wrote:
Hello autoconfers. Just my 2 cents about the issue ...

Do you think it would be viable/useful to enahnace AC_CONFIG_SUBDIRS (or
write a brand new macro) to allow the "parent" configure script to pass
different options to different "sub" configure scripts?  I know one can
use the `configure.gnu' hack, but that does not seem clear or natural as
using e.g.:
   AC_CONFIG_SUBDIRS([foo], [--with-zardoz])
   AC_CONFIG_SUBDIRS([bar], [--without-zardoz])

It's a step into the right direction. It is useful in cases when you only want to append arguments (which often applies).

However, in general, you will want to process a configure script arguments and to compose the arguments to pass to sub-configure scripts.

Also to be taken into account in such a context would be autoconf's "precious vars" and config.caches (They both only work if a sub-configure's precious vars and config.cache'ed vars's notion matches).

When generalizing more, there are cases a user wants to create build subdirs dynamically. Classical use case for this would be a cross-compiled package suite containing "build"/"host" and (several) target compiled subdirs. Another use-case would be users wanting to compile the same subdir multiple times.

Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]