Browse Source

Bugfix: configure: Only fail due to not having libusb, if the user really needs or wants libusb

Luke Dashjr 12 years ago
parent
commit
2a0396775f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -514,9 +514,9 @@ libusb_include_path=""
 AC_ARG_WITH([libusb],
 AC_ARG_WITH([libusb],
 	[AC_HELP_STRING([--without-libusb],[Compile using libusb (default enabled)])],
 	[AC_HELP_STRING([--without-libusb],[Compile using libusb (default enabled)])],
 	[want_libusb=$withval],
 	[want_libusb=$withval],
-	[want_libusb=yes]
+	[want_libusb=auto]
 	)
 	)
-if test "x$want_libusb" = "xyes"; then
+if test "x$want_libusb" != "xno"; then
 PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
 PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
 	libusb=yes
 	libusb=yes
 ],[
 ],[