[PATCH] configure: Fix the libsane pkg-config name.

Francois Gouget fgouget at codeweavers.com
Fri Mar 5 10:53:31 CST 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
Verified on Debian 7, 8, 10, Testing, Ubuntu 20.10, Fedora 33, Manjaro
20.05 (Arch), openSUSE 15.2. All use sane-backends as the package name
for pkg-config, and not libsane.
I guess the reason it was not found earlier is that the only impact is
the SANE_LIBS variable in the top-level makefile which is unused
anyway since we use SONAME_LIBSANE instead.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 6a4e9568c40..8ed3b0c2669 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1435,7 +1435,7 @@ WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"],
 dnl **** Check for SANE ****
 if test "x$with_sane" != "xno"
 then
-    WINE_PACKAGE_FLAGS(SANE,[libsane],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`],
+    WINE_PACKAGE_FLAGS(SANE,[sane-backends],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`],
         [AC_CHECK_HEADER(sane/sane.h,
             [WINE_CHECK_SONAME(sane,sane_init,,[SANE_CFLAGS=""],[$SANE_LIBS])],
             [SANE_CFLAGS=""])])
-- 
2.20.1



More information about the wine-devel mailing list