Browse Source

Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>

	* configure.in: introduce the --enable-small-config option
	to reduce runtime requirements (and capabilities).


svn path=/trunk/mono/; revision=153127
Paolo Molaro 16 years ago
parent
commit
27bd00a8a8
3 changed files with 23 additions and 0 deletions
  1. 6 0
      ChangeLog
  2. 11 0
      README
  3. 6 0
      configure.in

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+
+Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>
+
+	* configure.in: introduce the --enable-small-config option
+	to reduce runtime requirements (and capabilities).
+
 2010-03-04  Zoltan Varga  <[email protected]>
 
 	* Makefile.am (DIST_SUBDIRS): Add eglib.

+ 11 - 0
README

@@ -259,6 +259,17 @@ This is Mono.
 
 		This value is set to `no' by default.
 
+	--enable-small-config=yes,no
+
+		Enable some tweaks to reduce memory usage and disk footprint at
+		the expense of some capabilities. Typically this means that the
+		number of threads that can be created is limited (256), that the
+		maxmimum heap size is also reduced (256 MB) and other such limitations
+		that still make mono useful, but more suitable to embedded devices
+		(like mobile phones).
+
+		This value is set to `no' by default.
+
 	--with-ikvm-native=yes,no
 
 		Controls whether the IKVM JNI interface library is

+ 6 - 0
configure.in

@@ -636,6 +636,12 @@ if test "x$with_xen_opt" = "xyes"; then
 fi
 
 AC_ARG_ENABLE(quiet-build, [  --enable-quiet-build  Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
+AC_ARG_ENABLE(small-config, [  --enable-small-config Enable tweaks to reduce requirements (and capabilities)], enable_small_config=$enableval, enable_small_config=no)
+
+if test x$enable_small_config = xyes; then
+	AC_DEFINE(MONO_SMALL_CONFIG,1,[Reduce runtime requirements (and capabilities)])
+	CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DSMALL_CONFIG"
+fi
 
 DISABLED_FEATURES=none