Normally the package managers will not install the latest unstable
versions of GLib, but only the stable versions that they support for
their distribution release. So, you will need to build and install the
latest unstable (2.53.x) version of GLib (make sure that you don't try
to overwrite the GLib that your package manager provides, so you install
it in a private location such as $HOME/gnome.build.unstable), and then
when you build gobject-introspection, you need to prepend your
./autogen.sh with PKG_CONFIG_PATH= and LD_LIBRARY_PATH=, like: