mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-31 15:00:26 +08:00
* tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build 5363) simply issues a warning when dividing by zero at compile time. Problem reported by Elias Pipping.
This commit is contained in:
parent
0ae1775302
commit
e6be421d52
@ -1,3 +1,10 @@
|
||||
2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
|
||||
since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
|
||||
5363) simply issues a warning when dividing by zero at compile
|
||||
time. Problem reported by Elias Pipping.
|
||||
|
||||
2006-10-26 Eric Blake <ebb9@byu.net>
|
||||
|
||||
* THANKS: Update.
|
||||
|
@ -230,12 +230,12 @@ AT_SETUP([AC_COMPUTE_INT])
|
||||
|
||||
AT_DATA([configure.ac],
|
||||
[[AC_INIT
|
||||
AC_COMPUTE_INT([divide_by_zero],
|
||||
[1 / 0],
|
||||
AC_COMPUTE_INT([invalid_expression],
|
||||
[**0**],
|
||||
[],
|
||||
[divide_by_zero=failed])
|
||||
test "$divide_by_zero" = failed ||
|
||||
AC_MSG_ERROR([1 / 0 did not fail])
|
||||
[invalid_expression=failed])
|
||||
test "$invalid_expression" = failed ||
|
||||
AC_MSG_ERROR([**0** evaluated to $invalid_expression instead of failing])
|
||||
]])
|
||||
|
||||
AT_CHECK_AUTOCONF
|
||||
|
Loading…
x
Reference in New Issue
Block a user