| # Find installed Gforth |
# Find installed Gforth |
| AC_MSG_CHECKING([for gforth]) |
AC_MSG_CHECKING([for gforth]) |
| GFORTH="`which gforth 2>/dev/null`" |
GFORTH="`which gforth 2>/dev/null`" |
| if test ! -z "$GFORTH"; then GFORTH="$GFORTH -m4M --die-on-signal" ; fi |
if test ! -z "$GFORTH"; then GFORTH="$GFORTH -m4M --die-on-signal -i `gforth --debug -e bye 2>&1 |grep "Opened image file: "|sed 's/Opened image file: //'`" ; fi |
| AC_SUBST(GFORTH) |
AC_SUBST(GFORTH) |
| AC_DEFINE_UNQUOTED(GFORTH,"$GFORTH",[How to invoke gforth]) |
AC_DEFINE_UNQUOTED(GFORTH,"$GFORTH",[How to invoke gforth]) |
| AC_MSG_RESULT($GFORTH) |
AC_MSG_RESULT($GFORTH) |