depends  gnutls  &&
depends  gtk+${GTK_VNC_VER}  "--with-gtk=${GTK_VNC_VER}.0"  &&
depends  -sub VAPIGEN vala &&

optional_depends  gettext  \
                  '--enable-nls'  \
                  '--disable-nls'  \
                  'for Native Language Support (Recommended)'  &&

optional_depends  python                \
                  '--with-python'       \
                  '--without-python'    \
                  'for Python support'  &&

# the plugin is broken, and probably unsafe anyway
#optional_depends  NS-PLUGIN-COMPATIBLE      \
#                  '--enable-plugin=yes'     \
#                  '--enable-plugin=no'      \
#                  'for web browser plugin'  &&

optional_depends  LIBSASL                   \
                  '--with-sasl'             \
                  '--without-sasl'          \
                  'for SASL authentication support' &&

optional_depends  gobject-introspection  \
                  '--enable-introspection'  \
                  '--disable-introspection'  \
                  'for GObject introspection'  &&

optional_depends  pulseaudio  \
                  '--with-pulseaudio'  \
                  '--without-pulseaudio'  \
                  'for PulseAudio audio playback'  &&

if is_depends_enabled $SPELL gtk+2;  then
  suggest_depends  -sub "GTK2 VNC"  'virt-viewer'  '' '' 'for a better spice client'
else
  suggest_depends  -sub "GTK3 VNC"  'virt-viewer'  '' '' 'for a better spice client'
fi
