File chroma-curses-wide-characters.patch of Package chroma

diff -Nuar chroma-1.20.orig/configure chroma-1.20/configure
--- chroma-1.20.orig/configure	2023-02-18 07:07:25.857059855 +0300
+++ chroma-1.20/configure	2023-02-18 07:40:26.770762817 +0300
@@ -2953,13 +2953,13 @@
 
 if test "$with_curses" = "yes"; then
     CURSES="ncurses"
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
-$as_echo_n "checking for initscr in -lncurses... " >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
+$as_echo_n "checking for initscr in -lncursesw... " >&6; }
 if ${ac_cv_lib_ncurses_initscr+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lncurses  $LIBS"
+LIBS="-lncursesw  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -2994,7 +2994,7 @@
 #define HAVE_LIBNCURSES 1
 _ACEOF
 
-  LIBS="-lncurses $LIBS"
+  LIBS="-lncursesw $LIBS"
 
 fi
 
diff -Nuar chroma-1.20.orig/configure.ac chroma-1.20/configure.ac
--- chroma-1.20.orig/configure.ac	2023-02-21 00:12:22.780088492 +0300
+++ chroma-1.20/configure.ac	2023-02-21 00:12:33.120209876 +0300
@@ -71,8 +71,8 @@
 dnl Check for curses library
 if test "$with_curses" = "yes"; then
     CURSES="ncurses"
-    AC_CHECK_LIB(ncurses, initscr)
-    if test "$ac_cv_lib_ncurses_initscr" != "yes"; then
+    AC_CHECK_LIB(ncursesw, initscr)
+    if test "$ac_cv_lib_ncursesw_initscr" != "yes"; then
         CURSES="curses"
         AC_CHECK_LIB(curses, initscr)
         if test "$ac_cv_lib_curses_initscr" != "yes"; then
@@ -80,7 +80,7 @@
         fi
     fi
     if test "$CURSES" = ""; then
-    AC_MSG_ERROR([*** Unable to find curses / ncurses library])
+    AC_MSG_ERROR([*** Unable to find curses / ncursesw library])
     fi
 fi
 
openSUSE Build Service is sponsored by