X-Git-Url: https://git.tokkee.org/?p=tig.git;a=blobdiff_plain;f=configure.ac;h=236d5f93dd876f34ad338fe35ecb1d669c69ad1b;hp=e209afe6a7814bbe9e6e4e17b20153ac2a2f7104;hb=HEAD;hpb=3cbb9e7331cb101136c509b741d97985420c5a45 diff --git a/configure.ac b/configure.ac index e209afe..236d5f9 100644 --- a/configure.ac +++ b/configure.ac @@ -4,20 +4,15 @@ AC_LANG([C]) AC_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(tig.c) -cursed=no -AC_CHECK_HEADERS([ncursesw/ncurses.h], - [AC_SEARCH_LIBS([initscr], [ncursesw], [cursed=yes])]) -case "$cursed" in "no") - AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h], - [AC_SEARCH_LIBS([wclear], [ncurses], [cursed=yes])]) - - case "$cursed" in "no") - AC_ERROR([ncurses not found]) - esac - +AX_WITH_CURSES +case "$ax_cv_ncurses" in "no") + AC_ERROR([ncurses not found]) +esac +case "$ax_cv_ncursesw" in "no") AC_MSG_WARN([The found ncurses library does not support wide-char.]) AC_MSG_WARN([This means that tig will not correctly render UTF-8.]) esac +AC_SUBST(CURSES_LIB) AM_ICONV