ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] autoconf 2.59 & VPATH
@ 2003-12-13 17:24 Sergey Bolshakov
  0 siblings, 0 replies; only message in thread
From: Sergey Bolshakov @ 2003-12-13 17:24 UTC (permalink / raw)
  To: devel


Наткнулся на престранную вещь, что творит autoconf:

фрагмент Makefile.in, содержащий нечто вроде
--- %< ---
VPATH = $(srcdir)/foo:$(srcdir)/bar:$(srcdir)/baz
--- %< ---

превращается в полное непотребство в Makefile:
--- %< ---
VPATH = /foo:$(srcdir)/bar:$(srcdir)/baz
--- %< ---

В потрохах autoconf нашелся кусок (autoconf/status.m4, есть еще):

--- %< ---
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub=['/^[         ]*VPATH[         ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[    ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[      ]*$//;
}']
fi
--- %< ---

причем раньше, по кр.мере в autoconf_2.5-2.57, я на этот кусок
не нарывался, поскольку тот содержал только tab'ы в re:
--- %< ---
ac_vpsub=['/^[        ]*VPATH[        ]*=/{
--- %< ---

И что теперь с этим делать ?

PS как объехать, я знаю; я про шашечки :)

-- 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-13 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-13 17:24 [devel] autoconf 2.59 & VPATH Sergey Bolshakov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git