File update_tslib_check.patch of Package DirectFB

From ecdc86e391ca638cda98cb87f6172fec170e960f Mon Sep 17 00:00:00 2001
From: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Date: Tue, 12 Sep 2017 10:07:02 +0200
Subject: [PATCH] configure: update tslib version check

Since tslib 1.3 tslib's SONAME and pkg-config name and thus the ABI changed,
while the library is staying backwards compatible. The version number being
part of the name had been a mistake and is gone.

Since tslib-0 is well over 10 years old, we should not fall back to that
ancient version, but instead fall back to using a current version of tslib.

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index 12a65fdc4..c451d3987 100644
--- a/configure.in
+++ b/configure.in
@@ -2563,7 +2563,7 @@ enable_tslib=no
 if test "$checkfor_tslib" = "yes"; then
   PKG_CHECK_MODULES([TSLIB], [tslib-1.0 >= 1.0], [enable_tslib=yes], [enable_tslib=no])
   if test "$enable_tslib" = "no"; then
-     PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [enable_tslib=yes], [enable_tslib=no
+     PKG_CHECK_MODULES([TSLIB], [tslib], [enable_tslib=yes], [enable_tslib=no
        AC_MSG_WARN([*** no tslib -- tslib driver will not be built.])])
   fi
 fi
openSUSE Build Service is sponsored by