Merge branch '4549_subshell_execl_argv0'
[midnight-commander.git] / m4.include / mc-with-screen-slang.m4
blob1a74f3012f706252fd69a7cbf2ed6633af316b07
2 dnl
3 dnl Use the slang library.
4 dnl
5 AC_DEFUN([mc_WITH_SLANG], [
6     with_screen=slang
7     found_slang=no
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])
11     fi
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
18         mc_SLANG_TERMCAP
19     fi
21     screen_type=slang
22     screen_msg="S-Lang"
24     AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management])