autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-197-


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-197-g291d709
Date: Sun, 16 Nov 2008 21:18:39 +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=291d709efde90f2a548233dc2d64296bc158f43d

The branch, master has been updated
       via  291d709efde90f2a548233dc2d64296bc158f43d (commit)
      from  9aa63de3e86c7c81e831c2462210d9d78be72d55 (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 291d709efde90f2a548233dc2d64296bc158f43d
Author: Ralf Wildenhues <address@hidden>
Date:   Sun Nov 16 22:18:07 2008 +0100

    Fix exit status of expr version of as_func_arith.
    
    * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
    status of 1 of expr also as success, to avoid failure if the
    computation result is zero.  Fixes test failures with IRIX sh,
    where the expr variant of as_func_arith is used.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

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

Summary of changes:
 ChangeLog           |    6 ++++++
 lib/m4sugar/m4sh.m4 |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ec89991..7a8502d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-11-16  Ralf Wildenhues  <address@hidden>
 
+       Fix exit status of expr version of as_func_arith.
+       * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
+       status of 1 of expr also as success, to avoid failure if the
+       computation result is zero.  Fixes test failures with IRIX sh,
+       where the expr variant of as_func_arith is used.
+
        Do not use read-only variable $status.
        * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
        $status, for zsh.
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index f106e2d..56697ad 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -1743,6 +1743,7 @@ 
AS_IF([_AS_RUN(["AS_ESCAPE(m4_quote(_AS_VAR_ARITH_WORKS))"])],
 [as_func_arith ()
   {
     as_val=`expr "$[]@"`
+    case $? in 0|1) :;; *) false;; esac
   }]) # as_func_arith
 ])
 


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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