]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Allow do_autogen.sh to pass configure parameters
authorYunchuan Wen <yunchuanwen@ubuntukylin.com>
Mon, 3 Aug 2015 13:03:47 +0000 (13:03 +0000)
committerYunchuan Wen <yunchuanwen@ubuntukylin.com>
Mon, 3 Aug 2015 13:03:47 +0000 (13:03 +0000)
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>
do_autogen.sh

index 47b8611a670e22df8ac22d898f295e3cef6e09f7..cef9482108bac5a4cbc0eff4b55456082e7eeb1a 100755 (executable)
@@ -33,7 +33,7 @@ debug_level=0
 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;;
@@ -42,6 +42,8 @@ do
 
     c) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-cryptopp --without-nss";;
 
+    C) CONFIGURE_FLAGS="$CONFIGURE_FLAGS $OPTARG";;
+
     P) profile=1;;
     p) with_profiler="--with-profiler" ;;