Add support for horizontal scrolling
[tig.git] / configure.ac
blobb179389febd36f351cad70e0cd26e313ecc55a16
1 AC_INIT([tig], [0], [Jonas Fonseca <fonseca@diku.dk>], [tig])
3 AC_LANG([C])
4 AC_CONFIG_HEADER(config.h)
5 AC_CONFIG_SRCDIR(tig.c)
7 cursed=no
8 AC_CHECK_HEADERS([ncursesw/ncurses.h],
9                  [AC_SEARCH_LIBS([initscr], [ncursesw], [cursed=yes])])
10 case "$cursed" in "no")
11         AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h],
12                          [AC_SEARCH_LIBS([wclear], [ncurses], [cursed=yes])])
14         case "$cursed" in "no")
15                 AC_ERROR([ncurses not found])
16         esac
18         AC_MSG_WARN([The found ncurses library does not support wide-char.])
19         AC_MSG_WARN([This means that tig will not correctly render UTF-8.])
20 esac
22 AM_ICONV
24 AC_PROG_CC
26 AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])])
27 AC_MSG_CHECKING([which config subcommand git supports])
28 GIT_CONFIG="repo-config"
29 git config --list >/dev/null && GIT_CONFIG="config"
30 AC_MSG_RESULT([$GIT_CONFIG])
31 AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config subcommand])
33 AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
34 AC_CHECK_PROGS(XMLTO, [xmlto false])
35 AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
37 AC_CONFIG_FILES([config.make])
38 AC_OUTPUT