forked from pali/igmpproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
91 lines (85 loc) · 2.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
AC_PREREQ([2.63])
AC_INIT([igmpv3proxy], [0.9.0])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/igmpv3proxy.c])
AC_CONFIG_HEADERS([config.h])
AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([Your C compiler does not support ISO C99.])])
AC_CANONICAL_HOST
case $host_os in
linux*|uclinux*) os=linux;;
freebsd*) os=freebsd;;
*) AC_MSG_ERROR([OS $host_os is not supported]);;
esac
AC_CONFIG_LINKS([src/os.h:src/os-${os}.h])
AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [[
#include <sys/types.h>
#include <sys/socket.h>
]])
AC_CHECK_MEMBERS([struct sockaddr_in.sin_len], [], [], [[
#include <sys/types.h>
#include <netinet/in.h>
]])
AC_CHECK_MEMBERS([struct sockaddr_un.sun_len], [], [], [[
#include <sys/types.h>
#include <sys/un.h>
]])
AC_CHECK_MEMBERS([struct group_req.gr_interface], [], [], [[
#include <sys/types.h>
#include <sys/un.h>
#include <netinet/in.h>
]])
AC_CHECK_MEMBERS([struct vifctl.vifc_lcl_ifindex], [], [], [[
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <net/route.h>
#include <netinet/igmp.h>
#if defined __linux__
#include <linux/types.h>
#include <linux/mroute.h>
#elif defined __DragonFly__
#include <net/ip_mroute/ip_mroute.h>
#else
#include <netinet/ip_mroute.h>
#endif
]])
AC_CHECK_MEMBERS([struct mfcctl2.mfcc_ttls], [], [], [[
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <net/route.h>
#include <netinet/igmp.h>
#if defined __linux__
#include <linux/types.h>
#include <linux/mroute.h>
#elif defined __DragonFly__
#include <net/ip_mroute/ip_mroute.h>
#else
#include <netinet/ip_mroute.h>
#endif
]])
AC_CHECK_MEMBERS([struct bw_upcall.bu_src], [], [], [[
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <net/route.h>
#include <netinet/igmp.h>
#ifdef __DragonFly__
#include <net/ip_mroute/ip_mroute.h>
#else
#include <netinet/ip_mroute.h>
#endif
]])
AC_SEARCH_LIBS(socket, socket)
AC_SEARCH_LIBS([clock_gettime],[rt])
AC_CONFIG_FILES([
Makefile
doc/Makefile
src/Makefile
doc/igmpv3proxy.8
doc/igmpv3proxy.conf.5
])
AC_OUTPUT