[Gc] A stupid question about configure and -DCONFIG_LARGE

Petter Urkedal petter.urkedal at nordita.dk
Sat Mar 11 04:34:05 PST 2006

On 2006-03-11, Lothar Scholz wrote:
> Hello,
> sorry i never used autoconf so this question is a stupid one.
> How can i pass the option for -DCONFIG_LARGE to the configure script ?
> a ./configure --help only shows options for parallel mark and misc.
> threads modes.

Dear Lothar,

There are two ways.  You can add it to the arguments as

    ./configure CPPFLAGS="-DCONFIG_LARGE"

or you can 'export CPPFLAGS="-DCONFIG_LARGE' before you run ./configure.

Dear Hans,

Below is a patch for configure.ac which adds --enable-large-config and
fixes a blunder I made previously.  It's for 7.0alpha5.

Best regards,
Petter Urkedal

--- gc7.0alpha5/configure.ac    2005-09-02 00:12:18.000000000 +0200
+++ gc7.0alpha5.fixes/configure.ac      2006-03-11 13:24:37.000000000 +0100
@@ -400,6 +400,13 @@

+    [AC_HELP_STRING([--enable-large-config],
+        [Tunes the collector for unusually large heaps.  Necessary for heaps larger than about 500 MB on most machines.  Recommended for heaps larger than about 64 MB.])])
+if test x"$enable_large_config" = xyes; then
+    AC_DEFINE([LARGE_CONFIG], 1, [Tunes the collector for large heaps.])

 dnl Interface Selection
 dnl -------------------
@@ -407,13 +414,12 @@
 dnl By default, make the library as general as possible.

 dnl :FIXME: gcj does not work as of gc-7.0_alpha2, so default set to no.
        [Enable support for gcj.])])
-    [test x"$enable_gcj_support" != xno])
-if test x"$enable_gcj_support" != xno; then
+    [test x"$enable_gcj_support" = xyes])
+if test x"$enable_gcj_support" = xyes; then
     AC_DEFINE(GC_GCJ_SUPPORT, 1, [Define to include support for gcj])

More information about the Gc mailing list