- # Don't do mblock if pmt skipped
- # There *has* to be a better way to check if a value is in a string
- for dir in $skipped_dirs
- do
- if test x$dir = xpmt; then
- AC_MSG_RESULT([Component mblock requires pmt, which is not being built.])
- passed=no
- fi
- done
-
- AC_PATH_PROG(GUILE,guile)
- if test "$GUILE" = "" ; then
- AC_MSG_RESULT([Component mblock requires guile, which was not found.])
- passed=no
+ dnl If execution gets to here, $passed will be:
+ dnl with : if the --with code didn't error out
+ dnl yes : if the --enable code passed muster and all dependencies are met
+ dnl no : otherwise
+ if test $passed = yes; then
+ dnl Don't do mblock if guile not available
+ GRC_CHECK_GUILE(mblock)
+ fi
+ if test $passed != with; then
+ dnl how and where to find INCLUDES and LA
+ mblock_INCLUDES="-I\${abs_top_srcdir}/mblock/src/lib"
+ mblock_LA="\${abs_top_builddir}/mblock/src/lib/libmblock.la"