* Bruno Haible oe...@pyvfc.bet [2011-07-29 01:39:59 +0200]:
At any rate, if gnulib regex is included in libgnu.a, then regex.h
should be copied (or linked) to $(builddir) or $(builddir)/gllib.
The current situation is clearly wrong: regex is the only gnulib package
which requires prepending
Hi,
clisp directory structure is:
clisp - top level; hand-written configure script (ask Bruno)
clisp/src - most sources, configure.in, configure, aclocal.m4
clisp/src/gllib, clisp/src/glm4 - imported from gnulib
clisp/src/build-aux - imported from many places, mostly gnulib
$ grep top_srcdir
A related issue is this section of gllib/Makefile.in
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
Bruno Haible wrote:
Sam Steingold wrote:
If I prepend -I$(srcdir)/gllib to CPPFLAFS, then
#include regex.h
will read the gnulib header, not the system header.
Yes.
How can you be sure that this will not lead to any problems given that
the libgnu.a does _not_ include regex.o?
Because
Sam Steingold wrote:
clisp directory structure is:
clisp - top level; hand-written configure script (ask Bruno)
clisp/src - most sources, configure.in, configure, aclocal.m4
clisp/src/gllib, clisp/src/glm4 - imported from gnulib
clisp/src/build-aux - imported from many places, mostly gnulib
Sam Steingold wrote:
$(am__cd) $(top_srcdir) \
$(AUTOMAKE) --gnits gllib/Makefile
the penultimate line must be
$(am__cd) $(top_srcdir)/src \
how do I effect that?
You can't. Instead, make sure that $(top_srcdir) evaluates to .../clisp/src.
Bruno
--
In memoriam