autoconf-patches
[Top][All Lists]
Advanced

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

Re: Patch for autoconf/145


From: Pavel Roskin
Subject: Re: Patch for autoconf/145
Date: Fri, 23 Feb 2001 14:45:23 -0500 (EST)

> > I believe that Automake can switch to @SET_VPATH@, but I'm in doubt what
> > package should AC_DEFINE it - Autoconf or Automake or both?
>
> Who cares.  AC_SUBSTing twice is fine.

Of course I meant AC_SUBST.

> The only question is *what* is supposed to be in there.  Sorry for
> being so naive, but I really never paid attention to VPATH.

Two possible solutions:

1) VPATH = ${srcdir}

Pro: it's a fixed value. It can be done through AC_SUBST. Contra: it can
be less portable. But those who build out of tree should be using GNU
Make, so it shouldn't be a big issue.

2) VPATH = @srcdir@

Note that @srcdir@ will have to be substituted in the same run of
config.status. This may require a speciall processing in config.status,
but maybe the existing implementation is already capable of replacing
@srcdir@ on the fly.

Pro: users of reasonably good non-GNU Makes will still be able to build
out of srcdir. Contra: possibly requires separate handling (if not, it's
definitely the way to go).

Regards,
Pavel Roskin




reply via email to

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