diff options
author | Nikolay Igotti <olonho@chromium.org> | 2013-02-21 17:50:03 +0400 |
---|---|---|
committer | Nikolay Igotti <olonho@chromium.org> | 2013-02-21 18:03:30 +0400 |
commit | 8f7a7a74e62e049e136d1b97d6ff60343fc820d2 (patch) | |
tree | e6f464d32ad25de007c25a7ac5be20a157f0aa36 /configure.in | |
parent | 5079328f9d1b705eb131e43384ab1d4295f091da (diff) |
Generic jumptables support (needed for ARM NaCl port),
and ARM port support for that.
Code submitted under MIT/X11 license.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in b/configure.in index f01073312ce..acf5988dc3a 100644 --- a/configure.in +++ b/configure.in @@ -237,6 +237,11 @@ case "$host" in libdl="-ldl" libgc_threads=pthreads use_sigposix=yes + if test "x$cross_compiling" != "xno"; then + # to bypass the underscore linker check, not + # available during cross-compilation + mono_cv_uscore=no + fi ;; *-*-nacl*) host_win32=no @@ -555,6 +560,8 @@ AC_ARG_WITH(mcs-path, [ --with-mcs-path=/path/to/mcs Specify an alternate fi ) +AC_ARG_WITH(jumptables, [ --with-jumptables=yes,no enable/disable support for jumptables (ARM-only for now) (defaults to no)],[],[with_jumptables=no]) + # # A sanity check to catch cases where the package was unpacked # with an ancient tar program (Solaris) @@ -2488,6 +2495,11 @@ case "$host" in JIT_SUPPORTED=yes sgen_supported=true AOT_SUPPORTED="yes" + if test "x$cross_compiling" != "xno"; then + # Provide sane defaults when cross-compiling + CPPFLAGS="$CPPFLAGS -DARM_FPU_VFP=1 -D__ARM_EABI__ -DHAVE_ARMV6=1" + NESTED_LIBGC_FLAGS="$NESTED_LIBGC_FLAGS -DHAVE_ARMV6" + fi ;; s390-*-linux*) TARGET=S390; @@ -2881,6 +2893,12 @@ if test ${TARGET} = ARM && test x$cross_compiling = xno && test x$enable_mcs_bui fi fi +if test ${TARGET} = ARM; then + if test "x${with_jumptables}" = "xyes"; then + AC_DEFINE(USE_JUMP_TABLES, 1, Use jump tables in JIT) + fi +fi + if test ${TARGET} = unknown; then CPPFLAGS="$CPPFLAGS -DNO_PORT" AC_MSG_WARN("mono has not been ported to $host: some things may not work.") |