configure.ac: xpp: now libusbx is the default

* 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>
This commit is contained in:
Oron Peled 2014-12-22 14:06:25 +00:00 committed by Tzafrir Cohen
parent d02361e99f
commit 2097f1adc5
1 changed files with 1 additions and 1 deletions

View 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],
[