#
# Library configuration
#
mainmenu_option next_comment
comment 'Library routines'

tristate 'CRC32 functions' CONFIG_CRC32

#
# Do we need the compression support?
#
if [ "$CONFIG_CRAMFS" = "y" -o \
     "$CONFIG_PPP_DEFLATE" = "y" -o \
     "$CONFIG_CRYPTO_DEFLATE" = "y" -o \
     "$CONFIG_JFFS2_FS" = "y" -o \
     "$CONFIG_ZISOFS_FS" = "y" ]; then
   define_tristate CONFIG_ZLIB_INFLATE y
else
  if [ "$CONFIG_CRAMFS" = "m" -o \
       "$CONFIG_PPP_DEFLATE" = "m" -o \
       "$CONFIG_CRYPTO_DEFLATE" = "m" -o \
       "$CONFIG_JFFS2_FS" = "m" -o \
       "$CONFIG_ZISOFS_FS" = "m" ]; then
     define_tristate CONFIG_ZLIB_INFLATE m
  else
     tristate 'zlib decompression support' CONFIG_ZLIB_INFLATE
  fi
fi

if [ "$CONFIG_PPP_DEFLATE" = "y" -o \
     "$CONFIG_CRYPTO_DEFLATE" = "y" -o \
     "$CONFIG_JFFS2_FS" = "y" ]; then
   define_tristate CONFIG_ZLIB_DEFLATE y
else
  if [ "$CONFIG_PPP_DEFLATE" = "m" -o \
       "$CONFIG_CRYPTO_DEFLATE" = "m" -o \
       "$CONFIG_JFFS2_FS" = "m" ]; then
     define_tristate CONFIG_ZLIB_DEFLATE m
  else
     tristate 'zlib compression support' CONFIG_ZLIB_DEFLATE
  fi
fi

endmenu
