depends -sub CXX gcc &&
depends elfutils &&
depends GETTEXT &&

depends python3 "--with-python3" &&
config_query_option SYSTEMTAP_OPTS "Enable building Python version 3 probe support?" y \
                                   "--with-python3-probes" \
                                   "--without-python3-probes" &&

optional_depends sqlite \
                 "--enable-sqlite" \
                 "--disable-sqlite" \
                 "for SQLite support" &&

optional_depends SSL \
                 "--with-openssl" \
                 "--without-openssl" \
                 "for OpenSSL support" &&

optional_depends nss \
                 "--with-nss" \
                 "--without-nss" \
                 "for compile-server client functionality" &&

optional_depends libselinux \
                 "--with-selinux" \
                 "--without-selinux" \
                 "for Security Enhanced Linux" &&

optional_depends libvirt \
                 "--enable-virt" \
                 "--disable-virt" \
                 "for stapvirt support" &&

if is_depends_enabled ${SPELL} libvirt; then
  depends libxml2
fi &&

optional_depends texlive \
                 "--enable-docs" \
                 "--disable-docs" \
                 "for building documentation" &&

optional_depends avahi \
                 "--with-avahi" \
                 "--without-avahi" \
                 "for Avahi support"
