Support for conditional dependencies.
authorBruno Haible <bruno@clisp.org>
Tue, 3 May 2011 21:32:50 +0000 (23:32 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 May 2011 21:38:19 +0000 (23:38 +0200)
commit99659bac7ac6b63b4f2d422df157aa4f582428d7
tree5781874f169bb41d896a60b36a019f28315e4e53
parentcc9b4bafbc4d712a483ce5b5b336ad80183edce3
Support for conditional dependencies.

* doc/gnulib.texi (Module description): Document the syntax of
conditional dependencies.
* gnulib-tool: New option --conditional-dependencies.
(func_usage): Document it.
(cond_dependencies): New variable.
(func_get_automake_snippet_conditional,
func_get_automake_snippet_unconditional): New functions, extracted from
func_get_automake_snippet.
(func_get_automake_snippet): Use them.
(sed_first_32_chars): New variable.
(func_module_shellfunc_name): New function.
(func_module_shellvar_name): New function.
(func_module_conditional_name): New function.
(func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
func_cond_module_condition): New functions.
(func_modules_transitive_closure): Add support for conditional
dependencies.
(func_emit_lib_Makefile_am): For a conditional module, enclose the
conditional automake snippet in an automake conditional.
(func_emit_autoconf_snippets): Emit shell functions that contain the
code for conditional modules.
(func_import, func_create_testdir): Update specification.
ChangeLog
doc/gnulib.texi
gnulib-tool