6 AM_INIT_AUTOMAKE($PACKAGENAME, $VERSION, no-define )
7 AC_CONFIG_SRCDIR([config.h.in])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
18 # Checks for libraries.
19 AC_CHECK_LIB(dl, dlopen)
20 AC_CHECK_LIB(log4cxx, main, :,
21 [AC_MSG_ERROR( l7vsd require log4cxx library. )] )
22 AC_CHECK_LIB(rt, main, :,
23 [AC_MSG_ERROR( l7vsd require rt library. )] )
24 AC_CHECK_LIB(boost_thread-mt, main, :,
25 [AC_MSG_ERROR( l7vsd require boost library. )] )
26 AC_CHECK_LIB(boost_system-mt, main, :,
27 [AC_MSG_ERROR( l7vsd require boost library. )] )
28 AC_CHECK_LIB([netsnmp], main, :,
29 [AC_MSG_ERROR( l7vsd require netsnmp library. )] )
31 # Checks for header files.
32 AC_CHECK_HEADERS([limits.h unistd.h])
34 # Checks for declarations.
35 AC_CHECK_DECLS([IP_TRANSPARENT], [], [], [[
36 #include <sys/socket.h>
40 # Checks for typedefs, structures, and compiler characteristics.
47 # Checks for library functions.
51 AC_CHECK_FUNCS([gethostname localtime_r memset])
55 [ --with-l7vs-moddir=DIR l7vs module is to be installed in DIR.
56 [default=${libdir}/l7vs] ],
57 [ l7vs_moddir="$withval" ],
58 [ l7vs_moddir="${libdir}/l7vs" ]
63 [ --with-l7vs-includedir=DIR l7vs headerfile is to be installed in DIR.
65 [default=${includedir}/l7vs]
67 [ l7vs_includedir="$withval" ],
68 [ l7vs_includedir="${includedir}/l7vs" ]
73 [ --with-l7vsadm-sockdir=DIR l7vsadm sockfile PATH.
74 [default=${localstatedir}/run/l7vs] ],
75 [ l7vsadm_sockdir="$withval" ],
76 [ l7vsadm_sockdir="${localstatedir}/run/l7vs" ]
81 [ --with-l7vs-buffer-size=NUM l7vsd using heap buffer size.
83 [ l7vs_max_buffer_size="$withval" ],
84 [ l7vs_max_buffer_size=4096 ]
89 [ --with-l7vs-config-dir=DIR l7vs configfile PATH.
90 [default=${sysconfdir}/l7vs] ],
91 [ l7vs_config="$withval" ],
92 [ l7vs_config="${sysconfdir}/l7vs" ]
96 AC_SUBST(l7vsadm_sockdir)
98 AC_SUBST(l7vs_includedir)
99 AC_SUBST(l7vs_max_buffer_size)
100 AC_SUBST(l7vs_config)
102 AC_SUBST(external_agent_libs, `net-snmp-config --external-agent-libs`)
103 AC_SUBST(ultramonkeyl7_version,ultramonkeyl7-$VERSION)
105 AC_CONFIG_FILES([doc/Makefile]
107 [doc/sslfiles/Makefile]
108 [doc/heartbeat-ra/Makefile]
111 [doc/moduledevel/Makefile]
112 [doc/moduledevel/sample/Makefile]
113 [doc/moduledevel/sample/protocol/Makefile]
114 [doc/moduledevel/sample/schedule/Makefile]
115 [l7directord/Makefile]
117 [l7vsd/init.d/Makefile]
118 [l7vsd/module/Makefile]
119 [l7vsd/module/protocol/Makefile]
120 [l7vsd/module/schedule/Makefile]
122 [l7vsd/include/Makefile]