]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.sh: Using trap-safe "exit".
authorPavel Roskin <proski@gnu.org>
Wed, 1 Nov 2000 19:57:54 +0000 (19:57 +0000)
committerPavel Roskin <proski@gnu.org>
Wed, 1 Nov 2000 19:57:54 +0000 (19:57 +0000)
        * autoreconf.sh: Likewise.
        * autoupdate.sh: Likewise.
        * tests/base.at: Use AS_EXIT instead of exit in configure.in.
        * tests/m4sh.at: Likewise.
        * tests/semantics.at: Likewise.

ChangeLog
autoconf.in
autoconf.sh
autoreconf.in
autoreconf.sh
bin/autoconf.in
bin/autoreconf.in
tests/base.at
tests/m4sh.at
tests/semantics.at

index c6cd85658e086124b4e4c5b5fa0195abc309aa3f..9dce4c8af7c76877fae62fd319759b3ae5c80f03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-11-01  Pavel Roskin  <proski@gnu.org>
+
+       * autoconf.sh: Using trap-safe "exit".
+       * autoreconf.sh: Likewise.
+       * autoupdate.sh: Likewise.
+       * tests/base.at: Use AS_EXIT instead of exit in configure.in.
+       * tests/m4sh.at: Likewise.
+       * tests/semantics.at: Likewise.
+
 2000-11-01  Akim Demaille  <akim@epita.fr>
 
        In M4sugar, move `define', `undefine', and `defn' into the `m4_'
index b1e97b6cd5e11fe5b60470cec88068cbb9ed7655..c13b80d88708bafec81c94ed46f83114ddf13a7d 100644 (file)
@@ -390,7 +390,7 @@ case $task in
         }
     }
 EOF
-    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
   ;; # End of the task script.
 
 
index b1e97b6cd5e11fe5b60470cec88068cbb9ed7655..c13b80d88708bafec81c94ed46f83114ddf13a7d 100644 (file)
@@ -390,7 +390,7 @@ case $task in
         }
     }
 EOF
-    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
   ;; # End of the task script.
 
 
index 5d3634d137058a782083e38cd7ee11b47ba48eec..18a62d66734671ca43876db6e925ecca786146d5 100644 (file)
@@ -286,7 +286,7 @@ EOF
 # update.sh --
 # Exit 0 if the first argument is not the most recent of all or is missing.
 cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
 test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
 EOF
 update="@SHELL@ $tmp/update.sh"
index 5d3634d137058a782083e38cd7ee11b47ba48eec..18a62d66734671ca43876db6e925ecca786146d5 100644 (file)
@@ -286,7 +286,7 @@ EOF
 # update.sh --
 # Exit 0 if the first argument is not the most recent of all or is missing.
 cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
 test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
 EOF
 update="@SHELL@ $tmp/update.sh"
index b1e97b6cd5e11fe5b60470cec88068cbb9ed7655..c13b80d88708bafec81c94ed46f83114ddf13a7d 100644 (file)
@@ -390,7 +390,7 @@ case $task in
         }
     }
 EOF
-    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+    $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
   ;; # End of the task script.
 
 
index 5d3634d137058a782083e38cd7ee11b47ba48eec..18a62d66734671ca43876db6e925ecca786146d5 100644 (file)
@@ -286,7 +286,7 @@ EOF
 # update.sh --
 # Exit 0 if the first argument is not the most recent of all or is missing.
 cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
 test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
 EOF
 update="@SHELL@ $tmp/update.sh"
index bcd54a79ea3927d42c91d59f65319aec90199ee6..8de52953acac3bca7b185e5b3e0fd3e56aff958e 100644 (file)
@@ -18,7 +18,7 @@ AT_SETUP(AC_REQUIRE)
 AT_DATA(configure.in,
 [[define([REQUIRE_AND_CHECK],
 [AC_REQUIRE([$1])dnl
-test -z "$translit([$1], [A-Z], [a-z])" && exit 1])
+test -z "$translit([$1], [A-Z], [a-z])" && AS_EXIT(1)])
 
 AC_DEFUN([TEST1],
 [REQUIRE_AND_CHECK([TEST2a])
@@ -40,7 +40,7 @@ AC_PLAIN_SCRIPT
 TEST1
 test -z "$test1" &&
   AC_MSG_ERROR([\$test1 is empty])
-exit 0
+AS_EXIT(0)
 ]])
 
 AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
index 88aa3ed323c053aee7c28b5cce5e6189423b228f..d1ab5be961b34ef9dcd214c0834d1b7b2ca6a67d 100644 (file)
@@ -27,7 +27,7 @@ test -d $pwd/1/2/3/4/5/6 ||
 AS_MKDIR_P(a/b/c/d/e/f)
 test -d a/b/c/d/e/f ||
   AC_MSG_ERROR([a/b/c/d/e/f has not been properly created])
-exit 0
+AS_EXIT(0)
 ]])
 
 AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
@@ -99,7 +99,7 @@ AS_DIRNAME_SED_TEST([//1//3/],                [//1])
 AS_DIRNAME_SED_TEST([/1//3/],          [/1])
 AS_DIRNAME_SED_TEST([./1//3/],         [./1])
 AS_DIRNAME_SED_TEST([../../2//3/],     [../../2])
-exit 0
+AS_EXIT(0)
 ]])
 
 AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
index 3c538941ac6c3460843ed030582e98fb8f9c832c..c9810d3a60dae577163ca4356a2cc70c52144642 100644 (file)
@@ -29,7 +29,7 @@ AC_TRY_LINK_FUNC(Be_doomed_if_your_libc_has_a_function_named_like_this,
 # But there are systems without libm, on which we don't want to have
 # this test fail, so exit successfully if `cos' is in libc.
 AT_CHECK_MACRO(AC_CHECK_LIB,
-[AC_TRY_LINK_FUNC(cos, exit 0)
+[AC_TRY_LINK_FUNC(cos, [AS_EXIT(0)])
 AC_CHECK_LIB(m, cos,,
              [AC_MSG_ERROR([cannot find `cos'])])])
 
@@ -257,7 +257,7 @@ test "$TOOL6" = tool || fail=:
 # no AC_OUTPUT, we don't need config.status.
 $fail &&
   AC_MSG_ERROR([[CHECK_PROG failed]])
-exit 0
+AS_EXIT(0)
 ]])
 
 AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
@@ -297,7 +297,7 @@ test "$TOOL4" = $pwd/path/1/tool || fail=:
 # no AC_OUTPUT, we don't need config.status.
 $fail &&
   AC_MSG_ERROR([[PATH_PROG failed]])
-exit 0
+AS_EXIT(0)
 ]])
 
 AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])