2 #-------------------------------------------------------------------
3 # Modified version of GUILE_FLAGS in guile.m4
4 # from the official guile distribution
5 #-------------------------------------------------------------------
7 AC_DEFUN([GUILE_FLAGS],[
8 ## The GUILE_FLAGS macro.
9 ## First, let's just see if we can find Guile at all.
10 AC_MSG_CHECKING(for Guile)
11 guile-config link > /dev/null || {
12 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
15 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
16 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
17 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
18 GUILE_LDFLAGS="`guile-config link`"
19 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
20 AC_SUBST(GUILE_CFLAGS)
21 AC_SUBST(GUILE_LDFLAGS)