1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

auto install depends software for ubuntu or centos.

This commit is contained in:
winlin 2013-12-10 10:09:29 +08:00
parent 5d50bdc3fc
commit bb90881489
4 changed files with 178 additions and 8 deletions

11
trunk/configure vendored
View file

@ -15,14 +15,15 @@ BLACK="\\e[0m"
# parse user options.
. auto/options.sh
# if specifies http, requires sudo to install the CherryPy.
if [ $SRS_HTTP = YES ]; then
function require_sudoer()
{
sudo echo "" >/dev/null 2>&1
ret=$?; if [[ 0 -ne $ret ]]; then echo
"--with-http requires sudoer, ret=$ret";
ret=$?; if [[ 0 -ne $ret ]]; then
echo "\"$1\" require sudoer failed. ret=$ret";
exit $ret;
fi
fi
}
# clean the exists
if [[ -f Makefile ]]; then