/[weechat]/weechat/configure.in
ViewVC logotype

Diff of /weechat/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by flashcode, Sun Oct 23 11:33:39 2005 UTC revision 1.74 by flashcode, Tue Oct 25 09:23:11 2005 UTC
# Line 34  ALL_LINGUAS="fr es cs" Line 34  ALL_LINGUAS="fr es cs"
34  AM_GNU_GETTEXT  AM_GNU_GETTEXT
35    
36  # Checks for libraries  # Checks for libraries
37  AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0)  AC_CHECK_LIB(ncurses, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0)
38    AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW_FOUND=1, LIBNCURSESW_FOUND=0)
39    
40  # Checks for header files  # Checks for header files
41  AC_HEADER_STDC  AC_HEADER_STDC
# Line 103  AM_CONDITIONAL(HAVE_GNUTLS,   test "$ena Line 104  AM_CONDITIONAL(HAVE_GNUTLS,   test "$ena
104  # ------------------------------------------------------------------------------  # ------------------------------------------------------------------------------
105    
106  if test "x$enable_ncurses" = "xyes" ; then  if test "x$enable_ncurses" = "xyes" ; then
107      if test "$LIBNCURSES_FOUND" = "0" ; then      if test "$LIBNCURSESW_FOUND" = "0" ; then
108          AC_MSG_ERROR([          if test "$LIBNCURSES_FOUND" = "0" ; then
109  *** ncursesw library not found!              AC_MSG_ERROR([
110    *** ncurses library not found!
111  *** Please install ncurses library or run ./configure with --disable-ncurses parameter.])  *** Please install ncurses library or run ./configure with --disable-ncurses parameter.])
112            fi
113            AC_MSG_WARN([
114    *** ncursesw library not found! Falling back to "ncurses"
115    *** Be careful, UTF-8 display will not work properly.])
116            NCURSES_LIBS="-lncurses"
117        else
118            NCURSES_LIBS="-lncursesw"
119            AC_CHECK_HEADERS(ncursesw/curses.h)
120      fi      fi
     NCURSES_LIBS="-lncursesw"  
121      AC_SUBST(NCURSES_LIBS)      AC_SUBST(NCURSES_LIBS)
122  fi  fi
123    

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26