Re: mcslang2



This is plain wrong:

diff -pruN mc/acinclude.m4 mc.slang2/acinclude.m4
--- mc/acinclude.m4     2005-07-20 14:45:13.000000000 +0200
+++ mc.slang2/acinclude.m4      2005-09-26 22:31:34.000000000 +0200
@@ -674,7 +674,11 @@ AC_DEFUN([MC_SLANG_PRIVATE], [
     AC_CACHE_CHECK([if S-Lang exports private functions],
                   [mc_cv_slang_private], [
        ac_save_LIBS="$LIBS"
+       #if SLANG_VERSION < 20000
        LIBS="$LIBS -lslang"
+       #else
+       LIBS="$LIBS -lslang2"
+       #endif
        AC_TRY_LINK([
                     #ifdef HAVE_SLANG_SLANG_H
                     #include <slang/slang.h>
@@ -711,7 +715,11 @@ dnl
 AC_DEFUN([MC_SLANG_TERMCAP], [
     AC_CACHE_CHECK([if S-Lang uses termcap], [mc_cv_slang_termcap], [
        ac_save_LIBS="$LIBS"
+       #if SLANG_VERSION < 20000
        LIBS="$LIBS -lslang"
+       #else
+       LIBS="$LIBS -lslang2"
+       #endif
        AC_TRY_LINK([
                     #ifdef HAVE_SLANG_SLANG_H
                     #include <slang/slang.h>


You are not writing C code here - this is shell scripting.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]