1 this is ugly, really these libs should be checked in order
2 also as regeneration fails, we change also configure
4 --- grass-6.4.0/configure.in~ 2010-08-15 23:34:39.000000000 +0300
5 +++ grass-6.4.0/configure.in 2010-12-26 22:26:02.982445841 +0200
8 AC_MSG_RESULT($CURSES_MAXY)
10 -AC_CHECK_LIB(ncurses, initscr, CURSESLIB=-lncurses, [
11 -AC_CHECK_LIB(curses, initscr, CURSESLIB=-lcurses, [
12 +AC_CHECK_LIB(ncursesw, initscr, CURSESLIB="-lncursesw -ltinfow", [
13 +AC_CHECK_LIB(ncurses, initscr, CURSESLIB="-lncurses -ltinfo", [
14 AC_MSG_ERROR([*** Unable to locate curses library.])
17 --- grass-6.4.3/configure.orig 2013-07-27 20:44:57.000000000 +0200
18 +++ grass-6.4.3/configure 2014-05-18 18:30:25.673456894 +0200
19 @@ -5718,12 +5718,12 @@
21 echo "$ac_t""$CURSES_MAXY" 1>&6
23 -echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
24 -echo "configure:5723: checking for initscr in -lncurses" >&5
25 +echo $ac_n "checking for initscr in -lncursesw""... $ac_c" 1>&6
26 +echo "configure:5723: checking for initscr in -lncursesw" >&5
27 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
30 -LIBS="-lncurses $LIBS"
31 +LIBS="-lncursesw $LIBS"
32 cat > conftest.$ac_ext <<EOF
33 #line 5729 "configure"
37 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
38 echo "$ac_t""yes" 1>&6
40 + CURSESLIB=-lncursesw
46 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
47 echo "$ac_t""yes" 1>&6