From 8d4f5e8f92b8f0effead923648b274554f54e4df Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 19 Nov 2010 11:39:06 +0100 Subject: [PATCH] relax sizeof(long) restriction in configure.ac * configure.ac: Relax the sizeof(long)==sizeof(void*) restriction, instead asserting that the sizeof(long)<=sizeof(void*). There will still be problems on nonstandard platforms related to the interface with gmp, but those are confined to numbers.c. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4b4323f73..344699227 100644 --- a/configure.ac +++ b/configure.ac @@ -281,8 +281,8 @@ AC_CHECK_SIZEOF(ptrdiff_t) AC_CHECK_SIZEOF(size_t) AC_CHECK_SIZEOF(off_t) -if test "$ac_cv_sizeof_long" -ne "$ac_cv_sizeof_void_p"; then - AC_MSG_ERROR(sizes of long and void* are not identical) +if test "$ac_cv_sizeof_long" -gt "$ac_cv_sizeof_void_p"; then + AC_MSG_ERROR(long does not fit into a void*) fi if test "$ac_cv_sizeof_ptrdiff_t" -ne 0; then