depends -sub CXX gcc &&
depends autoconf &&
depends automake &&
depends imake &&

optional_depends zlib \
                 "--enable-zlib" \
                 "--disable-zlib" \
                 "for zlib support" &&

optional_depends bzip2 \
                 "--enable-bz2lib" \
                 "--disable-bz2lib" \
                 "for bz2lib support" &&

optional_depends JPEG \
                 "--enable-jpeg" \
                 "--disable-jpeg" \
                 "for JPEG image support" &&

optional_depends tiff \
                 "--enable-tiff" \
                 "--disable-tiff" \
                 "for TIFF image support" &&

optional_depends libpng \
                 "--enable-png" \
                 "--disable-png" \
                 "for PNG image support" &&

optional_depends libxft \
                 "--with-xft" \
                 "--without-xft" \
                 "for XFT anti-aliased font support" &&

if is_depends_enabled $SPELL libxft; then
  depends freetype2
fi &&

optional_depends libxext \
                 "--with-xshm" \
                 "--without-xshm" \
                 "to enable XShm support" &&

optional_depends libxext \
                 "--with-shape" \
                 "--without-shape" \
                 "to enable XShape support" &&

optional_depends libxfixes \
                 "--with-xfixes" \
                 "--without-xfixes" \
                 "for XFixes support" &&

optional_depends libxcursor \
                 "--with-xcursor" \
                 "--without-xcursor" \
                 "for Xcursor support" &&

optional_depends libxrender \
                 "--with-xrender" \
                 "--without-xrender" \
                 "for XRender support" &&

optional_depends libxrandr \
                 "--with-xrandr" \
                 "--without-xrandr" \
                 "for XRandR support" &&

optional_depends libxi \
                 "--with-xinput" \
                 "--without-xinput" \
                 "for XInput support" &&

if is_depends_enabled $SPELL libxi; then
  config_query_option FOX_OPTS "Enable XIM support?" y \
                               "--with-xim" \
                               "--without-xim"
fi &&

optional_depends OPENGL \
                 "--with-opengl" \
                 "--without-opengl" \
                 "for OpenGL support" &&

optional_depends CUPS "" "" "for printing support"
