commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9521 - gnuradio/branches/features/gr-usrp2/config


From: jcorgan
Subject: [Commit-gnuradio] r9521 - gnuradio/branches/features/gr-usrp2/config
Date: Sun, 7 Sep 2008 13:35:50 -0600 (MDT)

Author: jcorgan
Date: 2008-09-07 13:35:50 -0600 (Sun, 07 Sep 2008)
New Revision: 9521

Modified:
   gnuradio/branches/features/gr-usrp2/config/grc_usrp2.m4
Log:
Conditionalize usrp2 build on having Linux host, usrp2/firmware on finding 
mb-gcc

Modified: gnuradio/branches/features/gr-usrp2/config/grc_usrp2.m4
===================================================================
--- gnuradio/branches/features/gr-usrp2/config/grc_usrp2.m4     2008-09-07 
19:30:10 UTC (rev 9520)
+++ gnuradio/branches/features/gr-usrp2/config/grc_usrp2.m4     2008-09-07 
19:35:50 UTC (rev 9521)
@@ -24,13 +24,30 @@
     GRC_CHECK_DEPENDENCY(usrp2, gruel)
     GRC_CHECK_DEPENDENCY(usrp2, omnithread)
 
+    dnl USRP2 host code only works on Linux at the moment
+    AC_MSG_CHECKING([whether host_cpu is linux*])
+    case "$host_os" in
+      linux*)
+       AC_MSG_RESULT("yes")
+        ;;
+      *)
+       AC_MSG_RESULT("no")
+       echo "USRP2 requires Linux host OS, not found"
+        passed="no"
+        ;;
+    esac
+
     dnl If execution gets to here, $passed will be:
     dnl   with : if the --with code didn't error out
     dnl   yes  : if the --enable code passed muster and all dependencies are 
met
     dnl   no   : otherwise
     if test $passed = yes; then
-       dnl Adds usrp2/firmware to $(subdirs), hierarchical build
-       AC_CONFIG_SUBDIRS([usrp2/firmware])
+       dnl Only do firmware if mb-gcc can be found
+       AC_CHECK_PROG([MB_GCC],[mb-gcc],[yes],[no])
+       if test $MB_GCC = yes; then
+           dnl Adds usrp2/firmware to $(subdirs), hierarchical build
+           AC_CONFIG_SUBDIRS([usrp2/firmware])
+       fi
 
        dnl Needed for usrp2_socket_opener
        AC_CHECK_HEADERS(arpa/inet.h byteswap.h linux/if_packet.h sys/socket.h 
sys/un.h)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]