On 02/03/2011 06:12 AM, dzinoviev wrote:
> 
> Hello,
> 
> I have a project that uses autoconf/automake. There is the root directory
> and several subdirectories, each having a Makefile.ac, and a configure.ac in
> the root directory. I want each Makefile.ac to have the same macro
> definition (say, FOO = bar). Can I do this in a centralized manner through
> configure.ac? If yes, how? If not, what would you recommend to keep
> Makefile.ac's consistent? Thank you!

There's no such thing as Makefile.ac.  configure.ac is processed by
autoconf, and Makefile.am is processed by automake.  If you want to
share values across multiple Makefiles, it sounds more like an automake
question for what to put in your Makefile.am.  So I'm not quite sure how
best to answer your question, other than to say that yes, automake
supports nesting sub-projects with their own configure.ac while still
allowing the child projects to inherit values substituted in the parent
project configure.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to