[Top][All Lists]

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

Re: Patch for autoconf/145

From: Derek R. Price
Subject: Re: Patch for autoconf/145
Date: Mon, 26 Feb 2001 11:43:45 -0500

"Derek R. Price" wrote:

> Pavel Roskin wrote:
> > Hello, Derek!
> >
> > > > Unfortunately, a trivial AC_SUBST([SET_VPATH], [VPATH = 
> > > > @address@hidden) doesn't
> > > > work - Autoconf actually makes a great effort to protect the second
> > > > argument from expanding.
> > >
> > > Of course, since configure knows the value of $srcdir anyhow, 
> > > [VPATH = $srcdir]) will work.
> >
> > Not quite. It will only work properly for the top-level directory, since
> > srcdir is different for every directory if you are compiling outside of
> > the source tree.
> Good point.  configure substs @srcdir@ properly in all the Makefiles, though, 
> so there's
> obviously some point where it knows the difference.  Maybe it's not a 
> straight up

At that, unless the @srcdir@ and other substs are happening in separate passes, 
since the
variable evaluation in an AC_SUBST doesn't happen until the last second and 
since there has
to be _some_ variable which is set to the proper value for @srcdir@, most 
likely for the
entire duration of the pass, there probably is _a_ variable such that a simple 
would work, even if it isn't named $srcdir.

And if the timing isn't currently exactly right, it should be simple, harmless, 
and useful
enough to adjust.


Derek Price                      CVS Solutions Architect ( )
mailto:address@hidden     OpenAvenue ( )
If virtuous, [the government] need not fear the fair operation of attack and
defense. Nature has given to man no other means of sifting the truth, either in
religion, law, or politics.

                        - Thomas Jefferson to George Washington, 1792

reply via email to

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