New actions toggle-date, toggle-author, and toggle-refs.
[tig] / configure.ac
CommitLineData
ec31d0d0
SG
1AC_INIT([tig], [0],
2 [Jonas Fonseca <fonseca@diku.dk>],
3 [tig])
6a19a303 4
ec31d0d0
SG
5AC_LANG([C])
6AC_CONFIG_HEADER(config.h)
7AC_CONFIG_SRCDIR(tig.c)
8
6a19a303
JF
9AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [],
10 [AC_ERROR([curses not found])])
11
e47afdf2 12AM_ICONV
ec31d0d0
SG
13
14AC_PROG_CC
96e58f5b 15AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config])
bfb1ff95
PK
16if test "${ac_cv_prog_GIT_CONFIG}" = ""; then
17 AC_CHECK_PROGS(GIT, [git])
18 GIT_CONFIG="${ac_cv_prog_GIT} config"
19fi
96e58f5b 20AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program])
c692b4e4
JF
21AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
22AC_CHECK_PROGS(XMLTO, [xmlto false])
23AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
ec31d0d0
SG
24
25AC_CONFIG_FILES([config.make])
26AC_OUTPUT
6a19a303
JF
27
28case "$LIBS" in
29*-lncursesw*) ;;
30*) AC_MSG_RESULT([NOTE: The found ncurses library does not support wide-char.])
31 AC_MSG_RESULT([NOTE: This means that tig will not correctly render UTF-8])
32esac