1 69e1c12a 2021-07-24 op AC_INIT([telescope], [0.4.1-dev], [telescope@omarpolo.com], [telescope], [gemini://telescope.omarpolo.com])
2 b0003f58 2021-03-08 op AC_CONFIG_LIBOBJ_DIR(compat)
3 1470eab3 2021-07-27 op AC_CANONICAL_HOST
4 60c891c2 2021-03-12 op AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
6 a625907c 2021-03-19 op AC_USE_SYSTEM_EXTENSIONS
9 5e11c00c 2021-03-02 op PKG_PROG_PKG_CONFIG
11 7eaf997f 2021-08-19 op AC_ARG_WITH([libimsg],
12 7eaf997f 2021-08-19 op AS_HELP_STRING([--with-libimsg],
13 7eaf997f 2021-08-19 op [Build with imsg-compat library (default: disabled)]))
15 b0003f58 2021-03-08 op AC_REPLACE_FUNCS([
18 beada781 2021-07-28 op explicit_bzero \
20 b0003f58 2021-03-08 op getdtablecount \
21 b0003f58 2021-03-08 op getdtablesize \
24 60c891c2 2021-03-12 op recallocarray \
30 b0003f58 2021-03-08 op setproctitle \
33 87e40628 2021-05-14 op AC_MSG_CHECKING([for sys/queue.h with TAILQ_FOREACH_SAFE])
34 87e40628 2021-05-14 op AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
35 87e40628 2021-05-14 op #include <sys/queue.h>
36 87e40628 2021-05-14 op #include <stddef.h>
38 87e40628 2021-05-14 op TAILQ_HEAD(tailhead, entry) head;
39 87e40628 2021-05-14 op struct entry {
40 87e40628 2021-05-14 op TAILQ_ENTRY(entry) entries;
42 87e40628 2021-05-14 op TAILQ_INIT(&head);
43 87e40628 2021-05-14 op TAILQ_FOREACH_SAFE(np, &head, entries, nt) {
48 87e40628 2021-05-14 op AC_MSG_RESULT(yes)
49 87e40628 2021-05-14 op AC_DEFINE([HAVE_QUEUE_H], 1, [QUEUE_H])
50 87e40628 2021-05-14 op ], AC_MSG_RESULT(no))
52 b0003f58 2021-03-08 op AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
53 b0003f58 2021-03-08 op [[#include <sys/prctl.h>]])
55 1d08c280 2021-03-06 op AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
56 1d08c280 2021-03-06 op AC_MSG_ERROR([requires either ncursesw or ncurses library])
59 8671caea 2021-08-19 op AC_SEARCH_LIBS([keyname], [ncursesw ncurses tinfow tinfo], [], [
60 8671caea 2021-08-19 op AC_MSG_ERROR([requires either ncursesw or ncurses library with terminfo support])
63 1d08c280 2021-03-06 op AC_CHECK_LIB(tls, tls_init, [], [
64 1d08c280 2021-03-06 op AC_MSG_ERROR([requires libtls])
67 1470eab3 2021-07-27 op case "$host_os" in
69 1470eab3 2021-07-27 op AC_CHECK_LIB([event], [event_init], [],
70 1470eab3 2021-07-27 op [AC_MSG_ERROR([requires libevent])])
73 1470eab3 2021-07-27 op PKG_CHECK_MODULES([libevent2], [libevent_core >= 2], [
74 1470eab3 2021-07-27 op AC_DEFINE([HAVE_EVENT2], 1, [1 if using event2])
75 1470eab3 2021-07-27 op CFLAGS="$libevent2_CFLAGS $CFLAGS"
76 1470eab3 2021-07-27 op LIBS="$libevent2_LIBS $LIBS"
77 1470eab3 2021-07-27 op ], [AC_MSG_ERROR([requires libevent])])
81 7eaf997f 2021-08-19 op AS_IF([test "x$with_libimsg" = "xyes"], [
82 7eaf997f 2021-08-19 op PKG_CHECK_MODULES([libimsg], [libimsg], [
83 7eaf997f 2021-08-19 op CFLAGS="$libimsg_CFLAGS $CFLAGS"
84 7eaf997f 2021-08-19 op LIBS="$libimsg_LIBS $LIBS"
88 7eaf997f 2021-08-19 op AC_SEARCH_LIBS([imsg_init], [util], [
89 7eaf997f 2021-08-19 op AC_DEFINE([HAVE_IMSG], 1,
90 7eaf997f 2021-08-19 op [Define to 1 if you have imsg functions (-lutil or -limsg).])
92 7eaf997f 2021-08-19 op AC_LIBOBJ(imsg)
93 7eaf997f 2021-08-19 op AC_LIBOBJ(imsg-buffer)
97 7eaf997f 2021-08-19 op AC_CHECK_LIB(util, ohash_init, [], [
98 82550776 2021-03-17 op AC_LIBOBJ(ohash)
99 0e1eff5b 2021-06-23 op AC_LIBOBJ(fmt_scaled)
102 cc4953ef 2021-03-16 op AC_CHECK_FUNCS([asr_run])
104 e18a9f14 2021-03-15 op # check compiler flags
105 e18a9f14 2021-03-15 op AC_DEFUN([CC_ADD_CHECK_FLAGS], [
106 e18a9f14 2021-03-15 op AC_MSG_CHECKING([if $CC supports $1 flag])
107 e18a9f14 2021-03-15 op old_CFLAGS="$CFLAGS"
108 e18a9f14 2021-03-15 op CFLAGS="$CFLAGS $1"
109 e18a9f14 2021-03-15 op AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
110 e18a9f14 2021-03-15 op AC_MSG_RESULT(yes),
111 e18a9f14 2021-03-15 op AC_MSG_RESULT(no)
112 e18a9f14 2021-03-15 op CFLAGS="$old_CFLAGS")
114 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wall])
115 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wextra])
116 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wmissing-prototypes])
117 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wstrict-prototypes])
118 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wwrite-strings])
119 e18a9f14 2021-03-15 op CC_ADD_CHECK_FLAGS([-Wno-unused-parameter])
121 5e11c00c 2021-03-02 op AC_CONFIG_HEADERS([config.h])
122 5e11c00c 2021-03-02 op AC_CONFIG_FILES([
124 cc0eec50 2021-07-19 op pages/about_new.gmi
125 8064b849 2021-07-20 op pages/about_crash.gmi