b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From 37641f246ee9df7289b4e3054b3ded3912773722 Mon Sep 17 00:00:00 2001 |
| 2 | From: Robert Marko <robimarko@gmail.com> |
| 3 | Date: Tue, 25 Jun 2024 17:32:08 +0200 |
| 4 | Subject: [PATCH] hexdump: allow enabling with --disable-all-programs |
| 5 | |
| 6 | Currently, if --disable-all-programs is used hexdump cannot be built |
| 7 | as --enable-hexdump is not recognized, so lets add support for it. |
| 8 | |
| 9 | Signed-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]) |