autoconf-patches
[Top][All Lists]
Advanced

[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:32:35 -0500

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, 
> > AC_SUBST([SET_VPATH],
> > [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
AC_SUBST...

DErek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
It is as useless to argue with those who have renounced the use and authority
of reason as to administer medication to the dead.

                        - Thomas Jefferson






reply via email to

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