1 AC_INIT([tig],[0],[Jonas Fonseca <fonseca@diku.dk>],[tig])
4 AC_CONFIG_HEADER(config.h)
7 dnl Document where we keep our .m4 file.
8 AC_CONFIG_MACRO_DIR([tools])
9 dnl Make sure aclocal actually found it!
10 m4_pattern_forbid([^AX_])
14 AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
15 AC_CHECK_FUNCS([gettimeofday])
16 AC_CHECK_DECLS([environ])
17 AC_CHECK_DECLS([errno], [], [], [#include <errno.h>])
19 dnl Checks for compatibility flags
20 AC_CHECK_FUNCS([mkstemps], [AC_SUBST([NO_MKSTEMPS], ["#"])])
21 AC_CHECK_FUNCS([setenv], [AC_SUBST([NO_SETENV], ["#"])])
24 case "$ax_cv_ncurses" in "no")
25 AC_MSG_ERROR([ncurses not found])
27 case "$ax_cv_ncursesw" in "no")
28 AC_MSG_WARN([The found ncurses library does not support wide-char.])
29 AC_MSG_WARN([This means that tig will not correctly render UTF-8.])
35 AC_CHECK_PROGS(ASCIIDOC, [asciidoc], [false])
36 AC_CHECK_PROGS(XMLTO, [xmlto], [false])
37 AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf], [false])
39 AC_CONFIG_FILES([config.make])
43 dnl eval: (font-lock-add-keywords nil '(("\\_<AX_\\sw+" . font-lock-keyword-face)))