Fixed setting of USB_LIBS for *win*
authorMichael Dickens <mdickens@nd.edu>
Fri, 17 Sep 2010 01:07:29 +0000 (21:07 -0400)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Wed, 6 Oct 2010 19:03:33 +0000 (12:03 -0700)
config/usrp_libusb.m4

index 588a958e0e55da0bb4ea5f59c78c37b9bf8f4234..a434d379ddfb3382e1d554a7a2eb2a5797210658 100644 (file)
@@ -129,12 +129,6 @@ AC_DEFUN([USRP_LIBUSB], [
           ]], [[return $usb_lib_func ();]])],
           [libusbok=yes],[libusbok=no])
         AC_MSG_RESULT([$libusbok])
-        case "$host_os" in
-          cygwin* | mingw*)
-            USB_LIBS="$LIBS"
-            ;;
-          *) ;;
-        esac
         LIBS="$save_LIBS"
         AC_LANG_POP(C)
 
@@ -197,6 +191,12 @@ AC_DEFUN([USRP_LIBUSB], [
       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
+        cygwin* | mingw*)
+          USB_LIBS="$LIBS"
+          ;;
+        *) ;;
+      esac
       LIBS="$save_LIBS"
       CPPFLAGS="$save_CPPFLAGS"
       AC_LANG_POP(C)