From MAILER-DAEMON Tue Jun 14 09:47:05 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QWTxR-0005Aa-0a
	for mharc-autoconf-commit@gnu.org; Tue, 14 Jun 2011 09:47:05 -0400
Received: from eggs.gnu.org ([140.186.70.92]:38060)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWTxN-00058s-AJ
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 09:47:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWTxL-0001YB-Gf
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 09:47:01 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:49818)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWTxL-0001X1-58
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 09:46:59 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWTxK-0003jr-Ly
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 13:46:58 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWTxJ-00061L-Dg
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 13:46:58 +0000
Date: Tue, 14 Jun 2011 13:46:57 +0000
Message-Id: <E1QWTxJ-00061L-Dg@vcs-noshell.in.savannah.gnu.org>
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-69-g1a956c4
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 2105ae97000c7c77442b3a788c90d8fee63bd2b3
X-Git-Newrev: 1a956c4b1e8f52b55a2225ace6422c4739f1e43e
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Jun 2011 13:47:03 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=1a956c4b1e8f52b55a2225ace6422c4739f1e43e

The branch, master has been updated
       via  1a956c4b1e8f52b55a2225ace6422c4739f1e43e (commit)
      from  2105ae97000c7c77442b3a788c90d8fee63bd2b3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1a956c4b1e8f52b55a2225ace6422c4739f1e43e
Author: Eric Blake <eblake@redhat.com>
Date:   Tue Jun 14 07:45:29 2011 -0600

    doc: update quoting example
    
    The existing example triggers an autoconf warning, due to the
    change in AC_COMPILE_IFELSE probing for an AC_LANG_SOURCE use.
    
    * doc/autoconf.texi (Autoconf Language): Add AC_LANG_SOURCE use.
    * THANKS: Update.
    Reported by Křištof Želechovski.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    7 +++++++
 THANKS            |    1 +
 doc/autoconf.texi |   17 ++++++++++++-----
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1fca7bb..03541e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-06-14  Eric Blake  <eblake@redhat.com>
+
+	doc: update quoting example
+	* doc/autoconf.texi (Autoconf Language): Add AC_LANG_SOURCE use.
+	* THANKS: Update.
+	Reported by Křištof Želechovski.
+
 2011-05-05  Eric Blake  <eblake@redhat.com>
 
 	doc: document dash bug with positional parameters
diff --git a/THANKS b/THANKS
index 7679b05..e125ebe 100644
--- a/THANKS
+++ b/THANKS
@@ -235,6 +235,7 @@ Kevin Ryde                  user42@zip.com.au
 Klee Dienes                 kdienes@apple.com
 Koji Arai                   JCA02266@nifty.ne.jp
 Kristian Kvilekval          kris@cs.ucsb.edu
+Křištof Želechovski         giecrilj@stegny.2a.pl
 Kurt D. Zeilenga            kurt@openldap.org
 Larry Jones                 larry.jones@sdrc.com
 Larry Schmitt               larry@mail.haleakalawebdesigns.com
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 7ff693f..99b1fd1 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -1288,19 +1288,26 @@ has been continually misunderstood@enddots{}  The rule of thumb is that
 i.e., expect one level of quotes to be lost.  For instance:
 
 @example
-AC_COMPILE_IFELSE([char b[10];], [], [AC_MSG_ERROR([you lose])])
+AC_COMPILE_IFELSE(AC_LANG_SOURCE([char b[10];]), [],
+ [AC_MSG_ERROR([you lose])])
 @end example
 
 @noindent
-is incorrect: here, the first argument of @code{AC_COMPILE_IFELSE} is
+is incorrect: here, the first argument of @code{AC_LANG_SOURCE} is
 @samp{char b[10];} and is expanded once, which results in
-@samp{char b10;}.  (There was an idiom common in Autoconf's past to
+@samp{char b10;}; and the @code{AC_LANG_SOURCE} is also expanded prior
+to being passed to @code{AC_COMPILE_IFELSE}.  (There was an idiom common
+in Autoconf's past to
 address this issue via the M4 @code{changequote} primitive, but do not
 use it!)  Let's take a closer look: the author meant the first argument
-to be understood as a literal, and therefore it must be quoted twice:
+to be understood as a literal, and therefore it must be quoted twice;
+likewise, the intermediate @code{AC_LANG_SOURCE} macro should be quoted
+once so that it is only expanded after the rest of the body of
+@code{AC_COMPILE_IFELSE} is in place:
 
 @example
-AC_COMPILE_IFELSE([[char b[10];]], [], [AC_MSG_ERROR([you lose])])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char b[10];]])], [],
+  [AC_MSG_ERROR([you lose])])
 @end example
 
 @noindent


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Tue Jun 14 11:57:16 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QWVzP-0005H2-FC
	for mharc-autoconf-commit@gnu.org; Tue, 14 Jun 2011 11:57:15 -0400
Received: from eggs.gnu.org ([140.186.70.92]:46444)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWVzL-0005FP-Rc
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 11:57:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWVzK-0001hg-7f
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 11:57:11 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:58809)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWVzJ-0001ha-VA
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 11:57:10 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWVzJ-0005IJ-MZ
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 15:57:09 +0000
Received: from ericb by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QWVzJ-0001OE-ED
	for autoconf-commit@gnu.org; Tue, 14 Jun 2011 15:57:09 +0000
Date: Tue, 14 Jun 2011 15:57:09 +0000
Message-Id: <E1QWVzJ-0001OE-ED@vcs-noshell.in.savannah.gnu.org>
From: "Eric Blake" <eblake@redhat.com>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-70-g64a4d17
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 1a956c4b1e8f52b55a2225ace6422c4739f1e43e
X-Git-Newrev: 64a4d1799faf2ab8d1359c85c0ca84a036d44b28
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Jun 2011 15:57:13 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=64a4d1799faf2ab8d1359c85c0ca84a036d44b28

The branch, master has been updated
       via  64a4d1799faf2ab8d1359c85c0ca84a036d44b28 (commit)
      from  1a956c4b1e8f52b55a2225ace6422c4739f1e43e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 64a4d1799faf2ab8d1359c85c0ca84a036d44b28
Author: Eric Blake <eblake@redhat.com>
Date:   Mon Jun 13 17:33:07 2011 -0600

    doc: mention more about ksh cloexec behavior
    
    * doc/autoconf.texi (File Descriptors): Clarify that only the exec
    builtin suffers from cloexec issues.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    4 +++
 doc/autoconf.texi |   56 +++++++++++++++++++++++-----------------------------
 2 files changed, 29 insertions(+), 31 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 03541e0..885e545 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-06-14  Eric Blake  <eblake@redhat.com>
 
+	doc: mention more about ksh cloexec behavior
+	* doc/autoconf.texi (File Descriptors): Clarify that only the exec
+	builtin suffers from cloexec issues.
+
 	doc: update quoting example
 	* doc/autoconf.texi (Autoconf Language): Add AC_LANG_SOURCE use.
 	* THANKS: Update.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 99b1fd1..6ec0dc4 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -15442,45 +15442,39 @@ As a workaround, @command{echo} or @command{eval} can be used.
 Don't rely on file descriptors 0, 1, and 2 remaining closed in a
 subsidiary program.  If any of these descriptors is closed, the
 operating system may open an unspecified file for the descriptor in the
-new process image.  Posix says this may be done only if the subsidiary
-program is set-user-ID or set-group-ID, but HP-UX 11.23 does
-it even for ordinary programs.
-
-Don't rely on open file descriptors being open in child processes.  In
-@command{ksh}, file descriptors above 2 which are opened using
+new process image.  Posix 2008 says this may be done only if the
+subsidiary program is set-user-ID or set-group-ID, but HP-UX 11.23 does
+it even for ordinary programs, and the next version of Posix will allow
+HP-UX behavior.
+
+If you want a file descriptor above 2 to be inherited into a child
+process, then you must use redirections specific to that command or a
+containing subshell or command group, rather than relying on
+@command{exec} in the shell. In @command{ksh} as well as HP-UX
+@command{sh}, file descriptors above 2 which are opened using
 @samp{exec @var{n}>file} are closed by a subsequent @samp{exec} (such as
-that involved in the fork-and-exec which runs a program or script).
-Thus, using @command{sh}, we have:
+that involved in the fork-and-exec which runs a program or script):
 
 @example
-$ @kbd{cat ./descrips}
-#!/bin/sh -
-echo hello >&5
-$ @kbd{exec 5>t}
-$ @kbd{./descrips}
-$ @kbd{cat t}
+$ @kbd{echo 'echo hello >&5' >k
+$ @kbd{/bin/sh -c 'exec 5>t; ksh ./k; exec 5>&-; cat t}
 hello
-$
-@end example
-
-@noindent
-But using ksh:
-
-@example
-$ @kbd{exec 5>t}
-$ @kbd{./descrips}
+$ @kbd{bash -c 'exec 5>t; ksh ./k; exec 5>&-; cat t}
+hello
+$ @kbd{ksh -c 'exec 5>t; ksh ./k; exec 5>&-; cat t}
+./k[1]: 5: cannot open [Bad file number]
+$ @kbd{ksh -c '(ksh ./k) 5>t; cat t'}
+hello
+$ @kbd{ksh -c '@{ ksh ./k; @} 5>t; cat t'}
+hello
+$ @kbd{ksh -c '5>t ksh ./k; cat t}
 hello
-$ @kbd{cat t}
-$
 @end example
 
-@noindent
-Within the process which runs the @samp{descrips} script, file
-descriptor 5 is closed.
-
 Don't rely on duplicating a closed file descriptor to cause an
-error.  With Solaris @command{/bin/sh}, when the redirection fails, the
-output goes to the original file descriptor.
+error.  With Solaris @command{/bin/sh}, failed duplication is silently
+ignored, which can cause unintended leaks to the original file
+descriptor.  In this example, observe the leak to standard output:
 
 @example
 $ @kbd{bash -c 'echo hi >&3' 3>&-; echo $?}


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Sat Jun 18 17:36:50 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QY3CD-00062z-Ux
	for mharc-autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:36:50 -0400
Received: from eggs.gnu.org ([140.186.70.92]:45531)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3CA-00062V-NP
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:36:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3C9-0004kk-3u
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:36:46 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:58252)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3C8-0004kU-MT
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:36:44 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3C8-0002UD-G3
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 21:36:44 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3C8-0002Up-Bv
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 21:36:44 +0000
Date: Sat, 18 Jun 2011 21:36:44 +0000
Message-Id: <E1QY3C8-0002Up-Bv@vcs-noshell.in.savannah.gnu.org>
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-71-g9ddea20
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 64a4d1799faf2ab8d1359c85c0ca84a036d44b28
X-Git-Newrev: 9ddea209e5240e7d64d54c888df81b29ccebdd3b
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Jun 2011 21:36:48 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=9ddea209e5240e7d64d54c888df81b29ccebdd3b

The branch, master has been updated
       via  9ddea209e5240e7d64d54c888df81b29ccebdd3b (commit)
      from  64a4d1799faf2ab8d1359c85c0ca84a036d44b28 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9ddea209e5240e7d64d54c888df81b29ccebdd3b
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sat Jun 18 14:36:22 2011 -0700

    * doc/autoconf.texi (File Descriptors): Fix texinfo typo.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    4 ++++
 doc/autoconf.texi |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 885e545..aaa1640 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* doc/autoconf.texi (File Descriptors): Fix texinfo typo.
+
 2011-06-14  Eric Blake  <eblake@redhat.com>
 
 	doc: mention more about ksh cloexec behavior
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 6ec0dc4..637c272 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -15456,7 +15456,7 @@ containing subshell or command group, rather than relying on
 that involved in the fork-and-exec which runs a program or script):
 
 @example
-$ @kbd{echo 'echo hello >&5' >k
+$ @kbd{echo 'echo hello >&5' >k}
 $ @kbd{/bin/sh -c 'exec 5>t; ksh ./k; exec 5>&-; cat t}
 hello
 $ @kbd{bash -c 'exec 5>t; ksh ./k; exec 5>&-; cat t}


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Sat Jun 18 17:40:44 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QY3Fz-0006D3-SN
	for mharc-autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:40:43 -0400
Received: from eggs.gnu.org ([140.186.70.92]:46188)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3Fx-0006Cv-N9
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:40:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3Fw-0005J2-Lc
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:40:41 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:43404)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3Fw-0005Ix-If
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 17:40:40 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3Fv-0002Y7-Ko
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 21:40:40 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QY3Fp-00038n-SH
	for autoconf-commit@gnu.org; Sat, 18 Jun 2011 21:40:38 +0000
Date: Sat, 18 Jun 2011 21:40:34 +0000
Message-Id: <E1QY3Fp-00038n-SH@vcs-noshell.in.savannah.gnu.org>
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-72-gb174741
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 9ddea209e5240e7d64d54c888df81b29ccebdd3b
X-Git-Newrev: b1747413a80add0271d6909aecfdc2b638456257
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 18 Jun 2011 21:40:43 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=b1747413a80add0271d6909aecfdc2b638456257

The branch, master has been updated
       via  b1747413a80add0271d6909aecfdc2b638456257 (commit)
      from  9ddea209e5240e7d64d54c888df81b29ccebdd3b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b1747413a80add0271d6909aecfdc2b638456257
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sat Jun 18 14:39:57 2011 -0700

    * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
    
    Problem with stack-detection code reported by Andy Wingo in
    <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00032.html>.
    This fix is imported from gnulib's c-stack module.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    5 +++++
 lib/autoconf/functions.m4 |   18 ++++++------------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index aaa1640..e0e52ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-06-18  Paul Eggert  <eggert@cs.ucla.edu>
 
+	* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
+	Problem with stack-detection code reported by Andy Wingo in
+	<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00032.html>.
+	This fix is imported from gnulib's c-stack module.
+
 	* doc/autoconf.texi (File Descriptors): Fix texinfo typo.
 
 2011-06-14  Eric Blake  <eblake@redhat.com>
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 5541968..3156887 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -325,23 +325,17 @@ AC_CACHE_CHECK([stack direction for C alloca],
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [AC_INCLUDES_DEFAULT
 int
-find_stack_direction ()
+find_stack_direction (char *addr)
 {
-  static char *addr = 0;
-  auto char dummy;
-  if (addr == 0)
-    {
-      addr = &dummy;
-      return find_stack_direction ();
-    }
-  else
-    return (&dummy > addr) ? 1 : -1;
+  char dummy;
+  return (! addr ? find_stack_direction (&dummy)
+          : addr < &dummy ? 1 : -1);
 }
 
 int
-main ()
+main (void)
 {
-  return find_stack_direction () < 0;
+  return find_stack_direction (0) < 0;
 }])],
 	       [ac_cv_c_stack_direction=1],
 	       [ac_cv_c_stack_direction=-1],


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Mon Jun 20 01:33:39 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QYX7D-0005mN-CP
	for mharc-autoconf-commit@gnu.org; Mon, 20 Jun 2011 01:33:39 -0400
Received: from eggs.gnu.org ([140.186.70.92]:35637)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QYX7A-0005m5-7f
	for autoconf-commit@gnu.org; Mon, 20 Jun 2011 01:33:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QYX79-0008Hj-6d
	for autoconf-commit@gnu.org; Mon, 20 Jun 2011 01:33:36 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:47005)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QYX79-0008Hf-3s
	for autoconf-commit@gnu.org; Mon, 20 Jun 2011 01:33:35 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QYX78-00019Q-NR
	for autoconf-commit@gnu.org; Mon, 20 Jun 2011 05:33:34 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QYX78-0004gc-EA
	for autoconf-commit@gnu.org; Mon, 20 Jun 2011 05:33:34 +0000
Date: Mon, 20 Jun 2011 05:33:34 +0000
Message-Id: <E1QYX78-0004gc-EA@vcs-noshell.in.savannah.gnu.org>
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-73-g6cd9f12
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: b1747413a80add0271d6909aecfdc2b638456257
X-Git-Newrev: 6cd9f12520b0d6f76d3230d7565feba1ecf29497
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Jun 2011 05:33:37 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=6cd9f12520b0d6f76d3230d7565feba1ecf29497

The branch, master has been updated
       via  6cd9f12520b0d6f76d3230d7565feba1ecf29497 (commit)
      from  b1747413a80add0271d6909aecfdc2b638456257 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6cd9f12520b0d6f76d3230d7565feba1ecf29497
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun Jun 19 22:33:03 2011 -0700

    * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
    
    GCC was too smart for the previous patch.  See
    <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    6 ++++++
 lib/autoconf/functions.m4 |   15 +++++++++------
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e0e52ce..466b8a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
+	GCC was too smart for the previous patch.  See
+	<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.
+
 2011-06-18  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 3156887..cbc3413 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -325,17 +325,20 @@ AC_CACHE_CHECK([stack direction for C alloca],
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [AC_INCLUDES_DEFAULT
 int
-find_stack_direction (char *addr)
+find_stack_direction (int *addr, int depth)
 {
-  char dummy;
-  return (! addr ? find_stack_direction (&dummy)
-          : addr < &dummy ? 1 : -1);
+  int dir, dummy = 0;
+  if (! addr)
+    addr = &dummy;
+  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
+  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
+  return dir + dummy;
 }
 
 int
-main (void)
+main (int argc, char **argv)
 {
-  return find_stack_direction (0) < 0;
+  return find_stack_direction (0, argc + !argv + 20) < 0;
 }])],
 	       [ac_cv_c_stack_direction=1],
 	       [ac_cv_c_stack_direction=-1],


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Thu Jun 30 12:14:58 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QcJtJ-0005XS-Tm
	for mharc-autoconf-commit@gnu.org; Thu, 30 Jun 2011 12:14:58 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52164)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QcJtD-0005Vn-9s
	for autoconf-commit@gnu.org; Thu, 30 Jun 2011 12:14:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QcJtB-0003Cy-D7
	for autoconf-commit@gnu.org; Thu, 30 Jun 2011 12:14:51 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:39291)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QcJtA-0003Cu-WF
	for autoconf-commit@gnu.org; Thu, 30 Jun 2011 12:14:49 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by colonialone.fsf.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QcJtA-0008UX-UQ
	for autoconf-commit@gnu.org; Thu, 30 Jun 2011 16:14:48 +0000
Received: from eggert by vcs-noshell.in.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QcJtA-0000Gp-Oa
	for autoconf-commit@gnu.org; Thu, 30 Jun 2011 16:14:48 +0000
Date: Thu, 30 Jun 2011 16:14:48 +0000
Message-Id: <E1QcJtA-0000Gp-Oa@vcs-noshell.in.savannah.gnu.org>
From: "Paul Eggert" <eggert@cs.ucla.edu>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-75-g52581e0
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 6cd9f12520b0d6f76d3230d7565feba1ecf29497
X-Git-Newrev: 52581e00dcb0ba47dc28dd115e3ceec5cd01f49c
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.51
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Jun 2011 16:14:56 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=52581e00dcb0ba47dc28dd115e3ceec5cd01f49c

The branch, master has been updated
       via  52581e00dcb0ba47dc28dd115e3ceec5cd01f49c (commit)
       via  8c18ccff3adaee25816d720134c3e568c59c3a28 (commit)
      from  6cd9f12520b0d6f76d3230d7565feba1ecf29497 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 52581e00dcb0ba47dc28dd115e3ceec5cd01f49c
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Thu Jun 30 09:13:41 2011 -0700

    * tests/semantics.at (AC_REPLACE_FUNCS): Test for just-fixed bug.

commit 8c18ccff3adaee25816d720134c3e568c59c3a28
Author: Timo Kamph <timo.kamph@tu-harburg.de>
Date:   Thu Jun 30 09:12:55 2011 -0700

    * lib/autoconf/functions.m4 (_AC_REPLACE_FUNCS): Fix tr-cpp problem.
    
    See http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00058.html

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    9 +++++++++
 lib/autoconf/functions.m4 |    2 +-
 tests/semantics.at        |    4 +++-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 466b8a8..0bad5a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* tests/semantics.at (AC_REPLACE_FUNCS): Test for just-fixed bug.
+
+2011-06-30  Timo Kamph  <timo.kamph@tu-harburg.de>  (trivial change)
+
+	* lib/autoconf/functions.m4 (_AC_REPLACE_FUNCS): Fix tr-cpp problem.
+	See http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00058.html
+
 2011-06-19  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index cbc3413..f506e76 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -137,7 +137,7 @@ m4_define([_AC_REPLACE_FUNCS],
 [m4_map_args_w([$1], [_AC_REPLACE_FUNC(], [)
 ])],
 [AC_CHECK_FUNCS([$1],
-  [_AH_CHECK_FUNC([$ac_func])AC_DEFINE(AS_TR_CPP([HAVE_$ac_func]))],
+  [_AH_CHECK_FUNC([$ac_func])],
   [_AC_LIBOBJ([$ac_func])])])])
 
 
diff --git a/tests/semantics.at b/tests/semantics.at
index 68fe861..5bcab52 100644
--- a/tests/semantics.at
+++ b/tests/semantics.at
@@ -179,7 +179,8 @@ AT_CONFIGURE_AC(
 [AC_CONFIG_FILES([config.libobjs:config.in])
 AC_REPLACE_FUNCS([printf \
 autoconf_ftnirp])
-funcs='fprintf autoconf_ftnirpf'
+funcs='fprintf fopen autoconf_ftnirpf'
+AH_TEMPLATE([HAVE_FOPEN], [])
 AH_TEMPLATE([HAVE_FPRINTF], [])
 AH_TEMPLATE([HAVE_AUTOCONF_FTNIRPF], [])
 AC_REPLACE_FUNCS([\
@@ -193,6 +194,7 @@ AT_CHECK_ENV
 AT_CHECK_DEFINES(
 [/* #undef HAVE_AUTOCONF_FTNIRP */
 /* #undef HAVE_AUTOCONF_FTNIRPF */
+#define HAVE_FOPEN 1
 #define HAVE_FPRINTF 1
 #define HAVE_PRINTF 1
 ])


hooks/post-receive
-- 
GNU Autoconf source repository


