xstow-1.0.1-ncurses.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -91,11 +91,12 @@
  4. AC_MSG_RESULT(disabled)
  5. support_curses=0
  6. else
  7. + AC_MSG_RESULT(enabled)
  8. support_curses=1
  9. fi
  10. ],
  11. - [
  12. - AC_MSG_RESULT(enabled)
  13. + [])
  14. +if test $support_curses -eq 1; then
  15. AC_CHECK_HEADER([curses.h],
  16. [
  17. # test which libraray to use
  18. @@ -146,7 +147,7 @@
  19. fi
  20. if test $support_curses -eq 1; then
  21. - AC_SUBST(LDFLAGS_DYNAMIC, "$LDFLAGS -l$curseslib $tinfolib")
  22. + AC_SUBST(LDFLAGS_DYNAMIC, "-l$curseslib $tinfolib")
  23. AC_DEFINE(HAVE_CURSES_H, 1, [curses library can be used])
  24. fi
  25. @@ -154,8 +155,7 @@
  26. [
  27. support_curses=0
  28. ])
  29. - ])
  30. -
  31. +fi
  32. NO_STL_SSTREAM=0
  33. NO_STL_STRSTREAM=0
  34. --- a/src/Makefile.am
  35. +++ b/src/Makefile.am
  36. @@ -46,7 +46,7 @@
  37. backtrace.h \
  38. backtrace.cpp
  39. -xstow_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC)
  40. +xstow_LDADD= $(LDFLAGS_DYNAMIC)
  41. if ENABLE_MERGE
  42. @@ -63,7 +63,7 @@
  43. backtrace.h \
  44. backtrace.cpp
  45. -merge_info_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC)
  46. +merge_info_LDADD= $(LDFLAGS_DYNAMIC)
  47. endif