libmatekbd fails to cross build from source, because it hard codes the
build architecture pkg-config in libmatekbd/Makefile.am. As a
consequence it silently fails looking up the glib_genmarshal variable in
glib-2.0.pc and fails running it. Running pkg-config beyond the
configure phase is not recommended precisely, because one ends up with
such silent failures that only turn into real failures later. I'm
attaching a patch that moves this invocation into configure.ac where the
right pkg-config is known via the PKG_CONFIG variable and where the
lookup succeeds in native builds as in cross builds. After applying this
patch, libmatekbd cross builds correctly.
Helmut