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