depends gupnp &&
optional_depends gtk-doc '--enable-gtk-doc' '--disable-gtk-doc' \
                 'for documentation generation' &&
if is_depends_enabled $SPELL gtk-doc ; then
  config_query_option GUPNPAV_HTML \
                      'build html docs?' y \
                      '--enable-gtk-doc-html' \
                      '--disable-gtk-doc-html' &&
  config_query_option GUPNPAV_PDF \
                      'build html docs?' n \
                      '--enable-gtk-doc-pdf' \
                      '--disable-gtk-doc-pdf'
fi
