From 8a986d2738e946107f3924ab9709a0d880b2e9ec Mon Sep 17 00:00:00 2001 From: msweet Date: Tue, 24 Jun 2014 19:03:02 +0000 Subject: [PATCH] Fixed the --disable-libusb configure option (STR #4439) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11950 a1ca3aef-8c08-0410-bb20-df032aa958be --- CHANGES-1.7.txt | 1 + config-scripts/cups-common.m4 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES-1.7.txt b/CHANGES-1.7.txt index 0fb25d7bd..76eabe97e 100644 --- a/CHANGES-1.7.txt +++ b/CHANGES-1.7.txt @@ -14,6 +14,7 @@ CHANGES IN CUPS V1.7.4 - The RPM spec file did not work due to the new Brazilian Portuguese localization (STR #4436) - Fixed an "IPP read error" issue (STR #4440) + - Fixed the --disable-libusb configure option (STR #4439) CHANGES IN CUPS V1.7.3 diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4 index 708f613dd..945156120 100644 --- a/config-scripts/cups-common.m4 +++ b/config-scripts/cups-common.m4 @@ -231,7 +231,7 @@ AC_SUBST(LIBUSB) AC_SUBST(USBQUIRKS) if test "x$PKGCONFIG" != x; then - if test x$enable_libusb = xyes -o $uname != Darwin; then + if test x$enable_libusb != xno -a $uname != Darwin; then AC_MSG_CHECKING(for libusb-1.0) if $PKGCONFIG --exists libusb-1.0; then AC_MSG_RESULT(yes) @@ -241,6 +241,9 @@ if test "x$PKGCONFIG" != x; then USBQUIRKS="\$(DATADIR)/usb" else AC_MSG_RESULT(no) + if test x$enable_libusb = xyes; then + AC_MSG_ERROR(libusb required for --enable-libusb.) + fi fi fi elif test x$enable_libusb = xyes; then -- 2.39.2