--- gforth/configure.in 2007/01/10 12:43:29 1.166 +++ gforth/configure.in 2007/01/21 23:22:28 1.168 @@ -97,6 +97,19 @@ dnl --without-peephole disables peepho dnl but slower images.], dnl PEEPHOLE="$withval") +AC_ARG_ENABLE(ec, + AC_HELP_STRING([--enable-ec], + [ Build gforth for systems without OS.]), + ,enable_ec=no) +if test "$enable_ec" = "yes"; then + echo "defining standalone system" + AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS]) + EC_MODE="true" +else + echo "defining hosted system" + EC_MODE="false" +fi + #variables mentioned in INSTALL AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.]) AC_ARG_VAR(FORTHSIZES, [Gforth command line options for the default stack and dictionary sizes (see INSTALL).]) @@ -139,6 +152,7 @@ test "$GCC" = "yes" || AC_MSG_ERROR(Gfor AC_SUBST(CC) AC_SUBST(DEBUGFLAG) +AC_SUBST(EC_MODE) AC_MSG_CHECKING(make type) make_type=`make -v 2>&1|grep 'ake'|sed 's/ake .*/ake/'`