automake
[Top][All Lists]
Advanced

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

Re: Automake conditional ..question


From: Stepan Kasal
Subject: Re: Automake conditional ..question
Date: Tue, 15 Feb 2005 07:59:43 +0100
User-agent: Mutt/1.4.1i

Hello,

On Mon, Feb 14, 2005 at 05:40:12PM -0800, Rashmi Keshava Iyengar wrote:
>  COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX   -DTURN_DEBUGGING_OFF
> @address@hidden ($(U32BUILD),1)
>         COMMONDEFINES += -DUINT_WORD32
> @address@hidden

Automake has no chance to understand this hack.
Use Automake conditionals, as described in the manual:

AM_CONDITIONAL([BLDCHK],
        [test "$want_build_check" = yes && test "$u32build" = yes])

Is it possible to determine at configure time whether the build is ``U32''?

COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX   -DTURN_DEBUGGING_OFF
if BLDCHK
       COMMONDEFINES += -DUINT_WORD32
endif

> BTW, I'm using Automake version 1.6.3

This is way too old.  I'd suggest using a recent version; 1.9.5 has just
came out.

Stepan




reply via email to

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