configure.ac: xpp: now libusbx is the default
authorOron Peled <oron.peled@xorcom.com>
Mon, 22 Dec 2014 14:06:25 +0000 (14:06 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 5 Nov 2015 16:05:21 +0000 (18:05 +0200)
* Fallback to old libusb-0.1 if libusbx isn't found.
* Can force either: --{with,without}-{libusb,libusbx}

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

configure.ac

index 74f1f0b..9dc008a 100644 (file)
@@ -194,7 +194,7 @@ AC_ARG_WITH([libusb],
 
 # LIBUSBX tests
 have_libusbx=
-AS_IF([test "$with_libusbx" = "yes"],
+AS_IF([test "$with_libusbx" != "no"],
        [PKG_CHECK_MODULES([LIBUSBX], [libusb-1.0],
                [AC_CHECK_LIB([usb-1.0], [libusb_error_name],
                        [