Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-10 Thread Tom Ghyselinck
Hi, I had a similar issue and solved it as follows: use AC_CONFIG_FILES with and AC_SUBST-ed variable: AC_SUBST([VARIABLE_CONTAINING_MY_MAKEFILES]) AC_CONFIG_FILES([${VARIABLE_CONTAINING_MY_MAKEFILES}]) Snippet from our solution (little bit adjusted to match your issue):

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-10 Thread Marc Wäckerlin
Hi Gavin Thank you, that helps up to the next step ... Am 09.03.2015 18:45, schrieb Gavin Smith: automake doesn't know or care that one of these uses of AC_CONFIG_FILES was conditional. It is looking for the input files to automake (like Makefile.am), which it will derive from the arguments to

AM_CONDITIONAL + AM_COND_IF does not work

2015-03-09 Thread Marc Wäckerlin
According to the official documentation(*): -- Here is an example of how to define a conditional config file: AM_CONDITIONAL([SHELL_WRAPPER], [test x$with_wrapper = xtrue]) AM_COND_IF([SHELL_WRAPPER], [AC_CONFIG_FILES([wrapper:wrapper.in])])

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-09 Thread Tyler Retzlaff
Hey, On 3/9/2015 11:06 AM, Marc Wäckerlin wrote: According to the official documentation(*): -- Here is an example of how to define a conditional config file: AM_CONDITIONAL([SHELL_WRAPPER], [test x$with_wrapper = xtrue]) AM_COND_IF([SHELL_WRAPPER],

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-09 Thread Tom Ghyselinck
Hi Marc, On ma, 2015-03-09 at 16:06 +0100, Marc Wäckerlin wrote: I try to generically find out, whether examples/makefile.am exists in a project and to automatically use it, if it exists: -- AM_CONDITIONAL([HAVE_EXAMPLES_DIR], [test -f

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-09 Thread Gavin Smith
On 9 March 2015 at 15:06, Marc Wäckerlin m...@waeckerlin.org wrote: According to the official documentation(*): -- Here is an example of how to define a conditional config file: AM_CONDITIONAL([SHELL_WRAPPER], [test x$with_wrapper = xtrue])