Update usrp_libusb.m4 to work on Darwin for both libusb-legacy and libusb1
AC_LANG_PUSH(C)
save_LIBS="$LIBS"
LIBS=""
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
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"
;;
cygwin* | mingw*)
USB_LIBS="$LIBS"
;;