595 |
|
] |
596 |
|
) |
597 |
|
|
598 |
– |
dnl Check if we have POSIX shared memory support |
599 |
– |
AC_CACHE_CHECK([whether POSIX shared memory is working], |
600 |
– |
ac_cv_have_posix_shm, [ |
601 |
– |
AC_LANG_SAVE |
602 |
– |
AC_LANG_CPLUSPLUS |
603 |
– |
AC_TRY_RUN([ |
604 |
– |
#define HAVE_POSIX_SHM |
605 |
– |
#include "vm_alloc.cpp" |
606 |
– |
int main(void) { /* returns 0 if we have working POSIX shm */ |
607 |
– |
if (vm_init() < 0) exit(2); |
608 |
– |
char *m1 = (char *)vm_acquire(32768, VM_MAP_DEFAULT | VM_MAP_33BIT); |
609 |
– |
if (m1 == VM_MAP_FAILED) exit(3); |
610 |
– |
vm_exit(); exit(0); |
611 |
– |
} |
612 |
– |
], ac_cv_have_posix_shm=yes, ac_cv_have_posix_shm=no, |
613 |
– |
dnl When cross-compiling, do not assume anything. |
614 |
– |
ac_cv_have_posix_shm="guessing no" |
615 |
– |
) |
616 |
– |
AC_LANG_RESTORE |
617 |
– |
] |
618 |
– |
) |
619 |
– |
AC_TRANSLATE_DEFINE(HAVE_POSIX_SHM, "$ac_cv_have_posix_shm", |
620 |
– |
[Define if your system supports POSIX shared memory.]) |
621 |
– |
|
622 |
– |
dnl Check if we have working 33-bit memory addressing |
623 |
– |
AC_CACHE_CHECK([whether 33-bit memory addressing is working], |
624 |
– |
ac_cv_have_33bit_addressing, [ |
625 |
– |
AC_LANG_SAVE |
626 |
– |
AC_LANG_CPLUSPLUS |
627 |
– |
AC_TRY_RUN([ |
628 |
– |
#define USE_33BIT_ADDRESSING 1 |
629 |
– |
#include "vm_alloc.cpp" |
630 |
– |
int main(void) { /* returns 0 if we have working 33-bit addressing */ |
631 |
– |
if (sizeof(void *) < 8) exit(1); |
632 |
– |
if (vm_init() < 0) exit(2); |
633 |
– |
volatile char *m1 = (char *)vm_acquire(32768, VM_MAP_DEFAULT | VM_MAP_33BIT); |
634 |
– |
if (m1 == VM_MAP_FAILED) exit(3); |
635 |
– |
volatile char *m2 = m1 + (1L << 32); |
636 |
– |
m1[0] = 0x12; if (m2[0] != 0x12) exit(4); |
637 |
– |
m2[0] = 0x34; if (m1[0] != 0x34) exit(5); |
638 |
– |
vm_exit(); exit(0); |
639 |
– |
} |
640 |
– |
], ac_cv_have_33bit_addressing=yes, ac_cv_have_33bit_addressing=no, |
641 |
– |
dnl When cross-compiling, do not assume anything. |
642 |
– |
ac_cv_have_33bit_addressing="guessing no" |
643 |
– |
) |
644 |
– |
AC_LANG_RESTORE |
645 |
– |
] |
646 |
– |
) |
647 |
– |
|
598 |
|
dnl Check signal handlers need to be reinstalled |
599 |
|
AC_CACHE_CHECK([whether signal handlers need to be reinstalled], |
600 |
|
ac_cv_signal_need_reinstall, [ |
994 |
|
DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS" |
995 |
|
JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS" |
996 |
|
CAN_JIT=yes |
1047 |
– |
WANT_33BIT_ADDRESSING=yes |
997 |
|
fi |
998 |
|
elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then |
999 |
|
dnl SPARC CPU |
1050 |
|
JITSRCS="" |
1051 |
|
fi |
1052 |
|
|
1104 |
– |
dnl Use 33-bit memory addressing? |
1105 |
– |
if [[ "$ac_cv_have_33bit_addressing:$WANT_33BIT_ADDRESSING" = "yes:yes" ]]; then |
1106 |
– |
use_33bit_addressing=yes |
1107 |
– |
fi |
1108 |
– |
AC_TRANSLATE_DEFINE(USE_33BIT_ADDRESSING, "$use_33bit_addressing", |
1109 |
– |
[Define to use 33-bit memory addressing on 64-bit JIT capable systems.]) |
1110 |
– |
|
1053 |
|
dnl Utility macro used by next two tests. |
1054 |
|
dnl AC_EXAMINE_OBJECT(C source code, |
1055 |
|
dnl commands examining object file, |