3 dnl Use the slang library.
5 AC_DEFUN([mc_WITH_SLANG], [
8 PKG_CHECK_MODULES(SLANG, [slang >= 2.0], [found_slang=yes], [:])
9 if test x"$found_slang" = xno; then
10 AC_MSG_ERROR([S-Lang >= 2.0.0 library not found])
13 MCLIBS="$SLANG_LIBS $MCLIBS"
14 CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS"
16 dnl Check if termcap is needed.
17 if test x"$found_slang" = x"yes"; then
19 if test x"$mc_cv_slang_termcap" = x"yes"; then
20 MCLIBS="$MCLIBS -ltermcap"
27 AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management])