wafsamba: display the default value in help for SAMBA3_ADD_OPTION
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Mar 2013 08:37:09 +0000 (09:37 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 3 Apr 2013 07:53:08 +0000 (09:53 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
buildtools/wafsamba/samba3.py

index 476d8fc9e4576729f5f018bb7750112499d7c21f..fd063ad8c472a09d44835a0f1ee241aff28d388b 100644 (file)
@@ -8,8 +8,17 @@ from samba_autoconf import library_flags
 
 def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True,
                       with_name="with", without_name="without"):
+    if default is None:
+        default_str="auto"
+    elif default == True:
+        default_str="yes"
+    elif default == False:
+        default_str="no"
+    else:
+        default_str=str(default)
+
     if help == ():
-        help = ("Build with %s support" % option)
+        help = ("Build with %s support (default=%s)" % (option, default_str))
     if dest is None:
         dest = "with_%s" % option.replace('-', '_')