Currently do_autogen.sh does not allow to pass parameters
of configure to disable/enable components during building, which is not
flexible, this patch add the ability to it.
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
verbose=0
profile=0
CONFIGURE_FLAGS="--disable-static --with-lttng"
-while getopts "d:e:hHrTPJLjpcvO:" flag
+while getopts "d:e:hHrTPJLjpcvO:C:" flag
do
case $flag in
d) debug_level=$OPTARG;;
c) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-cryptopp --without-nss";;
+ C) CONFIGURE_FLAGS="$CONFIGURE_FLAGS $OPTARG";;
+
P) profile=1;;
p) with_profiler="--with-profiler" ;;