Fix check for libusb in configure.ac

pull/7/head
nirenjan 2015-12-08 20:07:04 -08:00
parent 7ddde96cc6
commit 326075406a
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@ AM_PROG_AR
LT_INIT LT_INIT
# Check for libusb-1.0 # Check for libusb-1.0
AC_SEARCH_LIBS([libusb_init], [libusb-1.0], [have_libusb=yes]) AC_SEARCH_LIBS([libusb_init], [usb-1.0], [have_libusb=yes])
if test "x${have_libusb}" = xyes; then if test "x${have_libusb}" = xyes; then
AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [have_libusb=no]) AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [have_libusb=no])
fi fi
if test "x${have_libusb}" = xno; then if test "x${have_libusb}" != xyes; then
AC_MSG_ERROR([ AC_MSG_ERROR([
------------------------------------------------------- -------------------------------------------------------
The library libusb-1.0 and header file libusb.h The library libusb-1.0 and header file libusb.h