1.4.40-tinfo.patch 767 B

1234567891011121314151617181920212223
  1. diff -Naur burp/configure.ac burp-new/configure.ac
  2. --- burp/configure.ac 2014-10-28 12:45:56.000000000 +0100
  3. +++ burp-new/configure.ac 2014-11-10 17:40:50.996955441 +0100
  4. @@ -1203,13 +1203,12 @@
  5. fi
  6. AC_CHECK_HEADERS(ncurses.h)
  7. -AC_CHECK_LIB(ncurses, curs_set, [NCURSES_LIBS="-lncurses"])
  8. have_ncurses=no
  9. -if test x$NCURSES_LIBS = x-lncurses; then
  10. - AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
  11. - have_ncurses=yes
  12. -fi
  13. -AC_SUBST(NCURSES_LIBS)
  14. +AC_CHECK_LIB(ncurses, endwin,
  15. + [NCURSES_LIBS="-lncurses"; have_ncurses=yes]
  16. + AC_SEARCH_LIBS(curs_set, tinfo, [NCURSES_LIBS="$NCURSES_LIBS $ac_res"]),
  17. + AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
  18. + AC_SUBST(NCURSES_LIBS))
  19. dnl
  20. dnl Check if we have AFS on this system