0001-hexdump-allow-enabling-with-disable-all-programs.patch 986 B

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