freebsd-ports/comms/hidapi/files/patch-configure.ac
Tijl Coosemans 70772d8b36 - Remove part of a patch that wasn't entirely correct and let the port
use the WCHAR_T iconv extension instead.
- Add USES=libtool and let libtoolize copy the necessary files instead of
  symlinking them such that they can be patched.
- Add a configure check for libusb_handle_events_completed.
2014-01-29 21:01:51 +00:00

11 lines
536 B
Text

--- configure.ac.orig
+++ configure.ac
@@ -94,6 +94,8 @@
LIBS="${LIBS}"
AC_CHECK_LIB([usb], [libusb_init], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -lusb"], [hidapi_lib_error libusb])
AC_CHECK_LIB([iconv], [iconv_open], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -liconv"], [hidapi_lib_error libiconv])
+ AC_CHECK_DECLS([libusb_get_string_descriptor], [], [], [[#include <libusb.h>]])
+ AC_CHECK_DECLS([libusb_handle_events_completed], [], [], [[#include <libusb.h>]])
echo libs_priv: $LIBS_LIBUSB_PRIVATE
;;
*-mingw*)