diff options
author | Rob Savoye | 2010-11-15 19:06:30 -0700 |
---|---|---|
committer | Rob Savoye | 2010-11-15 19:06:30 -0700 |
commit | e5473181c0df89735a65be5b00d27433fa0b4031 (patch) | |
tree | 074bfb47089d5aaf57a2f972c2e303ae0530fe5e /gr-howto-write-a-block/config/gr_standalone.m4 | |
parent | f2d5299a3f7dd5baa795a27c2864b2cfe67edb37 (diff) | |
download | gnuradio-e5473181c0df89735a65be5b00d27433fa0b4031.tar.gz gnuradio-e5473181c0df89735a65be5b00d27433fa0b4031.tar.bz2 gnuradio-e5473181c0df89735a65be5b00d27433fa0b4031.zip |
add support for --enable-guile
Diffstat (limited to 'gr-howto-write-a-block/config/gr_standalone.m4')
-rw-r--r-- | gr-howto-write-a-block/config/gr_standalone.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gr-howto-write-a-block/config/gr_standalone.m4 b/gr-howto-write-a-block/config/gr_standalone.m4 index 3f8ddf1d6..0e2ded584 100644 --- a/gr-howto-write-a-block/config/gr_standalone.m4 +++ b/gr-howto-write-a-block/config/gr_standalone.m4 @@ -125,6 +125,23 @@ m4_define([GR_STANDALONE], ) AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes]) + AC_ARG_ENABLE([guile], + [AS_HELP_STRING([--enable-guile], + [generate SWIG/Guile components (default is yes)])], + [case "${enableval}" in + yes) enable_guile=yes ;; + no) enable_guile=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-guile]) ;; + esac], + [enable_guile=no] + ) + AM_CONDITIONAL([GUILE], [test x$enable_guile = xyes]) + + dnl see if GUILE is installed + if test x${enable_guile} == xyes; then + AC_PATH_PROG(GUILE,guile) + fi + dnl Define where to look for cppunit includes and libs dnl sets CPPUNIT_CFLAGS and CPPUNIT_LIBS dnl Try using pkg-config first, then fall back to cppunit-config. |