diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-03-07 13:34:34 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-03-07 13:34:34 +0200 |
commit | 9886d436ff5615fc70eef32ff757b1e934069621 (patch) | |
tree | b89e854fb8f12790e8a71e5d796c321cb7465bf2 /configure.ac | |
parent | Increase the default memory usage limit on "low-memory" systems. (diff) | |
download | xz-9886d436ff5615fc70eef32ff757b1e934069621.tar.xz |
Change the default of --enable-assume-ram from 32 to 128 MiB.
This is to allow files created with "xz -9" to be decompressed
if the amount of RAM cannot be determined.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index bfb64304..af317e93 100644 --- a/configure.ac +++ b/configure.ac @@ -348,15 +348,16 @@ AC_MSG_RESULT([$enable_threads]) # Assumed amount of RAM # ######################### -# We use 32 MiB as default, because it should be small enough for most -# cases and allows decompressing files compressed with the default settings. -# Probably it is too small for most systems, but it's safer to guess too low. +# We use 128 MiB as default, because it will allow decompressing files +# created with "xz -9". It would be slightly safer to guess a lower value, +# but most systems, on which we don't have any way to determine the amount +# of RAM, will probably have at least 128 MiB of RAM. AC_MSG_CHECKING([how much RAM to assume if the real amount is unknown]) AC_ARG_ENABLE([assume-ram], AC_HELP_STRING([--enable-assume-ram=SIZE], [If and only if the real amount of RAM cannot be determined, - assume SIZE MiB. The default is 32 MiB. This affects the + assume SIZE MiB. The default is 128 MiB. This affects the default memory usage limit.]), - [], [enable_assume_ram=32]) + [], [enable_assume_ram=128]) assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789` if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then AC_MSG_RESULT([]) |