]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, gdbsupport: configure: factor out yes/no/auto value checking
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 28 Jul 2022 20:09:45 +0000 (16:09 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 26 Aug 2022 14:29:51 +0000 (10:29 -0400)
commit4fd404c298db4e19dbf87331d3b02f451af4c5cd
treef840716f84831a2a2e679a0788c55d1432db5b8d
parent3055522ab17ac7c6781a3507ebac0fab1c3aa5a4
gdb, gdbsupport: configure: factor out yes/no/auto value checking

Factor out the code that checks that a value is yes/no or yes/no/auto.
Add two macros to gdbsupport/common.m4 and use them in gdb/configure.ac

I inspected the changes to configure.  Other than whitespace changes, we
have some benign changes to the error messages (one of them had an error
actually).  There are changes to the --enable-source-highlight and
--enable-libbacktrace handling, but setting enable_source_highlight /
enable_libbacktrace was not really useful anyway, they already had the
right value.

Change-Id: I92587aec36874309e1605e2d60244649f09a757a
gdb/configure
gdb/configure.ac
gdbsupport/common.m4