[darcs-users] darcs patch: Outsource the (optional) mmap support to bytestring-mmap.

Eric Kow kowey at darcs.net
Tue Feb 3 13:00:44 UTC 2009


On Tue, Feb 03, 2009 at 13:14:55 +0100, Petr Rockai wrote:
> that's interesting, since it is #ifdefd' in HAVE_MMAP. Maybe autoconf is
> defining that for some reason? (I have not reused the USE_MMAP flag we had
> previously precisely to avoid this sort of problem).

Yep!  Here's what I see:

AC_MSG_CHECKING([whether to use mmap])
AC_ARG_ENABLE(mmap, AS_HELP_STRING([--disable-mmap],
              [do not use mmap (use this flag if you get bus errors)]),
              enable_mmap=$enableval,enable_mmap=yes)
if test "$SYS" = "windows"; then
  AC_MSG_RESULT(no (Windows))
else
  AC_MSG_RESULT($enable_mmap)
fi
USE_MMAP="True"
if test "$enable_mmap" = "no" || test "$SYS" = "windows" ; then
  USE_MMAP="False"
fi
AC_DEFINE(HAVE_MMAP)
AC_SUBST(USE_MMAP)

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20090203/957f8215/attachment.pgp 


More information about the darcs-users mailing list