This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
67 lines (54 loc) · 1.53 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
AC_PREREQ([2.60])
AC_INIT([nyanttp], NY_GIT_VERSION, [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([ny.c])
AC_CONFIG_HEADERS([config.h])
AH_BOTTOM([#include "ny_config.h"])
AC_CANONICAL_TARGET
AX_ENABLE_BUILDDIR([$target])
AM_INIT_AUTOMAKE([foreign tar-pax dist-xz no-dist-gzip])
AX_SPLIT_VERSION([AC_PACKAGE_VERSION])
AC_SUBST([NY_VERSION_MAJOR], $AX_MAJOR_VERSION)
AC_SUBST([NY_VERSION_MINOR], $AX_MINOR_VERSION)
AC_SUBST([NY_VERSION_MICRO], $AX_POINT_VERSION)
AC_SUBST([NY_VERSION_BUILD], NY_GIT_BUILD)
AC_SUBST([NY_VERSION_LIBVER], NY_GIT_LIBVER)
AC_PROG_CC([clang gcc cl cc])
AC_PROG_CC_STDC
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AX_AM_JOBSERVER
AC_SYS_LARGEFILE
AC_DEFINE([_POSIX_C_SOURCE], [200809l], [Expose POSIX.1-2008 definitions.])
AC_DEFINE([_XOPEN_SOURCE], [700], [Expose XSI extensions.])
AC_DEFINE([_GNU_SOURCE], [1], [Expose GNU extensions.])
AC_DEFINE([_DARWIN_C_SOURCE], [1], [Expose Darwin extensions.])
AC_SEARCH_LIBS([socket], [socket nsl])
AC_SEARCH_LIBS([getaddrinfo], [socket nsl])
AC_HEADER_ASSERT
AC_HEADER_STDC
AC_TYPE_SIZE_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINTPTR_T
AX_TYPE_SOCKLEN_T
AC_C_RESTRICT
AX_CFLAGS_NO_WRITABLE_STRINGS
AX_CFLAGS_WARN_ALL
AX_LIB_EV
PKG_CHECK_MODULES([GnuTLS], [gnutls >= 2.12])
AC_FUNC_FORK
AC_FUNC_MMAP
AC_FUNC_STRERROR_R
AC_CHECK_DECLS([MAP_ANONYMOUS, MAP_ANON], [], [], [#include <sys/mman.h>])
AC_CHECK_FUNCS([accept4 mprotect posix_madvise])
AC_CONFIG_FILES([
Makefile
nyanttp.pc
nyanttp/Makefile
nyanttp/ny.h
test/Makefile
])
AC_OUTPUT