summaryrefslogtreecommitdiff
path: root/debian/patches/0001-fix_missing_sane-config.patch
blob: 2240cba74ea4129f77ebab225cf9fca314294012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix FTBFS against libsane-dev >= 1.0.25-3
 Fix missing sane-config
Author: Andreas Metzler <ametzler@bebt.de>
Reviewed-by: Jörg Frings-Fürst <debian@jff-webhosting.net>
Last-Update: 2023-02-17 
Index: trunk/configure.in
===================================================================
--- trunk.orig/configure.in
+++ trunk/configure.in
@@ -112,7 +112,9 @@ fi
 
 AC_CHECK_TOOL(RANLIB, ranlib, :)
 
-AM_PATH_SANE(1.0.0, HAVE_SANE=yes, )
+PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0], [HAVE_SANE=yes])
+PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix])
+PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags])
 dnl Print error message if sane is missing
 if test "x${HAVE_SANE}" = "x"; then
   echo "**********************************************************************"