blob: a8f1b5eb24e218c865318a9d160165a5556e4292 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 37641f246ee9df7289b4e3054b3ded3912773722 Mon Sep 17 00:00:00 2001
2From: Robert Marko <robimarko@gmail.com>
3Date: Tue, 25 Jun 2024 17:32:08 +0200
4Subject: [PATCH] hexdump: allow enabling with --disable-all-programs
5
6Currently, if --disable-all-programs is used hexdump cannot be built
7as --enable-hexdump is not recognized, so lets add support for it.
8
9Signed-off-by: Robert Marko <robimarko@gmail.com>
10---
11 configure.ac | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
13
14--- a/configure.ac
15+++ b/configure.ac
16@@ -2240,7 +2240,11 @@ UL_BUILD_INIT([column], [check])
17 UL_REQUIRES_BUILD([column], [libsmartcols])
18 AM_CONDITIONAL([BUILD_COLUMN], [test "x$build_column" = xyes])
19
20-UL_BUILD_INIT([hexdump], [yes])
21+AC_ARG_ENABLE([hexdump],
22+ AS_HELP_STRING([--disable-hexdump], [do not build hexdump]),
23+ [], [UL_DEFAULT_ENABLE([hexdump], [check])]
24+)
25+UL_BUILD_INIT([hexdump])
26 AM_CONDITIONAL([BUILD_HEXDUMP], [test "x$build_hexdump" = xyes])
27
28 UL_BUILD_INIT([rev], [yes])