Lines 1-11
Link Here
|
1 |
--- configure.ac.orig |
1 |
--- configure.ac.orig 2013-10-06 22:43:37 UTC |
2 |
+++ configure.ac |
2 |
+++ configure.ac |
3 |
@@ -94,6 +94,8 @@ |
3 |
@@ -89,11 +89,11 @@ case $host in |
4 |
LIBS="${LIBS}" |
4 |
os="freebsd" |
|
|
5 |
threads="pthreads" |
6 |
|
7 |
- CFLAGS="$CFLAGS -I/usr/local/include" |
8 |
- LDFLAGS="$LDFLAGS -L/usr/local/lib" |
9 |
- LIBS="${LIBS}" |
5 |
AC_CHECK_LIB([usb], [libusb_init], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -lusb"], [hidapi_lib_error libusb]) |
10 |
AC_CHECK_LIB([usb], [libusb_init], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -lusb"], [hidapi_lib_error libusb]) |
6 |
AC_CHECK_LIB([iconv], [iconv_open], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -liconv"], [hidapi_lib_error libiconv]) |
11 |
- AC_CHECK_LIB([iconv], [iconv_open], [LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} -liconv"], [hidapi_lib_error libiconv]) |
7 |
+ AC_CHECK_DECLS([libusb_get_string_descriptor], [], [], [[#include <libusb.h>]]) |
12 |
+ AC_CHECK_DECLS([libusb_get_string_descriptor], [], [], [[#include <libusb.h>]]) |
8 |
+ AC_CHECK_DECLS([libusb_handle_events_completed], [], [], [[#include <libusb.h>]]) |
13 |
+ AC_CHECK_DECLS([libusb_handle_events_completed], [], [], [[#include <libusb.h>]]) |
|
|
14 |
+ AM_ICONV |
15 |
+ LIBS_LIBUSB_PRIVATE="${LIBS_LIBUSB_PRIVATE} ${LTLIBICONV}" |
9 |
echo libs_priv: $LIBS_LIBUSB_PRIVATE |
16 |
echo libs_priv: $LIBS_LIBUSB_PRIVATE |
10 |
;; |
17 |
;; |
11 |
*-mingw*) |
18 |
*-mingw*) |