autotools: Handle case when bindir var in xkbcomp.pc is absent
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107521
Fixes: 726839459c
(autotools: Derive xkb configuration from xkbcomp.pc)
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: vadym.shovkoplias <vadym.shovkoplias@globallogic.com>
This commit is contained in:
parent
4fe02b8da3
commit
d0545847a0
|
@ -1404,7 +1404,10 @@ AC_ARG_WITH(xkb-bin-directory,
|
|||
[XKB_BIN_DIRECTORY="auto"])
|
||||
|
||||
if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
|
||||
XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir})
|
||||
XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp)
|
||||
if test -z $XKB_BIN_DIRECTORY; then
|
||||
XKB_BIN_DIRECTORY="$bindir"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_DEFINE_DIR(XKB_BIN_DIRECTORY, XKB_BIN_DIRECTORY, [Path to XKB bin dir])
|
||||
|
|
Loading…
Reference in New Issue
Block a user