objdump: Add configure time option to enable colored disassembly output by default.

PR 29457
	* configure.ac: Add --enable-colored-disassembly.
	* objdump.c: Add --disassembler-color=terminal.
	* doc/binutils.texi (objdump): Document the new option.
	* NEWS: Mention new feature.
	* config.in: Regenerate in.
	* configure: Regenerate.
This commit is contained in:
Nick Clifton
2022-10-31 09:35:16 +00:00
parent 0882710510
commit 18bf56434d
7 changed files with 106 additions and 20 deletions

View File

@@ -109,6 +109,21 @@ AC_DEFINE_UNQUOTED(DEFAULT_FOR_FOLLOW_LINKS, $default_for_follow_links,
[Have readelf and objdump follow debug links by default])
AC_ARG_ENABLE(colored-disassembly,
[AS_HELP_STRING([--enable-colored-disassembly],
[Have objdump use colors in its disassembly by default])], [
if test "${enableval}" = no; then
default_for_colored_disassembly=0
else
default_for_colored_disassembly=1
fi], [default_for_colored_disassembly=0])
AC_DEFINE_UNQUOTED(DEFAULT_FOR_COLORED_DISASSEMBLY, $default_for_colored_disassembly,
[Have objdump use colors in its disassembly by default])
AC_DEBUGINFOD
GCC_ENABLE([libctf], [yes], [], [Handle .ctf type-info sections])