Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/enet-1.1/configure.in @ 47

Last change on this file since 47 was 13, checked in by landauf, 17 years ago

added enet

File size: 1.2 KB
Line 
1AC_INIT(libenet, 6-6-2007)
2AM_INIT_AUTOMAKE(libenet.a, 6-6-2007)
3
4AC_PROG_CC
5AC_PROG_RANLIB
6
7AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
8AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
9AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)])
10AC_CHECK_FUNC(fcntl, [AC_DEFINE(HAS_FCNTL)])
11AC_CHECK_FUNC(inet_pton, [AC_DEFINE(HAS_INET_PTON)])
12AC_CHECK_FUNC(inet_ntop, [AC_DEFINE(HAS_INET_NTOP)])
13
14AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>])
15
16AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], ,
17              #include <sys/types.h>
18              #include <sys/socket.h>
19)
20
21AC_EGREP_HEADER(MSG_MAXIOVLEN, /usr/include/sys/socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
22AC_EGREP_HEADER(MSG_MAXIOVLEN, socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
23
24AC_MSG_CHECKING(whether to use CRC32)
25AC_ARG_ENABLE(crc32,
26    [  --enable-crc32   enable CRC32 packet verification ],
27    [if test "$enableval" = yes; then
28        AC_MSG_RESULT(yes)
29        AC_DEFINE(USE_CRC32)
30     else
31        AC_MSG_RESULT(no)
32     fi],
33    [AC_MSG_RESULT(no)])
34
35AC_OUTPUT([Makefile include/Makefile include/enet/Makefile])
36
Note: See TracBrowser for help on using the repository browser.