summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_scripting.m4
diff options
context:
space:
mode:
authorEric Blossom2010-12-04 00:31:22 -0800
committerEric Blossom2010-12-04 00:31:22 -0800
commit6ba2c80cdedf6d4eea99c565ffa8b204174d0576 (patch)
tree587429a02c8032242e901d4784fc0a8e9e2b4c30 /gr-howto-write-a-block/config/gr_scripting.m4
parentea8a60ad9c2e0f9bdc57f77f5506c5906f8d1d6f (diff)
downloadgnuradio-6ba2c80cdedf6d4eea99c565ffa8b204174d0576.tar.gz
gnuradio-6ba2c80cdedf6d4eea99c565ffa8b204174d0576.tar.bz2
gnuradio-6ba2c80cdedf6d4eea99c565ffa8b204174d0576.zip
Some piece of this commit triggers a syntax error running swig:
make[2]: Entering directory `/home/eb/git/wf-exec/gr-howto-write-a-block/swig' Compile .i to .py /usr/bin/swig -fvirtual -python -modern -keyword -w511 -outdir . -I/home/eb/git/wf-exec/gr-howto-write-a-block/lib -I/home/eb/install/include/gnuradio -I/home/eb/install/include/gnuradio/swig \ -MD -MF python/howto_swig.Std \ -module howto_swig -o python/howto_swig.cc -oh python/howto_swig.h howto_swig.i /usr/share/swig/1.3.40/python/std_complex.i:12: Error: Syntax error in input(1). make[2]: *** [howto_swig.py] Error 1
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
])