mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +02:00
kdrive: Fix tslib check fallback to set TSLIB_LIBS. #30599
If pkg-config is unable to find tslib but the fallback check does find
it, the compilation continues with tslib support enabled though
TSLIB_LIBS are unset. Thus, the compilation fails with a linking error
on tslib functions.
This patch sets TSLIB_LIBS to '-lts' whenever the tslib fallback check
succeeds.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=30599
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit c7e436e998)
This commit is contained in:
parent
46314e1e7a
commit
43020e1ac9
1 changed files with 4 additions and 1 deletions
|
|
@ -2037,7 +2037,10 @@ if test "$KDRIVE" = yes; then
|
|||
|
||||
PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"])
|
||||
if test "x$HAVE_TSLIB" = xno; then
|
||||
AC_CHECK_LIB(ts, ts_open, [HAVE_TSLIB="yes"])
|
||||
AC_CHECK_LIB(ts, ts_open, [
|
||||
HAVE_TSLIB="yes"
|
||||
TSLIB_LIBS="-lts"
|
||||
])
|
||||
fi
|
||||
|
||||
if test "xTSLIB" = xauto; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue