summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_standalone.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/config/gr_standalone.m4')
-rw-r--r--gr-howto-write-a-block/config/gr_standalone.m417
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.