1# Try to configure the GTK+-3.22 client (gui-gtk-3.22) 2 3# FC_GTK3_22_CLIENT 4# Test for GTK+-3.0 libraries needed for gui-gtk-3.22 5 6AC_DEFUN([FC_GTK3_22_CLIENT], 7[ 8 # Add check "x$client" = "xauto" when this becomes supported client 9 if test "x$gui_gtk3_22" = "xyes" || 10 test "x$client" = "xall" ; then 11 PKG_CHECK_MODULES([GTK3_22], [gtk+-3.0 >= 3.22.0], 12 [ 13 GTK3_22_CFLAGS="$GTK3_22_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_20 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22" 14 GTK3_22_CFLAGS="$GTK3_22_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_50 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_50" 15 gui_gtk3_22=yes 16 if test "x$client" = "xauto" ; then 17 client=yes 18 fi 19 gui_gtk3_22_cflags="$GTK3_22_CFLAGS" 20 gui_gtk3_22_libs="$GTK3_22_LIBS" 21 if test "x$MINGW" = "xyes"; then 22 dnl Required to compile gtk3 on Windows platform 23 gui_gtk3_22_cflags="$gui_gtk3_22_cflags -mms-bitfields" 24 gui_gtk3_22_ldflags="$gui_gtk3_22_ldflags $MWINDOWS_FLAG" 25 fi 26 ], 27 [ 28 FC_NO_CLIENT([gtk3.22], [GTK+-3.22 libraries not found]) 29 ]) 30 fi 31]) 32