|
|
SLANGINC="-I${prefix}/include/slang" | SLANGINC="-I${prefix}/include/slang" |
elif test -d /usr/include/slang; then | elif test -d /usr/include/slang; then |
SLANGINC="-I/usr/include/slang" | SLANGINC="-I/usr/include/slang" |
|
elif test -d /usr/include/slang-2; then |
|
SLANGINC="-I/usr/include/slang-2" |
fi | fi |
fi | fi |
else | else |
|
|
AC_MSG_RESULT($SLANGINC $SLANGLIB) | AC_MSG_RESULT($SLANGINC $SLANGLIB) |
have_slang="no" | have_slang="no" |
AC_CHECK_HEADER(slang.h, | AC_CHECK_HEADER(slang.h, |
|
AC_CHECK_LIB(slang-2, SLtt_get_terminfo, |
|
AC_MSG_NOTICE(Compiling with S-Lang support...) |
|
have_slang="yes" |
|
AC_DEFINE(USE_SLANG) |
|
SLANGLIB="$SLANGLIB -lslang-2 -lm", |
AC_CHECK_LIB(slang, SLtt_get_terminfo, | AC_CHECK_LIB(slang, SLtt_get_terminfo, |
AC_MSG_NOTICE(Compiling with S-Lang support...) | AC_MSG_NOTICE(Compiling with S-Lang support...) |
have_slang="yes" | have_slang="yes" |
AC_DEFINE(USE_SLANG) | AC_DEFINE(USE_SLANG) |
SLANGLIB="$SLANGLIB -lslang -lm", | SLANGLIB="$SLANGLIB -lslang -lm", |
[AC_MSG_WARN([No S-Lang library found.])] | [AC_MSG_WARN([No S-Lang library found.])] |
$srcdir/mkpluginhooks enable term no | $srcdir/mkpluginhooks enable term no |
|
) |
), | ), |
[AC_MSG_WARN([No S-Lang header file found.])] | [AC_MSG_WARN([No S-Lang header file found.])] |
$srcdir/mkpluginhooks enable term no | $srcdir/mkpluginhooks enable term no |