Akim Demaille wrote:
> >>>>> "Ganesan" == Ganesan Rajagopal <[EMAIL PROTECTED]> writes:
>
> Ganesan> I am curious which versions of automake actually remove
> Ganesan> VPATH.
>
> s/make/conf/.
>
> Well all the known versions, under some conditions only.
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
According to the comment, the intention was to remove it when not
needed, i.e. when $srcdir = $builddir.
The mistaken assumption seems to be that the line in the Makefile.in is
always going to contain "@srcdir@", "$(srcdir)", or the like (a ":"
means @srcdir@ & one or more other dirs).
Why not check for that?
ac_vpsub='/^[\t ]*VPATH[\t ]*=[\t ]*(@|\$\()srcdir(@|\))$/d'
Please excuse the non-portable '\t's - my mail reader won't send a real
tab.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED] OpenAvenue ( http://OpenAvenue.com )
--
You want my advice? Go back to Bulgaria.
- Humphrey Bogart as Rick, _Casablanca_