| 1 | AC_INIT([tig], [0], |
| 2 | [Jonas Fonseca <fonseca@diku.dk>], |
| 3 | [tig]) |
| 4 | AC_LANG([C]) |
| 5 | AC_CONFIG_HEADER(config.h) |
| 6 | AC_CONFIG_SRCDIR(tig.c) |
| 7 | |
| 8 | AC_SEARCH_LIBS([wclear], [ncurses curses]) |
| 9 | AM_ICONV |
| 10 | |
| 11 | AC_PROG_CC |
| 12 | AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config]) |
| 13 | if test "${ac_cv_prog_GIT_CONFIG}" = ""; then |
| 14 | AC_CHECK_PROGS(GIT, [git]) |
| 15 | GIT_CONFIG="${ac_cv_prog_GIT} config" |
| 16 | fi |
| 17 | AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program]) |
| 18 | AC_CHECK_PROGS(ASCIIDOC, [asciidoc false]) |
| 19 | AC_CHECK_PROGS(XMLTO, [xmlto false]) |
| 20 | AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false]) |
| 21 | |
| 22 | AC_CONFIG_FILES([config.make]) |
| 23 | AC_OUTPUT |