Blob


1 AC_INIT([telescope], [0.1], [telescope@omarpolo.com], [telescope], [gemini://telescope.omarpolo.com])
2 AC_CONFIG_LIBOBJ_DIR(compat)
3 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
4 AC_PROG_CC
6 PKG_PROG_PKG_CONFIG
8 AC_REPLACE_FUNCS([
9 asprintf \
10 err \
11 freezero \
12 getdtablecount \
13 getdtablesize \
14 getprogname \
15 memmem \
16 recallocarray \
17 strlcat \
18 strlcpy \
19 strtonum \
20 setproctitle \
21 ])
23 AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
24 [[#include <sys/prctl.h>]])
26 AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
27 AC_MSG_ERROR([requires either ncursesw or ncurses library])
28 ])
30 AC_CHECK_LIB(tls, tls_init, [], [
31 AC_MSG_ERROR([requires libtls])
32 ])
34 AC_CHECK_LIB(event, event_init, [], [
35 AC_MSG_ERROR([requires libevent])
36 ])
38 AC_CHECK_LIB(util, imsg_init, [], [
39 AC_LIBOBJ(imsg)
40 AC_LIBOBJ(imsg-buffer)
41 ])
43 AC_CONFIG_HEADERS([config.h])
44 AC_CONFIG_FILES([
45 Makefile
46 ])
48 AC_OUTPUT