0001-configure.ac-add-disable-doc-option.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 250bee9e02546846d70dbe88ac36bb83c6a7ebdf Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 22 Sep 2019 09:27:24 +0200
  4. Subject: [PATCH] configure.ac: add --disable-doc option
  5. Add --disable-doc option to allow the user to disable documentation
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. [Sent upstream: https://savannah.gnu.org/bugs/index.php?56931]
  8. ---
  9. Makefile.am | 6 +++++-
  10. configure.ac | 7 +++++++
  11. 2 files changed, 12 insertions(+), 1 deletion(-)
  12. diff --git a/Makefile.am b/Makefile.am
  13. index dbb5719..2db307a 100644
  14. --- a/Makefile.am
  15. +++ b/Makefile.am
  16. @@ -18,6 +18,10 @@
  17. ACLOCAL_AMFLAGS = -I m4 -I gl/m4
  18. EXTRA_DIST = configure TODO LICENSE gl/m4/gnulib-cache.m4
  19. -SUBDIRS = gl src doc tests
  20. +SUBDIRS = gl src tests
  21. +
  22. +if ENABLE_DOC
  23. +SUBDIRS += doc
  24. +endif
  25. gengetoptdoc_DATA = ChangeLog COPYING NEWS THANKS INSTALL README LICENSE
  26. diff --git a/configure.ac b/configure.ac
  27. index 0ee89db..915706c 100644
  28. --- a/configure.ac
  29. +++ b/configure.ac
  30. @@ -61,6 +61,13 @@ AC_ARG_ENABLE(
  31. AC_COMPILE_WARNINGS
  32. )
  33. +AC_ARG_ENABLE(
  34. + [doc],
  35. + [--enable-doc enable documentation],
  36. + [enable_doc=$enableval],
  37. + [enable_doc=yes])
  38. +AM_CONDITIONAL(ENABLE_DOC, test x"$enable_doc" = xyes)
  39. +
  40. AC_ARG_WITH(
  41. [gengen],
  42. [ --with-gengen=mygengen gengen to use],
  43. --
  44. 2.23.0