From: Ralf Wildenhues Date: Sun, 16 Nov 2008 16:54:54 +0000 (+0100) Subject: Do not use read-only variable $status. X-Git-Tag: v2.63b~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aa63de3e86c7c81e831c2462210d9d78be72d55;p=thirdparty%2Fautoconf.git Do not use read-only variable $status. * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of $status, for zsh. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 81f28fbf3..ec89991bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-16 Ralf Wildenhues + + Do not use read-only variable $status. + * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of + $status, for zsh. + 2008-11-15 Eric Blake Use the new AS_FOR function. diff --git a/tests/compile.at b/tests/compile.at index ba931fcbd..628996002 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -2,7 +2,7 @@ AT_BANNER([Low level compiling/preprocessing macros.]) -# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007 Free Software +# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008 Free Software # Foundation, Inc. # # This program is free software: you can redistribute it and/or modify @@ -123,16 +123,16 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 0])], AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 2])], [AC_MSG_ERROR([saw `return 2' as a success])], - [status=$? -test $status != 2 && - AC_MSG_ERROR([did not get as 2 exit status: $status])]) + [estatus=$? +test $estatus != 2 && + AC_MSG_ERROR([did not get as 2 exit status: $estatus])]) # The old stinky one. AC_TRY_RUN([int main () { return 3; }], [AC_MSG_ERROR([saw `return 3' as a success])], - [status=$? -test $status != 3 && - AC_MSG_ERROR([did not get 3 as exit status: $status])]) + [estatus=$? +test $estatus != 3 && + AC_MSG_ERROR([did not get 3 as exit status: $estatus])]) ]])