build: add an additional check for glib-mkenums
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 4 Oct 2024 09:25:33 +0000 (11:25 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 7 Oct 2024 08:06:52 +0000 (10:06 +0200)
commit0e4198b9eef1eeedf8cf12e970b36d4e50a1da48
treee19e8d73d5acf19683d97d485ca53959d3216bfe
parented7ffe83627b804af1a644c5df9c66ebcec2d28c
build: add an additional check for glib-mkenums

Some distros split glib-mkenums and other GLib build utilities into a
separate package but the glib-2.0 pkgconfig file pointing to it is
typically shipped as part of the -dev package. This can lead to a
situation where configure thinks it knows where glib-mkenums is but make
then fails because it's not really installed on the system. Check the
existence of the actual executable in addition to querying pkgconfig.

Link: https://lore.kernel.org/r/20241004092533.34368-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
configure.ac