automake
[Top][All Lists]
Advanced

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

Re: ifdef expessions in Makefile.am


From: Joakim Tjernlund
Subject: Re: ifdef expessions in Makefile.am
Date: Fri, 18 Dec 2009 00:46:37 +0100

Joakim Tjernlund/Transmode wrote on 18/12/2009 00:32:11:

> From: Joakim Tjernlund/Transmode
> To: Peter Johansson <address@hidden>
> Cc: address@hidden
> Date: 18/12/2009 00:32
> Subject: Re: ifdef expessions in Makefile.am
>
> Peter Johansson <address@hidden> wrote on 18/12/2009 00:05:46:
>
> > From: Peter Johansson <address@hidden>
> > To: Joakim Tjernlund <address@hidden>
> > Cc: address@hidden
> > Date: 18/12/2009 00:05
> > Subject: Re: ifdef expessions in Makefile.am
> >
> > Hi Joakim,
> >
> > Joakim Tjernlund wrote:
> > > Thanks, but I can't make that work for me
> > > AM_CONDITIONAL seems to be an automake 1.11 feature
> > >
> >
> > That seems inaccurate because I've used AM_CONDITIONAL since 2004.
> >
> > > and the AC_SUBST variant does not quite fit
> > > Basically I want:
> > > if @TEST@ then
> > >  SUBDIRS+= dir1/dir2/@TEST@
> > >  SUBDIRS+= dir3/dir2/@TEST@
> > >  SUBDIRS+= dir4/@TEST@
> > > ....
> > > endif
> > >
> > >
> > Would you mind, rather than telling us what syntax you wanna use, let us
> > know why you cannot use AM_CONDITIONAL. In particular it would be useful
> > to know where the value of @TEST@ is decided? What values can @TEST@ take?
> >

> I tried the example you pointed me to, added this to configure.ac:
>   AM_CONDITIONAL([COND_OPT], [test "$want_opt" = yes])
> and got:
> # > autoconf
> configure.ac:32: error: possibly undefined macro: AM_CONDITIONAL
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
>
> This is autoconf 2.63

Aha, I must run aclocal first. That was really a surprise to
me.

 Jocke





reply via email to

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