depends  autoconf   &&
depends  automake   &&
depends  gettext    &&
depends  libtool    &&
depends  python3    &&

depends  zlib        &&
depends  X11-LIBS    &&
depends  freetype2   &&
depends imagemagick  &&

if   [[  $FREECIV_CLIENT  ==  "xaw3d" ]]; then
  depends  xaw3d  '--enable-client=xaw3d  --with-xaw3d'
elif [[  $FREECIV_CLIENT  ==  "sdl"   ]]; then
  depends  sdl  '--enable-client=sdl'
elif [[  $FREECIV_CLIENT  ==  "gtk2"  ]]; then
  depends  glib2                         &&
  depends  gtk+2  '--enable-client=gtk'
fi  &&

optional_depends  gettext                              \
                  '--enable-nls'                       \
                  '--disable-nls'                      \
                  'Do you want multilanguage support'  &&

optional_depends  sdl_mixer                           \
                  ''                                  \
                  '--disable-sdl-mixer'               \
                  'for sound support (only via SDL)'  &&

optional_depends  readline                              \
                  '--with-readline'                     \
                  '--without-readline'                  \
                  'support fancy command line editing'  &&

optional_depends  ggz-gtk-client                        \
                  '--with-ggz-client'                   \
                  '--without-ggz-client'                \
                  'for GGZ Gaming Zone client support'  &&

optional_depends  ggz-server                            \
                  '--with-ggz-server'                   \
                  '--without-ggz-server'                \
                  'for GGZ Gaming Zone server support'  &&

optional_depends  mysql                         \
                  '--enable-auth'               \
                  '--disable-auth'              \
                  'for authentication support'
