#!/bin/sh
# @function install libevent
function InstallH5LibEvent()
{
    ShowResult "[green]正在安装LibEvent库... [/green]" 1
    
    # install libevent
    cd ${_PATH_COMPILATION_}
    eval rm -rf ./libevent-2.* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar zxvf ${_PATH_SOFTWARE_}/libevent-2.* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd libevent-2.* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure --disable-openssl ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}