Autoconf support for checking the required version of libusb based on fusb-tech
[debian/gnuradio] / config / usrp_fusb_tech.m4
index 0be6a0ec5a0e8ca2c32032b53715c1d25daa8e18..200cb36af3bdce18210967ca2942226bc86038d5 100644 (file)
@@ -25,15 +25,17 @@ dnl
 #   ""  : do these tests
 
 AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[
+  req_libusb1=no
   AC_ARG_WITH([fusb-tech],
               AC_HELP_STRING([--with-fusb-tech=OS],
                             [Set fast USB technique (default=auto)]),
              [cf_with_fusb_tech="$withval"],
-             [cf_with_fusb_tech="libusb1"])
+             [cf_with_fusb_tech="$host_os"])
   if test [x]$1 != xno; then
       case "$cf_with_fusb_tech" in
         libusb1*)
           FUSB_TECH=libusb1
+          req_libusb1=yes
           ;;
         linux*)
           AC_CHECK_HEADER([linux/usbdevice_fs.h],