[Top][All Lists]

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

Re: multiline substitutions

From: Ralf Wildenhues
Subject: Re: multiline substitutions
Date: Wed, 6 Oct 2010 07:12:55 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

Hi Bruno, Paul,

* Bruno Haible wrote on Tue, Oct 05, 2010 at 11:40:04PM CEST:
> +       (cd $(top_builddir) && ./config.status --file=-) < 
> $(srcdir)/time.in.h | \
> +       sed -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
>             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
> -           -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
> -           < $(srcdir)/time.in.h; \
> +           -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
>       } > address@hidden && \
>       mv address@hidden $@
>  MOSTLYCLEANFILES += time.h time.h-t

The remaining sed script could be replaced by AC_SUBST_FILE instances,
although you'd need to modify the gnulib sources then.

In order to address the fairly large config.status startup overhead, an
alternative would be to just declare the headers AC_CONFIG_FILES, then
they'd be generated normally after configure has run.  Modifying the
Autoconf code to be more efficient here is a lot trickier (at least more
work), and as soon as Libtool is in the game, its config.status bits are
where the most overhead comes from.


reply via email to

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