1# Try to configure the GTK+-2.0 client (gui-gtk-2.0)
2
3# FC_GTK2_CLIENT
4# Test for GTK+-2.0 libraries needed for gui-gtk-2.0
5
6AC_DEFUN([FC_GTK2_CLIENT],
7[
8  if test "x$gui_gtk2" = "xyes" || test "x$client" = "xauto" ||
9     test "x$client" = "xall" ; then
10    AM_PATH_GTK_2_0(2.12.0,
11      [
12        gui_gtk2=yes
13        if test "x$client" = "xauto" ; then
14          client=yes
15        fi
16        gui_gtk2_cflags="$GTK2_CFLAGS"
17        gui_gtk2_libs="$GTK2_LIBS"
18        if test "x$MINGW" = "xyes"; then
19          dnl Required to compile gtk2 on Windows platform
20          gui_gtk2_cflags="$gui_gtk2_cflags -mms-bitfields"
21          gui_gtk2_ldflags="$gui_gtk2_ldflags $MWINDOWS_FLAG"
22        fi
23      ],
24      [
25        FC_NO_CLIENT([gtk2], [GTK+-2.0 libraries not found])
26      ])
27  fi
28])
29