Blob


1 AC_INIT([telescope], [0.1], [telescope@omarpolo.com], [telescope], [gemini://telescope.omarpolo.com])
2 AM_INIT_AUTOMAKE([-Wall foreign])
3 AC_PROG_CC
5 PKG_PROG_PKG_CONFIG
7 dnl AX_WITH_CURSES
8 dnl if test "x$ax_cv_ncursesw" != xyes && test "x$ax_cv_ncurses" != xyes; then
9 dnl AC_MSG_ERROR([requires either NcursesW or Ncurses library])
10 dnl fi
12 AC_CHECK_LIB(ncursesw, initscr, [],
13 AC_CHECK_LIB(ncurses, initscr, [],
14 AC_MSG_ERROR([requires either ncursesw or ncurses library])))
16 AC_CHECK_LIB(tls, tls_init, [],
17 AC_MSG_ERROR([requires libtls]))
19 AC_CHECK_LIB(event, event_init, [],
20 AC_MSG_ERROR([requires libevent]))
22 IMSG_LDFLAGS=-lutil
23 AC_SUBST([IMSG_LDFLAGS])
25 AC_CONFIG_HEADERS([config.h])
26 AC_CONFIG_FILES([
27 Makefile
28 ])
30 AC_OUTPUT