autoconf
[Top][All Lists]
Advanced

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

Re: abs_top_builddir not working?


From: Stepan Kasal
Subject: Re: abs_top_builddir not working?
Date: Mon, 16 May 2005 12:00:22 +0200
User-agent: Mutt/1.4.1i

Hello,

On Sat, May 14, 2005 at 05:24:11PM +0100, Keith Marshall wrote:
> >  Stepan> abs_srcdir
> >  Stepan> abs_builddir
> >  Stepan> abs_top_srcdir
> >  Stepan> abs_top_builddir
... 
> Doesn't autoconf already AC_SUBST these?

no, it doesn't.  The variables are substituted, but it's not achieved
by calling AC_SUBST.
So Automake cannot discover these by tracing AC_SUBST.

These variables are a bit tricky, because they might have different
value for each file.
(It's similar with the non-abs versions of these and with @address@hidden)

Alexandre proposed:
> > Why not AC_SUBST these variables in Autoconf?

Because of the above, it's not natural to call AC_SUBST for these.

Yes, I could use an m4_if inside AC_SUBST to handle them specially.

Or perhaps you could trace a different macro, not directly AC_SUBST.

Yet I still think having these in header-vars.am is the siplest way.

> > Let's work on solution that don't require modifying Automake each
> > time Autoconf introduces a new variable.

I don't think that new directory-specific variables appear so often.

Alexandre, what of the options mentioned above would you choose?

Regards,
        Stepan Kasal




reply via email to

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