configure: add missing --disable-modules option
PATCH 1/1 configure: add missing --disable-modules option
According to ./configure all options should have both --enable-foo and --disable-foo:
# Always add --enable-foo and --disable-foo command line args. # Distributions want to ensure that several features are compiled in, and it
# is impossible without a --enable-foo that exits if a feature is not found.
--- configure | 3 +++ 1 file changed, 3 insertions(+)
configure +3 -0
@@ -787,6 +787,9 @@ for opt do --enable-modules) modules="yes" ;; + --disable-modules) + modules="no" + ;; --cpu=*) ;; --target-list=*) target_list="$optarg"
Signature · 1 line
2.4.3
Quoted 6 lines · Stefan Hajnoczi
According to ./configure all options should have both --enable-foo and --disable-foo:
# Always add --enable-foo and --disable-foo command line args. # Distributions want to ensure that several features are compiled in, and it
# is impossible without a --enable-foo that exits if a feature is not found.
Actually the document is wrong about module support, the default is off:
Quoted 2 lines
Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available:
Maybe we should move it out of this section instead?
What about vnc-tls? It's described in the same place, but there is no option for it.
Fam
Quoted 2 lines · Fam Zheng
On Mon, 11/02 14:06, Stefan Hajnoczi wrote:
Actually the document is wrong about module support, the default is off:
These issues are independent of this patch, but...
Quoted 4 lines
Quoted 2 lines
Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available:
Maybe we should move it out of this section instead?
There are other foo="no" default options in this section.
I think "default is enabled if available" really refers to foo="" autodetection only.
Quoted 2 lines
What about vnc-tls? It's described in the same place, but there is no option for it.
Regarding vnc-tls, it was removed in 3e305e4a4752f70c0b5c3cf5b43ec957881714f7. Maybe Dan can send a follow-up patch that removes it from the ./configure --help output?
Quoted 16 lines · Stefan Hajnoczi
Quoted 2 lines · Fam Zheng
On Mon, 11/02 14:06, Stefan Hajnoczi wrote:
Actually the document is wrong about module support, the default is off:These issues are independent of this patch, but...
Quoted 4 lines
Quoted 2 lines
Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available:
Maybe we should move it out of this section instead?
There are other foo="no" default options in this section.
I think "default is enabled if available" really refers to foo="" autodetection only.
Quoted 6 lines
Quoted 2 lines
What about vnc-tls? It's described in the same place, but there is no option for it.
Regarding vnc-tls, it was removed in
3e305e4a4752f70c0b5c3cf5b43ec957881714f7. Maybe Dan can send a follow-up patch that removes it from the ./configure --help output?
Sure, will do.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 9 lines · Stefan Hajnoczi
Quoted 2 lines · Fam Zheng
On Mon, 11/02 14:06, Stefan Hajnoczi wrote:
Actually the document is wrong about module support, the default is off:These issues are independent of this patch, but...
Quoted 3 lines
Quoted 2 lines
Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available:
Quoted 6 lines
Quoted 1 line
Maybe we should move it out of this section instead?
There are other foo="no" default options in this section.
I think "default is enabled if available" really refers to foo="" autodetection only.
I think what it ought to say is something like
"Optional features: these can be enabled with --enable-FEATURE or disabled with --disable-FEATURE. The default (unless otherwise specified below) is to autodetect support for the feature, and enable it if possible, and disable it if not."
Then options in the list which don't default to 'autodetect' should say so, like 'debug-tcg' does now.
thanks
-- PMM
Fam Zheng
Reviewed-byQuoted 19 lines · Peter Maydell
Quoted 9 lines · Stefan Hajnoczi
Quoted 2 lines · Fam Zheng
On Mon, 11/02 14:06, Stefan Hajnoczi wrote:
Actually the document is wrong about module support, the default is off:These issues are independent of this patch, but...
Quoted 3 lines
Quoted 2 lines
Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available:
Quoted 6 lines
Quoted 1 line
Maybe we should move it out of this section instead?
There are other foo="no" default options in this section.
I think "default is enabled if available" really refers to foo="" autodetection only.
I think what it ought to say is something like
Quoted 7 lines
"Optional features: these can be enabled with --enable-FEATURE or disabled with --disable-FEATURE. The default (unless otherwise specified below) is to autodetect support for the feature, and enable it if possible, and disable it if not."
Then options in the list which don't default to 'autodetect' should say so, like 'debug-tcg' does now.
Sounds good to me. For this patch:
Peter Maydell
AppliedQuoted 27 lines · Stefan Hajnoczi
According to ./configure all options should have both --enable-foo and --disable-foo:
# Always add --enable-foo and --disable-foo command line args. # Distributions want to ensure that several features are compiled in, and it
# is impossible without a --enable-foo that exits if a feature is not found.Signed-off-by Stefan Hajnoczi <[email protected]>--- configure | 3 +++ 1 file changed, 3 insertions(+)configure +3
-1@@ -787,6 +787,9 @@ for opt do --enable-modules) modules="yes" ;; + --disable-modules) + modules="no" + ;; --cpu=*) ;; --target-list=*) target_list="$optarg" --
Quoted 1 line
2.4.3
Applied to master, thanks.
-- PMM