You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
549 B

  1. --- a/configure.in
  2. +++ b/configure.in
  3. @@ -601,6 +601,10 @@ if test "$class_driver" = "no" && test "
  4. else
  5. AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)])
  6. AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)])
  7. + PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no)
  8. + if test "$have_libusb_1_0" = "yes"; then
  9. + CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
  10. + fi
  11. fi
  12. fi