build: handle landlock feature as a tristate option

The kernel runtime test does not always work as intended for distribution builds. Instead, if the landlock feature is explicitly enabled, then just check that the header is present (meaning the code will compile). Only if the feature is auto, then check the kernel.

Closes: https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/300

Merge request reports

Loading