src/stats.c and src/tools/stats-tool.c use glib function g_mkstemp_full
g_mkstemp_full comes since GLib 2.21.6, see following changelog:
http://linuxtesting.org/upstream-tracker/changelogs/glib/2.21.6/changelog.html
So here fix the dependency of glib in configure.ac to >=2.22
AC_DEFINE_UNQUOTED([STATS_MAX_FILE_SIZE], (${stats_max_file_size}), [Maximal size of a statistics round robin file])
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
- AC_MSG_ERROR(GLib >= 2.16 is required))
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.22, dummy=yes,
+ AC_MSG_ERROR(GLib >= 2.22 is required))
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)