On Sun, 6 Mar 2005, Thomas Dickey wrote:

Tim Janik <[EMAIL PROTECTED]> wrote:

so any characters appearing are being put out by ncurses.
that in turn uses escape sequences from the terminal description of
your TERM environment variable which should match the capability set
of konsole.

What's the purpose of the test? (Reading the configure script, it appears that the obvious is true: the developer is unaware of tput, which would do this without involving itself in konsole's differences from xterm).

thanks, i've applied the following patch upstream:

diff -u -p -u -p -r1.25 acbeast.m4
--- acbeast.m4  4 Jul 2004 00:45:51 -0000       1.25
+++ acbeast.m4  6 Mar 2005 22:29:39 -0000
@@ -306,26 +306,12 @@ AC_DEFUN(MC_PROG_CXX_WITH_CXXFLAGS,[

                dnl figure current screen width from ncurses to make g++
                dnl format errors for screensizes!=80 correctly
-               SAVED_LIBS="$LIBS"
-               LIBS="$LIBS -lncurses"
-               AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
-                                    #include <curses.h>
-                                   int main()
-                                   {
-                                       FILE *f=fopen("conftestval", "w");
-                                       int c;
-                                       if (!f) exit(1);
-                                       initscr();
-                                       c = COLS;
-                                       endwin();
-                                       fprintf(f, "%d\n",c);
-                                       exit(0);
-                                   }
-                                   ]])],
-                   [gxx_columns=`cat conftestval`],
-                   [gxx_columns='80'])
-               LIBS="$SAVED_LIBS"
-               if test -n "$gxx_columns" ; then
+               gxx_columns=0
+               AC_CHECK_PROG(TPUT, tput, yes)
+               if test "$TPUT" = "yes"; then
+                   gxx_columns=$(tput cols)
+               fi
+               if test "$gxx_columns" -gt 1 ; then
                    MC_PROG_CC_SUPPORTS_OPTION(-fmessage-length=$gxx_columns,
                        MC_EVAR_ADD(CXXFLAGS, -fmessage-length=, 
-fmessage-length=$gxx_columns))
                fi

so the next release will have it.

---
ciaoTJ


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to