depends  JPEG    &&
depends  libpng  &&
depends  tiff    &&
depends -sub CXX gcc     &&

# TODO figure out where --with-mesa goes if it improves anything
case "$AMAYA_TOOLKIT" in
GTK)
  depends gtk+ '--with-gtk'       &&
  depends imlib                   &&
  optional_depends OPENGL         \
                   '--with-gl'    \
				   '--without-gl' \
				   'OpenGL support (GTK+ must have it too!)'
  ;;
*)
  depends wxgtk '--with-wx' &&
  # using wxWidgets assumes OpenGL option
  depends OPENGL '--with-gl'
 ;;
esac
