dnl
dnl This file is part of GNU Radio
dnl
dnl GNU Radio is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl
dnl This file is part of GNU Radio
dnl
dnl GNU Radio is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl Boston, MA 02110-1301, USA.
AC_DEFUN([GRC_GR_SOUNDER],[
dnl Boston, MA 02110-1301, USA.
AC_DEFUN([GRC_GR_SOUNDER],[
- GRC_ENABLE([gr-sounder])
+ GRC_ENABLE(gr-sounder)
+
+ dnl Don't do gr-sounder if usrp or gnuradio-core skipped
+ GRC_CHECK_DEPENDENCY(gr-sounder, usrp)
+ GRC_CHECK_DEPENDENCY(gr-sounder, gnuradio-core)
- gr-sounder/Makefile \
- gr-sounder/doc/Makefile \
- gr-sounder/src/Makefile \
- gr-sounder/src/fpga/Makefile \
- gr-sounder/src/fpga/top/Makefile \
- gr-sounder/src/fpga/lib/Makefile \
- gr-sounder/src/fpga/tb/Makefile \
- gr-sounder/src/lib/Makefile \
- gr-sounder/src/python/Makefile \
- gr-sounder/src/python/run_tests
+ gr-sounder/Makefile \
+ gr-sounder/doc/Makefile \
+ gr-sounder/src/Makefile \
+ gr-sounder/src/fpga/Makefile \
+ gr-sounder/src/fpga/top/Makefile \
+ gr-sounder/src/fpga/lib/Makefile \
+ gr-sounder/src/fpga/tb/Makefile \
+ gr-sounder/src/lib/Makefile \
+ gr-sounder/src/python/Makefile \
+ gr-sounder/src/python/run_tests
- passed=yes
- # Don't do gr-sounder if usrp skipped
- for dir in $skipped_dirs
- do
- if test x$dir = xusrp; then
- AC_MSG_RESULT([Component gr-sounder requires usrp, which is not being built.])
- passed=no
- fi
- done
-
- GRC_BUILD_CONDITIONAL([gr-sounder],[
+ GRC_BUILD_CONDITIONAL(gr-sounder,[
dnl run_tests is created from run_tests.in. Make it executable.
AC_CONFIG_COMMANDS([run_tests_sounder], [chmod +x gr-sounder/src/python/run_tests])
])
dnl run_tests is created from run_tests.in. Make it executable.
AC_CONFIG_COMMANDS([run_tests_sounder], [chmod +x gr-sounder/src/python/run_tests])
])