]> xenbits.xensource.com Git - osstest.git/commit
ts-xen-build: Pass --enable if --disable found in usage, and v.v.
authorIan Jackson <iwj@xenproject.org>
Wed, 27 Oct 2021 10:53:50 +0000 (11:53 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 28 Oct 2021 12:23:37 +0000 (13:23 +0100)
commitc2b1b9236b628d4cb24e3216a5b5e2499508136d
treedd98c12dda7f54fe4b718d6dc904b68cd50b15a4
parenta6684929f1a6c91288bff2c8f5e78d50c1842a03
ts-xen-build: Pass --enable if --disable found in usage, and v.v.

The existing code works in practice if the usage message always lists
the non-default, since the unlisted-in-usage options that would be
supported, but are elided, are in any case the default.

But configure might *compute* its defaults.  In which case it will
list only one of them in the usage message.  If the computed default
is not the same as the usual default (the one implied by listing the
opposite in the usage message) we would wrongly not pass the option.

So grep for both enable and disable.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
ts-xen-build