Ticket #1682: acinclude.m4.diff

File acinclude.m4.diff, 788 bytes (added by nicm, 7 years ago)
  • acinclude.m4

    diff --git a/acinclude.m4 b/acinclude.m4
    index b623a82..e66ce49 100644
    a b AC_ARG_ENABLE(ncursestest, [ --disable-ncursestest Do not try to compile 
    350350  AC_MSG_CHECKING(for ncurses - wide char support) 
    351351  no_ncurses="" 
    352352  if test "$NCURSES_CONFIG" = "no" ; then 
    353     no_ncurses=yes 
    354   else 
     353    AC_MSG_RESULT(yes) 
     354    AC_SEARCH_LIBS(setupterm, ncursesw, [NCURSES_LIBS="-lncursesw"], no_ncurses=no) 
     355  else  
     356    AC_MSG_RESULT(no) 
    355357    NCURSES_CFLAGS=`$NCURSES_CONFIG $ncurses_args --cflags` 
    356358    NCURSES_LIBS=`$NCURSES_CONFIG $ncurses_args --libs` 
     359  fi 
    357360 
     361  if test "x$no_ncurses" = x ; then 
     362    AC_MSG_CHECKING(if ncurses works) 
    358363    ac_save_CFLAGS="$CFLAGS" 
    359364    ac_save_LIBS="$LIBS" 
    360365    CFLAGS="$CFLAGS $NCURSES_CFLAGS"