#!/bin/sh
# @function install json-c
function InstallJSONc()
{
    ShowResult "[green]正在安装JSON-C... [/green]" 1
    
    # install
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./json-c-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar jxvf ${_PATH_SOFTWARE_}/json-c-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd json-c-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}