qemu-keymap is not needed with linux-user, so disable it by default if tools are disabled (tools are disabled by default with linux-user).
Avoid this error with statically linked binaries: Linking target qemu-keymap /usr/bin/ld: cannot find -lxkbcommon Signed-off-by: Laurent Vivier <laur...@vivier.eu> --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index d9ca87fbbb52..2cab3330d010 100755 --- a/configure +++ b/configure @@ -3448,6 +3448,11 @@ fi ########################################## # xkbcommon probe +if test -z "$xkbcommon"; then + if test "$want_tools" = "no"; then + xkbcommon=no + fi +fi if test "$xkbcommon" != "no" ; then if $pkg_config xkbcommon --exists; then xkbcommon_cflags=$($pkg_config xkbcommon --cflags) -- 2.26.2