Line | |
---|
1 | AC_INIT([libenet], [1.3.0]) |
---|
2 | AC_CONFIG_SRCDIR([include/enet/enet.h]) |
---|
3 | AM_INIT_AUTOMAKE([foreign]) |
---|
4 | |
---|
5 | AC_CONFIG_MACRO_DIR([m4]) |
---|
6 | |
---|
7 | AC_PROG_CC |
---|
8 | AC_PROG_LIBTOOL |
---|
9 | |
---|
10 | AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)]) |
---|
11 | AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)]) |
---|
12 | AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)]) |
---|
13 | AC_CHECK_FUNC(fcntl, [AC_DEFINE(HAS_FCNTL)]) |
---|
14 | AC_CHECK_FUNC(inet_pton, [AC_DEFINE(HAS_INET_PTON)]) |
---|
15 | AC_CHECK_FUNC(inet_ntop, [AC_DEFINE(HAS_INET_NTOP)]) |
---|
16 | |
---|
17 | AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>]) |
---|
18 | |
---|
19 | AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], , |
---|
20 | #include <sys/types.h> |
---|
21 | #include <sys/socket.h> |
---|
22 | ) |
---|
23 | |
---|
24 | AC_EGREP_HEADER(MSG_MAXIOVLEN, /usr/include/sys/socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN])) |
---|
25 | AC_EGREP_HEADER(MSG_MAXIOVLEN, socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN])) |
---|
26 | |
---|
27 | AC_CONFIG_FILES([Makefile |
---|
28 | libenet.pc]) |
---|
29 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.