autoconf
[Top][All Lists]
Advanced

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

Re: CONFIG_SHELL behavior


From: Ralf Wildenhues
Subject: Re: CONFIG_SHELL behavior
Date: Sat, 29 Jan 2005 15:33:53 +0100
User-agent: Mutt/1.4.1i

* Paul Eggert wrote on Thu, Jan 27, 2005 at 06:35:57PM CET:
> Ralf Wildenhues <address@hidden> writes:
> 
> > This would require the user to issue
> >   CONFIG_SHELL=/bin/foosh /bin/foosh ./configure
> >
> > or the m4sh setup to do some (possibly unnecessary) re-execution.
> >
> > Now I know current Autoconf docs do not specify above use, but users
> > imply it, and Libtool would benefit from a solution to this.
> > There, one problem is that $ECHO is computed for the shell run at
> > configure time, but that value might not be valid for $CONFIG_SHELL.
> >
> > What do you think is more appropriate: another exec or a doc update?
> 
> It might not hurt to do both.  The doc fix would be easier, so let's
> start with that; maybe it's enough.

How about this?

        * doc/autoconf.texi (config.status Invocation), doc/install.texi
        (Defining Variables): Describe how to run `configure' and
        subsequent scripts under a specific shell.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.867
diff -u -r1.867 autoconf.texi
--- doc/autoconf.texi   24 Jan 2005 12:24:02 -0000      1.867
+++ doc/autoconf.texi   29 Jan 2005 14:31:09 -0000
@@ -13628,6 +13628,11 @@
 The shell with which to run @command{configure} for the @option{--recheck}
 option.  It must be Bourne-compatible.  The default is a shell that
 supports @env{LINENO} if available, and @file{/bin/sh} otherwise.
+Note that setting @var{CONFIG_SHELL} might not be sufficient if you run
address@hidden directly (@pxref{Defining Variables}).
address@hidden
+
address@hidden example
 @end defvar
 
 @defvar CONFIG_STATUS
Index: doc/install.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/install.texi,v
retrieving revision 1.41
diff -u -r1.41 install.texi
--- doc/install.texi    20 Aug 2004 19:58:07 -0000      1.41
+++ doc/install.texi    29 Jan 2005 14:31:09 -0000
@@ -226,6 +226,15 @@
 will cause the specified gcc to be used as the C compiler (unless it is
 overridden in the site shell script).
 
+If you need @command{configure} as well as subsequent scripts like
address@hidden to be executed by a certain shell, then set
address@hidden and use @command{configure} as argument to the shell:
+
address@hidden
+CONFIG_SHELL=/usr/bin/bash /usr/bin/bash ./configure [...]
address@hidden example
+
address@hidden Invocation}, for more details.
 
 @node configure Invocation
 @section @command{configure} Invocation




reply via email to

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