mescc: Environment setup.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 6 Sep 2019 21:24:23 +0000 (23:24 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 6 Sep 2019 21:24:23 +0000 (23:24 +0200)
* scripts/mescc.in (MES_ARENA, MES_MAX_ARENA, MES_STACK): Reduce defaults.
* build-aux/check.sh.in (MES_ARENA): Likewise.  Export them.
* build-aux/bootstrap.sh.in (MES_STACK): Likewise.
(MES_PREFIX): Set default.

build-aux/bootstrap.sh.in
build-aux/check.sh.in
build-aux/config.sh.in
scripts/mescc.in

index 6dd69bdb102bd57117a86f1a265a16228f7a2409..192508a7bb808f4df71948dfa640c3dbe74d5a4c 100644 (file)
 # along with GNU Mes.  If not, see <http://www.gnu.org/licenses/>.
 
 LANG=
-MES_ARENA=${MES_ARENA-100000000}
-MES_MAX_ARENA=${MES_MAX_ARENA-100000000}
-MES_STACK=${MES_STACK-500000}
+MES_ARENA=${MES_ARENA-20000000}
+export MES_ARENA
+MES_MAX_ARENA=${MES_MAX_ARENA-${MES_ARENA}}
+export MES_MAX_ARENA
+MES_STACK=${MES_STACK-5000000}
+export MES_STACK
+MES_PREFIX=${MES_PREFIX-$PWD}
 
 . build-aux/configure-lib.sh
 
index c01c92f2a01856ef9b106b2612301352f695e125..eaf1674a71c32aa3296afc4b4d8f10061fa3777a 100644 (file)
 
 set -e
 
+MES_ARENA=${MES_ARENA-20000000}
+export MES_ARENA
+MES_MAX_ARENA=${MES_MAX_ARENA-${MES_ARENA}}
+export MES_MAX_ARENA
+MES_STACK=${MES_STACK-5000000}
+export MES_STACK
+
 . ./config.sh
 
 if $courageous; then
index 56eccf9490b766831a683c8c091270e0e8a1146e..80a8df01ec6766d2760947abd724d0c429e3d200 100644 (file)
@@ -81,6 +81,8 @@ srcdir=${srcdir-"@srcdir@"}
 sysconfdir="@sysconfdir@"
 top_builddir="@top_builddir@"
 
+MES_PREFIX=${MES_PREFIX-$abs_top_srcdir}
+
 export PACKAGE
 export PACKAGE_NAME
 export PACKAGE_BUGREPORT
@@ -95,3 +97,4 @@ export courageous
 export srcdest
 export srcdir
 export GUILE_AUTO_COMPILE
+export MES_PREFIX
index 255c22f59bb2401230f6b0f7f9449271ebade687..504b3717a32d944c3f5e4304d41f24edf1f8af20 100644 (file)
@@ -22,10 +22,13 @@ if [ "$V" = 2 ]; then
     set -x
 fi
 
-MES_ARENA=${MES_ARENA-100000000}
+MES_ARENA=${MES_ARENA-20000000}
 export MES_ARENA
 
-MES_STACK=${MES_STACK-500000}
+MES_MAX_ARENA=${MES_MAX_ARENA-${MES_ARENA}}
+export MES_MAX_ARENA
+
+MES_STACK=${MES_STACK-5000000}
 export MES_STACK
 
 MES_PREFIX=${MES_PREFIX-@prefix@}