summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dickens <mlk@alum.mit.edu>2009-10-12 21:18:40 -0400
committerThomas Tsou <ttsou@vt.edu>2009-10-12 21:18:40 -0400
commit6b626de1518b3897f8707acd7b920f19cc15da94 (patch)
treedf4f0cdfd55b39450098cf55659dda96cd56aae6
parent77a3e7e8f2940b8a86d80518ebd7d39365f2c5be (diff)
usrp: Applied patch from Michael Dickens for Darwin libusb
Update usrp_libusb.m4 to work on Darwin for both libusb-legacy and libusb1
-rwxr-xr-xconfig/usrp_libusb.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/config/usrp_libusb.m4 b/config/usrp_libusb.m4
index 6ed7f5e9fc..428a579923 100755
--- a/config/usrp_libusb.m4
+++ b/config/usrp_libusb.m4
@@ -91,14 +91,18 @@ AC_DEFUN([USRP_LIBUSB], [
AC_LANG_PUSH(C)
save_LIBS="$LIBS"
LIBS=""
+ case "$host_os" in
+ darwin*)
+ USB_LIBS="$USB_LIBS -lIOKit"
+ LIBS="$USB_LIBS"
+ ;;
+ *) ;;
+ esac
AC_CHECK_LIB([$usb_lib_name], [$usb_lib_func], [], [
libusbok=no
AC_MSG_RESULT([USRP requires library '$usb_lib_name' with function '$usb_lib_func', which was either not found or was not usable. See http://www.libusb.org])
])
case "$host_os" in
- darwin*)
- USB_LIBS="$USB_LIBS -lIOKit"
- ;;
cygwin* | mingw*)
USB_LIBS="$LIBS"
;;