wavemon-0.7.6-ncurses-tinfo.patch 669 B

1234567891011121314151617181920
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -21,6 +21,7 @@
  4. AC_PROG_CC
  5. AC_PROG_CPP
  6. AC_PROG_INSTALL
  7. +PKG_PROG_PKG_CONFIG
  8. # Checks for header files.
  9. AC_HEADER_STDC
  10. @@ -52,7 +53,7 @@
  11. # Tests involving libraries
  12. AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR(math library not found)])
  13. -AC_CHECK_LIB([ncurses], [waddstr], [], [AC_MSG_ERROR(ncurses library not found)])
  14. +PKG_CHECK_MODULES([ncurses], [ncurses], [LIBS="$LIBS $ncurses_LIBS"], AC_MSG_ERROR([ncurses is required but was not found]))
  15. AC_CHECK_LIB([pthread], [pthread_create], [CFLAGS="$CFLAGS -pthread"],
  16. [AC_MSG_ERROR(pthread library not found)])
  17. AC_CHECK_LIB([cap], [cap_get_flag])