mc-with-screen-slang.m4 598 B

12345678910111213141516171819202122232425
  1. dnl
  2. dnl Use the slang library.
  3. dnl
  4. AC_DEFUN([mc_WITH_SLANG], [
  5. with_screen=slang
  6. found_slang=no
  7. PKG_CHECK_MODULES(SLANG, [slang >= 2.0], [found_slang=yes], [:])
  8. if test x"$found_slang" = xno; then
  9. AC_MSG_ERROR([S-Lang >= 2.0.0 library not found])
  10. fi
  11. MCLIBS="$SLANG_LIBS $MCLIBS"
  12. CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS"
  13. dnl Check if termcap is needed.
  14. if test x"$found_slang" = x"yes"; then
  15. mc_SLANG_TERMCAP
  16. fi
  17. screen_type=slang
  18. screen_msg="S-Lang"
  19. AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management])
  20. ])