version 1.234, 2008/07/29 21:17:49
|
version 1.236, 2008/08/09 14:39:09
|
Line 108 AC_ARG_VAR(FORTHSIZES, [Gforth command l
|
Line 108 AC_ARG_VAR(FORTHSIZES, [Gforth command l
|
AC_ARG_VAR(STACK_CACHE_REGS, [number of registers in the maximum stack cache state for gforth-fast and gforth-native (default platform-dependent).]) |
AC_ARG_VAR(STACK_CACHE_REGS, [number of registers in the maximum stack cache state for gforth-fast and gforth-native (default platform-dependent).]) |
AC_ARG_VAR(STACK_CACHE_DEFAULT_FAST, [number of registers in the default stack cache state for gforth-fast and gforth-native (default 1).]) |
AC_ARG_VAR(STACK_CACHE_DEFAULT_FAST, [number of registers in the default stack cache state for gforth-fast and gforth-native (default 1).]) |
AC_ARG_VAR(GCC_PR15242_WORKAROUND, [Force the enabling (1) or disabling (0) of a workaround for a gcc-3.x performance bug (default unset: use workaround for gcc-3.x)]) |
AC_ARG_VAR(GCC_PR15242_WORKAROUND, [Force the enabling (1) or disabling (0) of a workaround for a gcc-3.x performance bug (default unset: use workaround for gcc-3.x)]) |
|
AC_ARG_VAR(LIBCC_BUILD_SRC, [(Additional) libcc interface source files that should be processed on building and installation (default none)]) |
|
|
AC_ARG_VAR(ac_cv_sizeof_char_p, [sizeof(char *)]) |
AC_ARG_VAR(ac_cv_sizeof_char_p, [sizeof(char *)]) |
AC_ARG_VAR(ac_cv_sizeof_void_p, [sizeof(void *)]) |
AC_ARG_VAR(ac_cv_sizeof_void_p, [sizeof(void *)]) |
Line 808 dnl This check is just for making later
|
Line 809 dnl This check is just for making later
|
dnl using sin here is no good idea since it is built-into gcc and typechecked |
dnl using sin here is no good idea since it is built-into gcc and typechecked |
AC_CHECK_LIB(m,asin) |
AC_CHECK_LIB(m,asin) |
AC_CHECK_LIB(ltdl,lt_dlinit) |
AC_CHECK_LIB(ltdl,lt_dlinit) |
dnl check for libffi 2.x |
#check for libffi 2.x |
dnl AC_CHECK_LIB(ffi,ffi_call) |
AC_CHECK_LIB(ffi,ffi_call) |
dnl if test $ac_cv_lib_ffi_ffi_call = yes |
if test $ac_cv_lib_ffi_ffi_call = yes |
dnl then |
then |
dnl LIBFFIFLAG="true" |
LIBFFIFLAG="true" |
dnl FFCALLFLAG="false" |
LIBCC_BUILD_SRC="$LIBCC_BUILD_SRC libffi.fs" |
dnl OLDCALLFLAG="false" |
else |
dnl AC_DEFINE(HAS_LIBFFI,,[define this if you want to use the ffcall interface with libffi 2.0]) |
LIBFFIFLAG="false" |
dnl else |
fi |
dnl check for ffcall libraries |
#check for ffcall libraries |
dnl unfortunately, these four calls are separated out into a library each. |
#unfortunately, these four calls are separated out into a library each. |
dnl AC_CHECK_LIB(avcall,__builtin_avcall) |
AC_CHECK_LIB(avcall,__builtin_avcall) |
dnl AC_CHECK_LIB(callback,__vacall_r) |
dnl AC_CHECK_LIB(callback,__vacall_r) |
dnl AC_CHECK_LIB(vacall,vacall) |
dnl AC_CHECK_LIB(vacall,vacall) |
dnl AC_CHECK_LIB(trampoline,alloc_trampoline) |
dnl AC_CHECK_LIB(trampoline,alloc_trampoline) |
dnl LIBFFIFLAG="false" |
if test $ac_cv_lib_avcall___builtin_avcall = yes; then |
dnl FFCALLFLAG="false" |
FFCALLFLAG="true" |
dnl OLDCALLFLAG="true" |
LIBCC_BUILD_SRC="$LIBCC_BUILD_SRC fflib.fs" |
dnl 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]) |
else |
dnl test $ac_cv_lib_avcall___builtin_avcall = no && AC_DEFINE(HAS_OLDCALL,,[define this if you want to use the old call libraries]) |
FFCALLFLAG="false" |
dnl fi |
fi |
dnl AC_SUBST(LIBFFIFLAG) |
if test $LIBFFIFLAG = false -a $FFCALLFLAG = false; then |
dnl AC_SUBST(FFCALLFLAG) |
AC_MSG_WARN([The (old) lib.fs foreign function interface needs either libffi or the ffcall libraries]) |
dnl AC_SUBST(OLDCALLFLAG) |
fi |
|
AC_SUBST(LIBFFIFLAG) |
|
AC_SUBST(FFCALLFLAG) |
|
AC_SUBST(LIBCC_BUILD_SRC) |
if test "$host_os" != "nextstep3" |
if test "$host_os" != "nextstep3" |
then |
then |
AC_FUNC_MEMCMP |
AC_FUNC_MEMCMP |