autoconf
[Top][All Lists]
Advanced

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

Passing configure time settings to sub-packages.


From: Craig Sanders
Subject: Passing configure time settings to sub-packages.
Date: Mon, 01 Oct 2007 21:06:56 +1000

Hello.

I hope that someone can help me. I want to know how I can pass configure time 
information from a package to a sub-package.

I have a simple project that is comprised of one package, but which in turn 
contains a sub-package. The package is contained in a directory called ~/simple 
while the sub-package is contained in a sub-directory called 
~/simple/subpackage. The directory ~/simple contains a configure.ac file and 
this file invokes the following macro ;

  AC_CONFIG_SUBDIRS([subpackage])
   
Directory ~/simple/subpackage also contains a configure.ac file. To try and 
help explain my original question, say ~/simple/configure.ac checked for the 
presence of the Boost threading library on the host system. If it found it, it 
could store the result in a variable. However, say 
~/simple/subpackage/configure.ac also needed to check for the Boost threading 
library. Rather than searching for the library again, is there any way that the 
result can be passed across to the configure.ac (actually configure) script in 
the sub-package from the configure script in the package?

Any help on this matter would be most appreciated.


Thankyou.




reply via email to

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