depends  libx11  &&

if list_find "$XNEUR_SOUND" "aplay"; then
  depends alsa-utils "--with-sound=$XNEUR_SOUND"
elif ! list_find "$XNEUR_SOUND" "none" ; then
  depends "$XNEUR_SOUND" "--with-sound=$XNEUR_SOUND"
fi  &&

if ! list_find "$XNEUR_SPELL" "none"; then
  depends "$XNEUR_SPELL" "--with-spell=$XNEUR_SPELL"
fi  &&

optional_depends  libnotify                    \
                  "--with-libnotify"           \
                  "--without-libnotify"        \
                  "for notifications support"  &&

optional_depends  pcre                               \
                  "--with-pcre"                      \
                  "--without-pcre"                   \
                  "for regular expressions support"  &&

optional_depends  xosd                     \
                  "--with-xosd=yes"        \
                  "--with-xosd=no"         \
                  "for OSD notifications"  &&

optional_depends gtk+2                          \
                 "--with-gtk=gtk2"              \
                 "--with-gtk=no"                \
                 "for additional GTK 2 support" &&

if ! is_depends_enabled $SPELL gtk+2; then
  optional_depends gtk+3                          \
                   "--with-gtk=gtk3"              \
                   ""                             \
                   "for additional GTK 3 support"
fi
