<commit_before>#
# Install boost libraries from source
#

if (NOT boost_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include (ExternalProject)
include (ExternalSource)

include (python)

external_source (boost
    1_51_0
    boost_1_51_0.tar.gz
    http://downloads.sourceforge.net/project/boost/boost/1.51.0)

message ("Installing ${boost_NAME} into FlyEM build area: ${FLYEM_BUILD_DIR} ...")
ExternalProject_Add(${boost_NAME}
    DEPENDS ${python_NAME}
    PREFIX ${FLYEM_BUILD_DIR}
    URL ${boost_URL}
    UPDATE_COMMAND ""
    PATCH_COMMAND ""
    CONFIGURE_COMMAND ./bootstrap.sh --with-python=${PYTHON_EXE} --prefix=${FLYEM_BUILD_DIR}
    BUILD_COMMAND ./b2 install
    BUILD_IN_SOURCE 1
    INSTALL_COMMAND ""
)

endif (NOT boost_NAME)<commit_msg>Add arcane boost compile flags to find zlib and ignore bzip2<commit_after>#
# Install boost libraries from source
#

if (NOT boost_NAME)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include (ExternalProject)
include (ExternalSource)

include (python)
include (zlib)

include_directories (${FLYEM_BUILD_DIR}/include)

external_source (boost
    1_51_0
    boost_1_51_0.tar.gz
    http://downloads.sourceforge.net/project/boost/boost/1.51.0)

message ("Installing ${boost_NAME} into FlyEM build area: ${FLYEM_BUILD_DIR} ...")
ExternalProject_Add(${boost_NAME}
    DEPENDS ${python_NAME} ${zlib_NAME}
    PREFIX ${FLYEM_BUILD_DIR}
    URL ${boost_URL}
    UPDATE_COMMAND ""
    PATCH_COMMAND ""
    CONFIGURE_COMMAND ./bootstrap.sh --with-python=${PYTHON_EXE} --prefix=${FLYEM_BUILD_DIR}
    BUILD_COMMAND ./b2 -sNO_BZIP2=1 -sZLIB_INCLUDE=${FLYEM_BUILD_DIR}/include -sZLIB_SOURCE=${zlib_SRC_DIR} install
    BUILD_IN_SOURCE 1
    INSTALL_COMMAND ""
)

endif (NOT boost_NAME)
{'fraction_non_alphanumeric': 0.1140861466821886, 'fraction_numerical': 0.02037252619324796, 'mean_word_length': 4.673267326732673, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5772358', 'n_tokens_mistral': 645, 'n_tokens_neox': 621, 'n_words': 121}