X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/e47afdf2f78acbcb5c08f422be5ce37e0e99a5fc..de46362f24d53b4a6ccb9c70e446a1d32b05f08d:/configure.ac?ds=sidebyside diff --git a/configure.ac b/configure.ac index 55d81a9..764190a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,19 +1,34 @@ AC_INIT([tig], [0], [Jonas Fonseca ], [tig]) + AC_LANG([C]) AC_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(tig.c) -AC_SEARCH_LIBS([wclear], [ncurses curses]) +AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [], + [AC_ERROR([curses not found])]) + AM_ICONV AC_PROG_CC -AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config]) + +AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])]) +AC_MSG_CHECKING([which config command git supports]) +GIT_CONFIG="git repo-config" +git config --list >/dev/null && GIT_CONFIG="git config" +AC_MSG_RESULT([$GIT_CONFIG]) AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program]) + AC_CHECK_PROGS(ASCIIDOC, [asciidoc false]) AC_CHECK_PROGS(XMLTO, [xmlto false]) AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false]) AC_CONFIG_FILES([config.make]) AC_OUTPUT + +case "$LIBS" in +*-lncursesw*) ;; +*) AC_MSG_RESULT([NOTE: The found ncurses library does not support wide-char.]) + AC_MSG_RESULT([NOTE: This means that tig will not correctly render UTF-8]) +esac