--without-ffmpeg disable the ffmpeg transcoding feature.
--without-librtmp disable srs-librtmp, library for client.
--without-bwtc disable srs bandwidth test client tool.
...
...
@@ -146,6 +171,7 @@ if [ $help = yes ]; then
--without-gmp do not build memory profile for srs with gperf tools.
--without-gcp do not build cpu profile for srs with gperf tools.
--without-gprof do not build srs with gprof(GNU profile tool).
--without-arm-ubuntu12 do not build srs on ubuntu12 for armhf(v7cpu).
--jobs[=N] Allow N jobs at once; infinite jobs with no arg.
used for make in the configure, for example, to make ffmpeg.
...
...
@@ -181,6 +207,21 @@ if [ $__gperf_slow = YES ]; then if [ $SRS_GPROF = YES ]; then
echo"gmc/gmp/gcp not compatible with gprof, see: ./configure --help"; __check_ok=NO;
fi fi
# check arm, if arm enabled, only allow st/ssl/librtmp,
# user should disable all other features
if[$SRS_ARM_UBUNTU12= YES ]; then
if[$SRS_FFMPEG= YES ]; then echo"ffmpeg for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_HTTP_CALLBACK= YES ]; then echo"http-callback for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_BWTC= YES ]; then echo"bwtc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_RESEARCH= YES ]; then echo"research for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_UTEST= YES ]; then echo"utest for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF= YES ]; then echo"gperf for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_MC= YES ]; then echo"gmc for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_MP= YES ]; then echo"gmp for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_CP= YES ]; then echo"gcp for arm is not available, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPROF= YES ]; then echo"gprof for arm is not available, see: ./configure --help"; __check_ok=NO; fi
fi
# check variable neccessary
if[$SRS_HLS= RESERVED ]; then echo"you must specifies the hls, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_SSL= RESERVED ]; then echo"you must specifies the ssl, see: ./configure --help"; __check_ok=NO; fi
...
...
@@ -195,6 +236,7 @@ if [ $SRS_GPERF_MC = RESERVED ]; then echo "you must specifies the gperf-mc, see
if[$SRS_GPERF_MP= RESERVED ]; then echo"you must specifies the gperf-mp, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPERF_CP= RESERVED ]; then echo"you must specifies the gperf-cp, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_GPROF= RESERVED ]; then echo"you must specifies the gprof, see: ./configure --help"; __check_ok=NO; fi
if[$SRS_ARM_UBUNTU12= RESERVED ]; then echo"you must specifies the arm-ubuntu12, see: ./configure --help"; __check_ok=NO; fi
if[$__check_ok= NO ]; then
exit 1;
fi
...
...
@@ -214,5 +256,6 @@ if [ $SRS_GPERF_MC = YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gmc"; el
if[$SRS_GPERF_MP= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gmp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gmp"; fi
if[$SRS_GPERF_CP= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gcp"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gcp"; fi
if[$SRS_GPROF= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-gprof"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-gprof"; fi
if[$SRS_ARM_UBUNTU12= YES ]; then SRS_CONFIGURE="${SRS_CONFIGURE} --with-arm-ubuntu12"; else SRS_CONFIGURE="${SRS_CONFIGURE} --without-arm-ubuntu12"; fi