autoconf-patches
[Top][All Lists]
Advanced

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

Re: Extracting configuration info from config.status


From: Ralf Wildenhues
Subject: Re: Extracting configuration info from config.status
Date: Sat, 18 Oct 2008 09:01:31 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

[ moving from autoconf@ ]

* Eric Blake wrote on Fri, Oct 17, 2008 at 12:49:58AM CEST:
> Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de> writes:
> 
> > > It is still a bit frustrating when you know all the data you need is in
> > > config.status but you cannot get it. Something that would solve this 
> > > problem
> > > would be to have an option like --showtag then I could run config,status
> > > as:
> > 
> > You can do it like this:
> >   echo '@CC@' | ./config.status --file=-
> 
> We need to put this gem in the manual.  Care to write a patch?

I'll push this later today, if no one complains.

Thanks,
Ralf

        Show how to extract single substitutions from config.status.
        * doc/autoconf.texi (config.status Invocation): Show example
        using `--file=-'.

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 43227a6..3172c95 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18868,7 +18868,14 @@ Doing so can be useful if some of the packages need a 
superset of the
 features that one of them, perhaps a common library, does.  These
 options allow a @file{config.status} file to create files other than the
 ones that its @file{configure.ac} specifies, so it can be used for a
-different package.
+different package, or for extracting a subset of values.  For example,
+
address@hidden
+echo '@@CC@@' | ./config.status --file=-
address@hidden example
+
address@hidden
+provides the value of @code{@@CC@@} on standard output.
 
 @item address@hidden:@var{template}]
 Same as @option{--file} above, but with @samp{AC_CONFIG_HEADERS}.




reply via email to

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