mquery USE_GPL "Enable GPL components?" y "--enable-gpl" "--disable-gpl"
mquery USE_SWSCALE "Use libswcale instead of img_convert?" y "--avformat-swscale"
mquery USE_8BPP "Use 8bpp instead of the default 16bpp?" n "" "--luma-8bpp"
mquery USE_COMP "Use compressed png lumas?" n "" "--luma-compress"
mquery EXP_JPEG "Enable the option to export JPEGs?" y "--linsys-with-jpeg" 
mquery USE_SWSCALE "Use libswcale instead of img_convert?" y " --avformat-swscale"

mquery BINDINGS "Build Bindings?" y

CLIST=""

if [ "`get_module_config BINDINGS`" = "y" ]; then

    mquery JAVA "Build Java bindings?" y
  if [ "`get_module_config JAVA`" = "y" ]; then
     CLIST="${CLIST}java,"
  fi

  mquery LUA "Build lua bindings?" y
  if [ "`get_module_config LUA`" = "y" ]; then
    CLIST="${CLIST}lua,"
 fi

  mquery PYTHON "Build Python bindings?" y
  if [ "`get_module_config PYTHON`" = "y" ]; then
    CLIST="${CLIST}python,"
 fi

  mquery PHP "Build php bindings?" y
  if [ "`get_module_config PHP`" = "y" ]; then
    CLIST="${CLIST}php,"
 fi

  mquery PERL "Build Perl bindings?" y
  if [ "`get_module_config PERL`" = "y" ]; then
     CLIST="${CLIST}perl,"
 fi

  mquery RUBY "Build Ruby bindings?" y
  if [ "`get_module_config RUBY`" = "y" ]; then
     CLIST="${CLIST}ruby,"
 fi

  mquery TCL "Build tcl bindings?" y
  if [ "`get_module_config TCL`" = "y" ]; then
     CLIST="${CLIST}tcl"
 fi
fi

   OPTS+="--swig-languages=${CLIST}"
