--- gforth/configure.in 2003/08/08 05:56:37 1.127 +++ gforth/configure.in 2003/08/24 09:56:09 1.130 @@ -97,6 +97,16 @@ test "$GCC" = "yes" || AC_MSG_ERROR(Gfor AC_SUBST(CC) AC_SUBST(DEBUGFLAG) +AC_MSG_CHECKING(make type) +make_type=`make -v 2>&1|grep 'ake version'|sed 's/ version .*//'` + +GNUMAKE='#' +test "$make_type" = "GNU Make" && GNUMAKE='' + +AC_MSG_RESULT($make_type) + +AC_SUBST(GNUMAKE) + dnl gcc-3.2 seems to work fine now dnl AC_MSG_CHECKING(gcc version) dnl gcc_version=`$CC -v 2>&1|grep 'gcc version'|sed 's/.*gcc version //'` @@ -313,6 +323,12 @@ AC_TRY_COMPILE(,,ac_nocrossjumping=yes;E CFLAGS="$CFLAGS_1" AC_MSG_RESULT($ac_nocrossjumping) +# Try if GCC understands __attribute__((unused)) +AC_MSG_CHECKING([how to suppress 'unused variable' warnings]) +AC_TRY_COMPILE(,[int __attribute__((unused)) foo;], MAYBE_UNUSED='__attribute__((unused))',) +AC_DEFINE_UNQUOTED(MAYBE_UNUSED,$MAYBE_UNUSED,[attribute for possibly unused variables]) +AC_MSG_RESULT($MAYBE_UNUSED) + AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) AC_SUBST(asm_fs) @@ -440,8 +456,11 @@ AC_CHECK_LIB(callback,__vacall_r) AC_CHECK_LIB(vacall,vacall) AC_CHECK_LIB(trampoline,alloc_trampoline) FFCALLFLAG="false" -test $ac_cv_lib_avcall___builtin_avcall = yes && FFCALLFLAG="true" && AC_DEFINE(HAS_FFCALL,,[define this if you want to use the ffcall libraries]) +OLDCALLFLAG="true" +test $ac_cv_lib_avcall___builtin_avcall = yes && FFCALLFLAG="true" && OLDCALLFLAG="false" && AC_DEFINE(HAS_FFCALL,,[define this if you want to use the ffcall libraries]) +test $ac_cv_lib_avcall___builtin_avcall = no && AC_DEFINE(HAS_OLDCALL,,[define this if you want to use the old call libraries]) AC_SUBST(FFCALLFLAG) +AC_SUBST(OLDCALLFLAG) if test "$host_os" != "nextstep3" then AC_FUNC_MEMCMP