version 1.279, 2010/07/25 15:33:06
|
version 1.286, 2010/12/27 18:13:39
|
Line 20 dnl Process this file with autoconf to p
|
Line 20 dnl Process this file with autoconf to p
|
|
|
dnl We use some automake macros here, |
dnl We use some automake macros here, |
dnl but don't use automake for creating Makefile.in |
dnl but don't use automake for creating Makefile.in |
AC_INIT([gforth],[0.7.0-20100725],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_INIT([gforth],[0.7.9-20101227],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) |
AC_PREREQ(2.54) |
AC_PREREQ(2.54) |
#snapshots have numbers major.minor.release-YYYYMMDD |
#snapshots have numbers major.minor.release-YYYYMMDD |
#note that lexicographic ordering must be heeded. |
#note that lexicographic ordering must be heeded. |
#I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! |
#I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! |
UPDATED="November 8, 2008" |
UPDATED="December 27, 2010" |
AC_SUBST(UPDATED) |
AC_SUBST(UPDATED) |
AC_CONFIG_HEADERS(engine/config.h) |
AC_CONFIG_HEADERS(engine/config.h) |
|
|
Line 242 case "$host_cpu" in
|
Line 242 case "$host_cpu" in
|
;; |
;; |
i486) |
i486) |
machine=386 |
machine=386 |
CFLAGS="$CFLAGS -fomit-frame-pointer -fforce-addr -m486" |
CFLAGS="$CFLAGS -fomit-frame-pointer -fforce-addr" |
|
CFLAGS_1="$CFLAGS" |
|
CFLAGS="$CFLAGS -march=i486" |
|
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -m486") |
|
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1") |
;; |
;; |
i*86) |
i*86) |
machine=386 |
machine=386 |
CFLAGS="$CFLAGS -fomit-frame-pointer -fforce-addr" |
CFLAGS="$CFLAGS -fomit-frame-pointer -fforce-addr" |
CFLAGS_1="$CFLAGS" |
CFLAGS_1="$CFLAGS" |
CFLAGS="$CFLAGS -march=pentium" |
CFLAGS="$CFLAGS -march=pentium -mtune=generic" |
|
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -march=pentium") |
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -m486") |
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1 -m486") |
|
AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1") |
;; |
;; |
x86_64) |
x86_64) |
case $CC |
case $CC |
Line 282 case "$host_cpu" in
|
Line 288 case "$host_cpu" in
|
;; |
;; |
mips*) |
mips*) |
machine=mips |
machine=mips |
|
AC_LIBOBJ(../arch/mips/check_prim) |
#dynamic native code has the following problems on MIPS: |
#dynamic native code has the following problems on MIPS: |
# |
# |
#1) J/JAL seems relocatable, but is are only |
#1) J/JAL seems relocatable, but is are only |
Line 849 then
|
Line 856 then
|
no_dynamic_default=1 |
no_dynamic_default=1 |
AC_MSG_WARN(Disabling default dynamic native code generation) |
AC_MSG_WARN(Disabling default dynamic native code generation) |
fi |
fi |
AC_DEFINE_UNQUOTED(SKIP16,((void)0),statement for skipping 16 bytes) |
AC_DEFINE_UNQUOTED(SKIP16,asm(""),statement for skipping 16 bytes) |
else |
else |
AC_DEFINE_UNQUOTED(SKIP16,asm("$skipcode"),statement for skipping 16 bytes) |
AC_DEFINE_UNQUOTED(SKIP16,asm("$skipcode"),statement for skipping 16 bytes) |
fi |
fi |
Line 910 if test -z "$FFI_H_NAME"; then
|
Line 917 if test -z "$FFI_H_NAME"; then
|
AC_CHECK_HEADER(ffi/ffi.h,FFI_H_NAME=ffi/ffi.h,) |
AC_CHECK_HEADER(ffi/ffi.h,FFI_H_NAME=ffi/ffi.h,) |
fi |
fi |
AC_SUBST(FFI_H_NAME) |
AC_SUBST(FFI_H_NAME) |
AC_CHECK_LIB(ffi,ffi_call) |
AC_CHECK_LIB(ffi,ffi_call,LIBS="$LIBS") |
if test -n "$FFI_H_NAME" -a $ac_cv_lib_ffi_ffi_call = yes |
if test -n "$FFI_H_NAME" -a $ac_cv_lib_ffi_ffi_call = yes |
then |
then |
LIBFFIFLAG="true" |
LIBFFIFLAG="true" |
Line 920 else
|
Line 927 else
|
fi |
fi |
#check for ffcall libraries |
#check for ffcall libraries |
#unfortunately, these four calls are separated out into a library each. |
#unfortunately, these four calls are separated out into a library each. |
AC_CHECK_LIB(avcall,__builtin_avcall) |
AC_CHECK_LIB(avcall,__builtin_avcall,LIBS="$LIBS") |
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) |