summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_scripting.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/config/gr_scripting.m4')
-rw-r--r--gr-howto-write-a-block/config/gr_scripting.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/config/gr_scripting.m4 b/gr-howto-write-a-block/config/gr_scripting.m4
index e030a8102..866b7e017 100644
--- a/gr-howto-write-a-block/config/gr_scripting.m4
+++ b/gr-howto-write-a-block/config/gr_scripting.m4
@@ -26,5 +26,13 @@ AC_DEFUN([GR_SCRIPTING],[
SWIG_PROG(1.3.31)
SWIG_ENABLE_CXX
- SWIG_PYTHON
+ dnl We need python at build time, as it's used as for utilities. If python
+ dnl isn't enabled, then we don't want the SWIG support for python.
+ AC_REQUIRE([AM_PATH_PYTHON])
+ if test x${enable_python} = xyes; then
+ SWIG_PYTHON
+ fi
+ if test x${enable_guile} = xyes; then
+ SWIG_GUILE
+ fi
])