Browse Source

Bugfix: configure: Only pull in lowl-usb for lowl-vcom if libusb is available

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

+ 5 - 1
configure.ac

@@ -744,7 +744,11 @@ AM_CONDITIONAL([HAS_METABANK], [test x$metabank = xyes])
 
 if test "x$need_lowl_vcom" != "xno"; then
 	# Lowlevel VCOM doesn't need libusb, but it can take advantage of it to reattach drivers
-	need_lowl_usb=yes
+	if test "x$libusb" != xno; then
+		need_lowl_usb=yes
+	elif test "x$libusb$want_libusb" = xnoyes; then
+		AC_MSG_ERROR([Could not find libusb, which you specifically requested])
+	fi
 fi
 
 if test "x$need_lowl_usb" = "xno"; then