Ticket #3880: mc-4.8.13-tinfo.patch

File mc-4.8.13-tinfo.patch, 1.7 KB (added by slyfox, 6 years ago)

mc-4.8.13-tinfo.patch

  • m4.include/mc-with-screen-ncurses.m4

    Gentoo-bug: https://bugs.gentoo.org/527118
    a b  
    101101        LIBS= 
    102102        AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"],  
    103103                       [AC_MSG_ERROR([Cannot find ncurses library])]) 
     104        AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"], 
     105                       [AC_MSG_ERROR([Cannot find a library providing stdscr])]) 
     106 
    104107 
    105108        screen_type=ncurses 
    106109        screen_msg="Ncurses library" 
     
    111114        AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes], 
    112115                       [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])]) 
    113116 
     117        AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses curses],[MCLIBS="$MCLIBS $LIBS"], 
     118                       [AC_MSG_ERROR([Cannot find a library providing stdscr])]) 
     119 
    114120        if test x"$ncursesw_found" = "x"; then 
    115121            LIBS= 
    116122            AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"],  
    117123                           [AC_MSG_ERROR([Cannot find ncurses library])]) 
     124            AC_SEARCH_LIBS([stdscr],[tinfo ncurses curses],[MCLIBS="$MCLIBS $LIBS"], 
     125                           [AC_MSG_ERROR([Cannot find a library providing stdscr])]) 
    118126        fi 
    119127 
    120128        dnl Check the header 
     
    166174    LIBS= 
    167175    AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"], 
    168176                   [AC_MSG_ERROR([Cannot find ncursesw library])]) 
     177    AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"], 
     178           [AC_MSG_ERROR([Cannot find a library providing stdscr])]) 
     179 
    169180 
    170181    dnl Check the header 
    171182    ncurses_h_found=