[Gc] A stupid question about configure and -DCONFIG_LARGE

Boehm, Hans hans.boehm at hp.com
Thu Mar 16 17:22:56 PST 2006


Thanks.

However, --enable-large-config is already in the 7.0alpha tree.

Note that I haven't been very good about releasing regular snapshots of
the 7.0 tree.  However, the current CVS source tree is on sourceforge.
The main GC page gives instructions for retrieving a copy via cvs.  It
can be browsed at http://cvs.sourceforge.net/viewcvs.py/bdwgc/bdwgc/ .
Currently Tom Tromey, Paolo Malaro, and I have write access, though so
far, I think I'm still the only one who has checked code into the tree.

I'm not sure I understand what the second half of the patch does,
probably because I'm not enough of an autoconf/automake expert.  The
original intent was to turn gcj support on by default.  Does your patch
still do that?

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Petter Urkedal
> Sent: Saturday, March 11, 2006 4:34 AM
> To: gc at napali.hpl.hp.com
> Subject: Re: [Gc] A stupid question about configure and -DCONFIG_LARGE
> 
> 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_DEFINE(NO_EXECUTE_PERMISSION)
>  AC_DEFINE(ALL_INTERIOR_POINTERS)
> 
> +AC_ARG_ENABLE([large-config],
> +    [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.]) fi
> +
> 
>  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_gcj_support=no
>  AC_ARG_ENABLE(gcj-support,
>      [AC_HELP_STRING([--enable-gcj-support],
>         [Enable support for gcj.])])
>  AM_CONDITIONAL(ENABLE_GCJ_SUPPORT,
> -    [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])  fi _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 



More information about the Gc mailing list