[Top][All Lists]

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

Re: AM_CONDITIONAL + AM_COND_IF does not work

From: Tyler Retzlaff
Subject: Re: AM_CONDITIONAL + AM_COND_IF does not work
Date: Mon, 09 Mar 2015 12:48:17 -0400
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


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])

I try to generically find out, whether examples/ exists in a project and to automatically use it, if it exists:
AM_CONDITIONAL([HAVE_EXAMPLES_DIR], [test -f examples/])

But automake fails:
------------------------------------------ error: required file 'examples/' not found

AC_CONFIG_FILES([examples/makefile]) presumes you have examples/ from which to generate makefile when configure is run. The error is clear, examples/ isn't found.

Did you forget generate from with automake? I'd try that first.


reply via email to

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