* 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:
Paul Eggert 2006-10-26 19:30:32 +00:00
parent 0ae1775302
commit e6be421d52
2 changed files with 12 additions and 5 deletions

View File

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

View File

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