summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-12-31 19:54:36 +0100
committerGravatar Nikias Bassen2015-12-31 19:54:36 +0100
commit86d028aabc9fdb65b155590366b53c0038989a81 (patch)
tree686af2278cc3f7764a2c36eebabe6b7dbd998205 /configure.ac
parent166af423e44039a6f17d46d171cd90fcbee393aa (diff)
downloadlibirecovery-86d028aabc9fdb65b155590366b53c0038989a81.tar.gz
libirecovery-86d028aabc9fdb65b155590366b53c0038989a81.tar.bz2
autofoo: Only set Requires.private for libusb if linking against libusb
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bc8ba3d..f767ed9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,6 @@ dnl Minimum package versions
LIBUSB_VERSION=1.0.3
AC_SUBST(LIBIRECOVERY_SO_VERSION)
-AC_SUBST(LIBUSB_VERSION)
# Checks for programs.
AC_PROG_CC
@@ -75,6 +74,8 @@ AS_IF([test "x$with_iokit" = "xyes" && test "x$have_iokit" = "xyes"] , [
[
PKG_CHECK_MODULES(libusb, libusb-1.0 >= $LIBUSB_VERSION)
USB_BACKEND="libusb `$PKG_CONFIG --modversion libusb-1.0`"
+ LIBUSB_REQUIRED="libusb >= $LIBUSB_VERSION"
+ AC_SUBST(LIBUSB_REQUIRED)
]
)