equal
deleted
inserted
replaced
1543 fi |
1543 fi |
1544 if test x$have_libusb = xyes; then |
1544 if test x$have_libusb = xyes; then |
1545 SYSTEM_LIBS="$SYSTEM_LIBS -lusb" |
1545 SYSTEM_LIBS="$SYSTEM_LIBS -lusb" |
1546 fi |
1546 fi |
1547 |
1547 |
|
1548 AC_CHECK_HEADER(usb.h, have_usb_h=yes) |
1548 AC_CHECK_HEADER(usbhid.h, have_usbhid_h=yes) |
1549 AC_CHECK_HEADER(usbhid.h, have_usbhid_h=yes) |
1549 AC_CHECK_HEADER(libusb.h, have_libusb_h=yes) |
1550 AC_CHECK_HEADER(libusb.h, have_libusb_h=yes) |
1550 AC_CHECK_HEADER(libusbhid.h, have_libusbhid_h=yes) |
1551 AC_CHECK_HEADER(libusbhid.h, have_libusbhid_h=yes) |
|
1552 if test x$have_usb_h = xyes; then |
|
1553 CFLAGS="$CFLAGS -DHAVE_USB_H" |
|
1554 fi |
1551 if test x$have_usbhid_h = xyes; then |
1555 if test x$have_usbhid_h = xyes; then |
1552 CFLAGS="$CFLAGS -DHAVE_USBHID_H" |
1556 CFLAGS="$CFLAGS -DHAVE_USBHID_H" |
1553 fi |
1557 fi |
1554 if test x$have_libusb_h = xyes; then |
1558 if test x$have_libusb_h = xyes; then |
1555 CFLAGS="$CFLAGS -DHAVE_LIBUSB_H" |
1559 CFLAGS="$CFLAGS -DHAVE_LIBUSB_H" |
1559 fi |
1563 fi |
1560 |
1564 |
1561 AC_MSG_CHECKING(for usbhid) |
1565 AC_MSG_CHECKING(for usbhid) |
1562 have_usbhid=no |
1566 have_usbhid=no |
1563 AC_TRY_COMPILE([ |
1567 AC_TRY_COMPILE([ |
|
1568 #if defined(HAVE_USB_H) |
|
1569 #include <usb.h> |
|
1570 #endif |
1564 #include <dev/usb/usb.h> |
1571 #include <dev/usb/usb.h> |
1565 #include <dev/usb/usbhid.h> |
1572 #include <dev/usb/usbhid.h> |
1566 #if defined(HAVE_USBHID_H) |
1573 #if defined(HAVE_USBHID_H) |
1567 #include <usbhid.h> |
1574 #include <usbhid.h> |
1568 #elif defined(HAVE_LIBUSB_H) |
1575 #elif defined(HAVE_LIBUSB_H) |
1569 #include <libusb.h> |
1576 #include <libusb.h> |
1570 #elif defined(HAVE_LIBUSBHID_H) |
1577 #elif defined(HAVE_LIBUSBHID_H) |
1571 #include <libusbhid.h> |
1578 #include <libusbhid.h> |
1572 #endif |
|
1573 ],[ |
1579 ],[ |
1574 struct report_desc *repdesc; |
1580 struct report_desc *repdesc; |
1575 struct usb_ctl_report *repbuf; |
1581 struct usb_ctl_report *repbuf; |
1576 hid_kind_t hidkind; |
1582 hid_kind_t hidkind; |
1577 ],[ |
1583 ],[ |