autoconf-patches
[Top][All Lists]
Advanced

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

patches/exit-and-trap.patch


From: Akim Demaille
Subject: patches/exit-and-trap.patch
Date: 27 Oct 2000 15:00:36 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

This partially (in the sense that the test suite must be checked)
addresses the issue raised by Pavel.  It seems to be a bug in Zsh, but
it's a wide spread bug which workaround has already been proposed by
Paul.  The doc will need some adjustment.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * acgeneral.m4 (AC_MSG_ERROR): When trapping an `exit N' some
        shells, such as Zsh, don't set $? to N.  Hence run `(exit N); exit
        N' instead of plain `exit N'.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.596
diff -u -u -r1.596 acgeneral.m4
--- acgeneral.m4 2000/10/25 17:51:10 1.596
+++ acgeneral.m4 2000/10/27 12:56:38
@@ -2795,7 +2761,8 @@
 define([AC_MSG_ERROR],
 [{ _AC_ECHO([configure:__oline__: error: $1], AC_FD_LOG)
   _AC_ECHO([configure: error: $1], 2)
-  exit m4_default([$2], 1); }])
+  (exit m4_default([$2], 1));
+   exit m4_default([$2], 1); }])
 
 
 # AU::AC_CHECKING(FEATURE)



reply via email to

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