Skip to content

Commit

Permalink
Ensure HAVE_LIBncurses(w) is defined if --enable-utf8 is passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Jul 6, 2016
1 parent a24495c commit 9504196
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ if test "$utf8" = "yes"; then
esac

AC_CHECK_LIB([$libncursesw], [mvaddwstr], [],
[AC_MSG_ERROR([*** Missing development libraries for ncursesw])])
[AC_MSG_ERROR([*** Missing development libraries for ncursesw])])
AC_SEARCH_LIBS([tputs], [tinfow], ,[AC_MSG_ERROR([Cannot find a library providing tputs])])
AC_DEFINE([HAVE_LIBNCURSESW], [1], ["ncursesw is present."])

have_ncurses="yes"
AC_CHECK_HEADERS([ncursesw/ncurses.h],[have_ncurses=yes], [], [
AC_CHECK_HEADERS([$libncursesw/ncurses.h],[have_ncurses=yes], [], [
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#endif
Expand Down

0 comments on commit 9504196

Please sign in to comment.