]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Oct 2006 19:30:32 +0000 (19:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Oct 2006 19:30:32 +0000 (19:30 +0000)
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.

ChangeLog
tests/base.at

index d44f3fe600ea3dfd7b75ab3df1ef6e6b015131b5..fd10f3e320f534b321e1750179017d4573e4672c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 0311a4c9ebb6ab8fa7d484dec49a09f23e1ef95f..1927e4b7034303632a42d4840a998701cd1ad0c7 100644 (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