guile-1.8.8-readline.patch 953 B

1234567891011121314151617181920212223242526272829303132333435
  1. Make guile-readline optional
  2. https://bugs.gentoo.org/392553
  3. --- a/Makefile.am
  4. +++ b/Makefile.am
  5. @@ -24,7 +24,7 @@
  6. #
  7. AUTOMAKE_OPTIONS = 1.10
  8. -SUBDIRS = oop libguile ice-9 guile-config guile-readline emacs \
  9. +SUBDIRS = oop libguile ice-9 guile-config @GUILE_READLINE@ emacs \
  10. scripts srfi doc examples test-suite benchmark-suite lang am
  11. bin_SCRIPTS = guile-tools
  12. --- a/configure.in
  13. +++ b/configure.in
  14. @@ -57,7 +57,15 @@ AH_TOP(/*GUILE_CONFIGURE_COPYRIGHT*/)
  15. #
  16. #--------------------------------------------------------------------
  17. -AC_CONFIG_SUBDIRS(guile-readline)
  18. +GUILE_READLINE=
  19. +AC_ARG_ENABLE([readline],
  20. + [AS_HELP_STRING([--disable-readline],
  21. + [disable building guile-readline])],
  22. + if test "x$enable_readline" != xno; then
  23. + AC_CONFIG_SUBDIRS([guile-readline])
  24. + GUILE_READLINE="guile-readline"
  25. + fi)
  26. +AC_SUBST([GUILE_READLINE])
  27. #--------------------------------------------------------------------