Hey folks,

Here's a patch to turn on the big heap for systems with 8-byte pointers.

Thoughts?

C.J.

Index: configure.in
===================================================================
--- configure.in	(revision 95585)
+++ configure.in	(working copy)
@@ -708,7 +708,13 @@
 		;;
 esac
 
-AC_ARG_WITH(large-heap, [  --with-large-heap=yes,no    Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=no])
+is_eight_byte_pointer=no
+
+if test "x$ac_cv_sizeof_void_p" = "x8"; then
+   is_eight_byte_pointer=yes
+fi
+
+AC_ARG_WITH(large-heap, [  --with-large-heap=yes,no    Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=$is_eight_byte_pointer])
 if test "x$large_heap" = "xyes"; then
    echo "FOO"
    CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
@@ -2261,6 +2267,7 @@
 	libgdiplus:  $libgdiplus_msg
 	zlib:        $zlib_msg
 	oprofile:    $OPROFILE
+        large heap:  $large_heap
 	$disabled
 
 "
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 95585)
+++ ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2008-02-13T0943  C.J. Adams-Collier  <[EMAIL PROTECTED]>
+	* configure.in
+	- defining variable $is_eight_byte_pointer based on value of
+	  $ac_cv_sizeof_void_p
+	- using $is_eight_byte_pointer to determine whether large heap is
+	  enabled, rather than defaulting to "no"
+	- displaying "large heap" status in configuration summary
+
 2008-02-05  Zoltan Varga  <[EMAIL PROTECTED]>
 
 	* runtime/Makefile.am: Update after the changes to mcs/Makefile.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to