version 1.174, 2007/03/17 19:14:57
|
version 1.177, 2007/03/19 12:54:41
|
Line 118 AC_ARG_VAR(ac_cv_c_bigendian, [Is the ta
|
Line 118 AC_ARG_VAR(ac_cv_c_bigendian, [Is the ta
|
AC_ARG_VAR(no_dynamic_default, [run gforth with --dynamic (0) or --no-dynamic (1) by default]) |
AC_ARG_VAR(no_dynamic_default, [run gforth with --dynamic (0) or --no-dynamic (1) by default]) |
AC_ARG_VAR(skipcode, [assembly code for skipping 16 bytes of code]) |
AC_ARG_VAR(skipcode, [assembly code for skipping 16 bytes of code]) |
AC_ARG_VAR(asmcomment, [assembler comment start string]) |
AC_ARG_VAR(asmcomment, [assembler comment start string]) |
|
AC_ARG_VAR(arm_cacheflush, [file containing ARM cacheflush function (without .c)]) |
|
|
#set up feature test macros, so the tests get them right: |
#set up feature test macros, so the tests get them right: |
# turn on all POSIX, SUSv3, and GNU features if available |
# turn on all POSIX, SUSv3, and GNU features if available |
Line 172 case "$host_cpu" in
|
Line 173 case "$host_cpu" in
|
arm*) |
arm*) |
machine=arm |
machine=arm |
CFLAGS="$CFLAGS -fomit-frame-pointer" |
CFLAGS="$CFLAGS -fomit-frame-pointer" |
if test -z $no_dynamic_default; then |
if test -z $arm_cacheflush; then |
no_dynamic_default=1 |
no_dynamic_default=1 |
|
arm_cacheflush=arch/arm/cacheflush0 |
AC_MSG_WARN([No I-cache flush code known, disabling dynamic native code generation]) |
AC_MSG_WARN([No I-cache flush code known, disabling dynamic native code generation]) |
fi |
fi |
|
AC_LIBSOURCES([../arch/arm/cacheflush0, ../arch/arm/cacheflush1, ../arch/arm/cacheflush2]) |
|
AC_LIBOBJ(../$arm_cacheflush) |
|
#longer skipcodes lead to problems on ARM, and it uses |
|
#only 4-byte alignment anyway |
|
test "$skipcode" || skipcode="nop" |
;; |
;; |
hppa*) |
hppa*) |
machine=hppa |
machine=hppa |
Line 643 if test -z "$asmcomment"; then
|
Line 650 if test -z "$asmcomment"; then
|
asmcomment=no |
asmcomment=no |
CFLAGS_1="$CFLAGS" |
CFLAGS_1="$CFLAGS" |
CFLAGS="$CFLAGS $ENGINE_FLAGS" |
CFLAGS="$CFLAGS $ENGINE_FLAGS" |
for i in '"# "' '"! "'; do |
for i in '"# "' '"! "' '"; "'; do |
AC_TRY_COMPILE(,[asm($i"fluffystunk");],asmcomment=$i; break,) |
AC_TRY_COMPILE(,[asm($i"fluffystunk");],asmcomment=$i; break,) |
done |
done |
CFLAGS=$CFLAGS_1 |
CFLAGS=$CFLAGS_1 |