0022-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 32dfbdc953a8c992c2b7a5562b899cbc3a7a6e70 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Tue, 7 Mar 2017 23:31:11 +0100
  4. Subject: [PATCH] Add options to disable zlib, bzip2 and xz modules
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. configure.ac | 18 ++++++++++++++++++
  8. 1 file changed, 18 insertions(+)
  9. diff --git a/configure.ac b/configure.ac
  10. index 11a798b25bb..bd18ebe7582 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -4282,6 +4282,24 @@ AC_ARG_ENABLE(readline,
  14. DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline"
  15. fi])
  16. +AC_ARG_ENABLE(bzip2,
  17. + AS_HELP_STRING([--disable-bzip2], [disable bzip2]),
  18. + [ if test "$enableval" = "no"; then
  19. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _bz2"
  20. + fi])
  21. +
  22. +AC_ARG_ENABLE(zlib,
  23. + AS_HELP_STRING([--disable-zlib], [disable zlib]),
  24. + [ if test "$enableval" = "no"; then
  25. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} zlib"
  26. + fi])
  27. +
  28. +AC_ARG_ENABLE(xz,
  29. + AS_HELP_STRING([--disable-xz], [disable xz]),
  30. + [ if test "$enableval" = "no"; then
  31. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _lzma"
  32. + fi])
  33. +
  34. AC_SUBST(TK)
  35. AC_ARG_ENABLE(tk,
  36. AS_HELP_STRING([--disable-tk], [disable tk]),
  37. --
  38. 2.44.0