From: Timo Sirainen Date: Fri, 25 Apr 2003 01:35:31 +0000 (+0300) Subject: Use mem_align=4 with 32bit off_t X-Git-Tag: 1.1.alpha1~4718 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e35a855ae3e4bd3767a9b6e13e4ff852b54f829;p=thirdparty%2Fdovecot%2Fcore.git Use mem_align=4 with 32bit off_t --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 59cdd7c9e5..41b81fe478 100644 --- a/configure.in +++ b/configure.in @@ -49,7 +49,7 @@ AC_ARG_WITH(file-offset-size, preferred_off_t_bits=64) AC_ARG_WITH(mem-align, -[ --with-mem-align=BYTES Set the memory alignment (default: 8)], +[ --with-mem-align=BYTES Set the memory alignment (default: sizeof(off_t))], mem_align=$withval, mem_align=8) @@ -391,6 +391,11 @@ AC_TRY_COMPILE([ AC_DEFINE_UNQUOTED(OFF_T_MAX, $offt_max, Maximum value of off_t) ]) +dnl currently we break if off_t is smaller than mem_align +if $offt_bits = 32 -a $mem_align = 8; then + mem_align=4 +fi + AC_DEFINE_UNQUOTED(PRIuUOFF_T, "$uofft_fmt", printf() format for uoff_t) dnl * make sure size_t isn't signed. we'd probably work fine with it, but