This PR changes the help string for --with-gui
option of the configure
script in the following way:
- explicitly adds “yes” value
- explicitly states that
--with-gui
is equivalent to--with-gui=qt5
- adds check for
--with-gui
values: theconfigure
script raises an error if a value in--with-gui=value
is not expected - refactors to make ongoing changes (#18298) clear and easy to review
On master (3d28c886f077ce22fb7755fe9ec1f4e08d3d4a62):
0$ ./configure --help | grep -A 1 'with-gui\['
1 --with-gui[=no|qt5|auto]
2 build bitcoin-qt GUI (default=auto)
With this PR:
0$ ./configure --help | grep -A 2 'with-gui\['
1 --with-gui[=yes|no|auto|qt5]
2 build bitcoin-qt GUI (default is auto; --with-gui
3 and --with-gui=qt5 are equivalent to --with-gui=yes)
Also the QT_LIB_PREFIX
variable is removed for code simplicity and readability.
This PR does not change behavior of the configure
script for known values of the --with-gui
option, and raises an error otherwise.
Fix #17813 Based on #18297 (492971de35bab26346545f68365872211f458b00..8a26848c460160e1279f26bc413f693a34e33b9d)