config_query ICE_SHAPED_DECO "Enable shaped decorations?" y
config_query ICE_SESSION "Enable session management (experimental)?" n
config_query ICE_LITE "Build a lightweight version of icewm?" n
config_query ICE_GNOME1 "Enable GNOME-1 menus?" y
config_query ICE_GNOME2 "Enable GNOME-2 menus?" y
config_query ICE_GRAD "Enable gradient background support (experimental)?" n
config_query ICE_GUI_EVENTS "Enable gui events support (experimental)?" n
config_query ICE_FRAMELESS_BUTTONS "Enable frameless button support (for certain themes)?" n

persistent_add ICE_OPTS                             &&

if [ "${ICE_SHAPED_DECO}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-shaped-decorations --enable-shape"
fi                                                  &&
if [ "${ICE_SESSION}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-sm"
fi                                                  &&
if [ "${ICE_LITE}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-lite"
fi                                                  &&
if [ "${ICE_GRAD}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-gradients"
fi                                                  &&
if [ "${ICE_GNOME1}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-menus-gnome1"
fi                                                  &&
if [ "${ICE_GNOME2}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-menus-gnome2"
fi
if [ "${ICE_GUI_EVENTS}" == "y" ]; then
  ICE_OPTS="$ICE_OPTS --enable-guievents"
fi

