Avoid thumb->arm trampolines when calling between llvm methods.
[mono.git] / configure.in
index b7fb0bc7fa4942c9c102dfc1739e3f4772c6b422..540f0309b697d75319d858b8cce07e264e193b00 100644 (file)
@@ -2597,26 +2597,14 @@ AC_ARG_WITH(moonlight, [  --with-moonlight=yes|no|only         If you want to bu
         MOONLIGHT_DEFINES="-DMOONLIGHT -DDISABLE_ASSEMBLY_REMAPPING "
        fi
 ], [with_moonlight=no])
+AC_SUBST(MOONLIGHT_DEFINES)
 
-MOONLIGHT_GC=boehm
 AC_ARG_WITH(moon_gc, [  --with-moon-gc=boehm,sgen              Select the gc to use with Moonlight (defaults to boehm)],[
+       if test "x$with_moon_gc" != "xsgen"; then
+               with_moon_gc=boehm
+       fi
 ], [with_moon_gc=boehm])
 
-case "x$with_moon_gc" in
-       xboehm)
-               MOONLIGHT_GC=boehm
-               MOONLIGHT_DEFINES="$MOONLIGHT_DEFINES $BOEHM_DEFINES"
-       ;;
-       xsgen)
-               MOONLIGHT_GC=sgen
-               MOONLIGHT_DEFINES="$MOONLIGHT_DEFINES $SGEN_DEFINES"
-       ;;
-       *)
-               AC_MSG_ERROR([Invalid argument to --with-moon-gc.]) ;;
-esac
-
-AC_SUBST(MOONLIGHT_DEFINES)
-
 AC_CHECK_HEADER([malloc.h], 
                [AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1], 
                        [Define to 1 if you have /usr/include/malloc.h.])],,)