From 9485db55edf2dc6b75b2024770ae41ad6b68de18 Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 17 Sep 2019 20:06:09 -0700 Subject: restart: fixes for 32bit and chunked items. severe bug in item chunk fixup (wasn't doing it at all!) failed to check on my 32bit builders... and 32bit platforms weren't working at all. This is a bit of a kludge since I'm still working around having ptrdiff, but it seems to work. also fixes a bug with missing null byte for meta filename. --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4d960a5..fb78fc5 100644 --- a/configure.ac +++ b/configure.ac @@ -268,6 +268,20 @@ return sizeof(void*) == 8 ? 0 : 1; ]) fi +dnl If data pointer is 64bit or not. +AC_RUN_IFELSE( + [AC_LANG_PROGRAM([], [dnl +return sizeof(void*) == 8 ? 0 : 1; + ]) +],[ + have_64bit_ptr=yes +],[ +]) + +if test $have_64bit_ptr = yes; then + AC_DEFINE(HAVE_64BIT_PTR, 1, [data pointer is 64bit]) +fi + # Issue 213: Search for clock_gettime to help people linking # with a static version of libevent AC_SEARCH_LIBS(clock_gettime, rt) -- cgit v1.2.1