<commit_before>#!/usr/bin/env bash
set -e
set -x
THISDIR=`dirname $0`
source ${THISDIR}/build-vars.sh

rm -rf ${TURBINE_INST}
if [ -f Makefile ]; then
    make clean
fi

if [ -z "$SKIP_AUTOTOOLS" ]; then
  rm -rf ./config.status ./autom4te.cache
  ./setup.sh
fi

EXTRA_ARGS=
if [ ! -z "$EXM_OPT_BUILD" ]; then
    EXTRA_ARGS+="--enable-fast"
fi

if [ ! -z "$ENABLE_MPE" ]; then
    EXTRA_ARGS+="--with-mpe"
fi

if [ ! -z "$EXM_CRAY" ] ; then
    export CC=gcc
    export CFLAGS="-g -O2"
    EXTRA_ARGS+="--enable-custom-mpi"
fi

if [ ! -z "$WITH_PYTHON" ] ; then
  EXTRA_ARGS+="--enable-python --with-python=${WITH_PYTHON}"
fi

if [ ! -z "$TCL_VERSION" ] ; then
  EXTRA_ARGS+="--with-tcl-version=$TCL_VERSION"
fi

if [ ! -z "$DISABLE_XPT" ]; then
    EXTRA_ARGS+=" --enable-checkpoint=no"
fi

./configure --with-adlb=${LB_INST} \
            ${CRAY_ARGS} \
            --with-mpi=${MPICH_INST} \
            --with-tcl=${TCL_INST} \
            --with-c-utils=${C_UTILS_INST} \
            --prefix=${TURBINE_INST} \
            ${EXTRA_ARGS}
#            --disable-log
make package -j ${MAKE_PARALLELISM}
make install
#make test_results<commit_msg>Fix gaps in configure args<commit_after>#!/usr/bin/env bash
set -e
set -x
THISDIR=`dirname $0`
source ${THISDIR}/build-vars.sh

rm -rf ${TURBINE_INST}
if [ -f Makefile ]; then
    make clean
fi

if [ -z "$SKIP_AUTOTOOLS" ]; then
  rm -rf ./config.status ./autom4te.cache
  ./setup.sh
fi

EXTRA_ARGS=
if [ ! -z "$EXM_OPT_BUILD" ]; then
    EXTRA_ARGS+=" --enable-fast"
fi

if [ ! -z "$ENABLE_MPE" ]; then
    EXTRA_ARGS+=" --with-mpe"
fi

if [ ! -z "$EXM_CRAY" ] ; then
    export CC=gcc
    export CFLAGS="-g -O2"
    EXTRA_ARGS+=" --enable-custom-mpi"
fi

if [ ! -z "$WITH_PYTHON" ] ; then
  EXTRA_ARGS+=" --enable-python --with-python=${WITH_PYTHON}"
fi

if [ ! -z "$TCL_VERSION" ] ; then
  EXTRA_ARGS+=" --with-tcl-version=$TCL_VERSION"
fi

if [ ! -z "$DISABLE_XPT" ]; then
    EXTRA_ARGS+=" --enable-checkpoint=no"
fi

./configure --with-adlb=${LB_INST} \
            ${CRAY_ARGS} \
            --with-mpi=${MPICH_INST} \
            --with-tcl=${TCL_INST} \
            --with-c-utils=${C_UTILS_INST} \
            --prefix=${TURBINE_INST} \
            ${EXTRA_ARGS}
#            --disable-log
make package -j ${MAKE_PARALLELISM}
make install
#make test_results
{'fraction_non_alphanumeric': 0.18307426597582038, 'fraction_numerical': 0.0025906735751295338, 'mean_word_length': 2.468562874251497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5157321', 'n_tokens_mistral': 961, 'n_tokens_neox': 936, 'n_words': 190}