summaryrefslogtreecommitdiff
path: root/gr-uhd/swig/uhd_swig.i
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/swig/uhd_swig.i')
-rw-r--r--gr-uhd/swig/uhd_swig.i8
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index 80a6a588a..76f44a491 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -20,6 +20,10 @@
* Boston, MA 02110-1301, USA.
*/
+// Defined during configure; avoids trying to locate
+// header files if UHD was not installed.
+#ifdef GR_HAVE_UHD
+
////////////////////////////////////////////////////////////////////////
// Language independent exception handler
////////////////////////////////////////////////////////////////////////
@@ -111,4 +115,6 @@ static const size_t ALL_MBOARDS;
%goops %{
(use-modules (gnuradio gnuradio_core_runtime))
%}
-#endif
+#endif /* SWIGGUILE */
+
+#endif /* GR_HAVE_UHD */