autoconf
[Top][All Lists]
Advanced

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

Re: AM_CONDITIONAL


From: Ralf Wildenhues
Subject: Re: AM_CONDITIONAL
Date: Sun, 14 Aug 2005 20:24:14 +0200
User-agent: Mutt/1.5.9i

Hi Russell,

* Russell Shaw wrote on Sun, Aug 14, 2005 at 07:21:43PM CEST:
> In configure.in, i have:
> 
>   AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
> 
> and it gets turned into:
> 
> if test x$enable_gtk_doc = xyes; then
>   ENABLE_GTK_DOC_TRUE=
>   ENABLE_GTK_DOC_FALSE='#'
*snip*
> 
> Isn't this backward? When enable_gtk_doc = yes, then this will be
> *false* in the makefile:

Nope.  It may seem so, but it's not, because this:

> if ENABLE_GTK_DOC_TRUE
| bla
| else
| blubb
| endif

will turn into
| @address@hidden
| @address@hidden

in Makefile.in.  However, strictly speaking this is an implementation
detail you should not have to worry about at all (and should not rely 
on either).

Cheers,
Ralf




reply via email to

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