diff options
author | Fneufneu <fneufneu@xbmc.org> | 2012-01-04 17:05:48 +0100 |
---|---|---|
committer | Fneufneu <fneufneu@xbmc.org> | 2012-05-07 09:48:09 +0200 |
commit | 35d4347430a0ffd86329984dbb166bb4486e7214 (patch) | |
tree | 5131ceba5518a2aa885559e6637ed23efab525a8 /configure.in | |
parent | e601785d3d8732d26bc3af5fba704a749615dfeb (diff) |
[FreeBSD] add detection of libusb in configure.in
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 985c72a23d..5c09c2b066 100755 --- a/configure.in +++ b/configure.in @@ -1189,8 +1189,9 @@ else AC_MSG_NOTICE($libusb_disabled) else if echo "$ARCH" | grep -q freebsd ; then - use_libusb="yes" - USB_LIBS="-lusb" + AC_CHECK_LIB([usb],[main], + [use_libusb="yes";USB_LIBS="-lusb"], + [use_libusb="no";AC_MSG_RESULT($libusb_not_found)]) elif test "$use_libusb" = "auto"; then PKG_CHECK_MODULES([USB],[libusb],,[use_libusb="no";AC_MSG_RESULT($libusb_not_found)]) elif test "$use_libusb" = "yes"; then |