* 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.
This commit is contained in:
Pavel Roskin 2000-11-01 19:57:54 +00:00
parent 15e4d38025
commit 33de71ca28
10 changed files with 22 additions and 13 deletions

View File

@ -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_'

View 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.

View 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.

View 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"

View 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"

View 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.

View 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"

View 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, [], [])

View 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, [], [])

View 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, [], [])