root/trunk/configure.in @ 109

Revision 109, 3.7 KB (checked in by andreu, 13 years ago)

add doc directory in distrib
modify output order of configure help

  • Property svn:eol-style set to native
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(RENETCOL, 0.0.14beta, andreu@renater.fr)
6AC_CONFIG_SRCDIR(src/)
7AC_PROG_MAKE_SET
8AM_CONFIG_HEADER(config.h)
9AM_INIT_AUTOMAKE
10CFLAGS="-I/usr/local/include -g -ansi -Wno-long-long -Wall -D _SVID_SOURCE -DSIGSETJMP_IS_BROKEN -D _XOPEN_SOURCE -pedantic"
11
12CFLAGS_OPTIMIZE="-O2"
13CFLAGS_ASACC="-DASACC"
14CFLAGS_IPV4AGGIDSNMP="-DIPV4AGGIDSNMP"
15CFLAGS_IPV6AGGIDSNMP="-DIPV6AGGIDSNMP"
16CFLAGS_IPV6LINKAGG="-DIPV6LINKAGG"
17CFLAGS_IPV4AGGIDR="-DIPV4AGGIDR"
18CFLAGS_MATRIX="-DMATRIX"
19CFLAGS_DEBUG="-DDEBUG"
20CFLAGS_DEBUGAGG="-DDEBUGAGG"
21CFLAGS_PRINTUNKNOWNSUBNET="-DPRINTUNKNOWNSUBNET"
22CFLAGS_MULTISAMPLING="-DMULTISAMPLING"
23
24# Checks for programs.
25AC_PROG_CC
26
27# Checks for header files.
28AC_HEADER_STDC
29AC_CHECK_HEADERS([unistd.h stdio.h string.h stdlib.h syslog.h sys/types.h sys/socket.h netinet/in.h time.h errno.h sys/ipc.h sys/shm.h sys/sem.h ctype.h netdb.h net/if.h sys/ioctl.h arpa/inet.h signal.h setjmp.h sys/wait.h])
30
31# Checks for typedefs, structures, and compiler characteristics.
32AC_C_CONST
33AC_STRUCT_TM
34AC_C_VOLATILE
35AC_TYPE_SIZE_T
36
37AC_ARG_ENABLE(ipv4aggidsnmp,[  --enable-ipv4aggidsnmp aggregation for IPv4 prefix, localisation based on SNMP ID=yes],
38ipv4aggidsnmp=$enableval,ipv4aggidsnmp=yes)
39if test $ipv4aggidsnmp = yes ; then
40CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDSNMP"
41fi
42
43AC_ARG_ENABLE(ipv4aggidr,[  --enable-ipv4aggidr aggregation for IPv4 prefix=no, flow localisation by routeur identification, if yes, enable-ipv4aggsnmp MUST be NO],
44ipv4aggidr=$enableval,ipv4aggidr=no)
45if test $ipv4aggidr = yes ; then
46CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDR"
47fi
48
49AC_ARG_ENABLE(multisampling,[  --enable-multisampling Multi-Sampling mode=no],
50multisampling=$enableval,multisampling=no)
51if test $multisampling = yes ; then
52CFLAGS="$CFLAGS $CFLAGS_MULTISAMPLING"
53fi
54
55AC_ARG_ENABLE(asacc,[  --enable-asacc AS accounting default=no],
56asacc=$enableval,asacc=no)
57if test $asacc = yes ; then
58CFLAGS="$CFLAGS $CFLAGS_ASACC"
59fi
60
61AC_ARG_ENABLE(matrix,[  --enable-matrix inter pop matrix default=no],
62matrix=$enableval,matrix=no)
63if test $matrix = yes ; then
64CFLAGS="$CFLAGS $CFLAGS_MATRIX"
65fi
66
67AC_ARG_ENABLE(optimize,[  --enable-optimize gcc O2 option compilation default=no],
68optimize=$enableval,optimize=no)
69if test $optimize = yes ; then
70CFLAGS="$CFLAGS $CFLAGS_OPTIMIZE"
71fi
72
73AC_ARG_ENABLE(ipv6aggidsnmp,[  --enable-ipv6aggidsnmp aggregation for IPv6 prefix, localisation based on SNMP ID=no],
74ipv6aggidsnmp=$enableval,ipv6aggidsnmp=no)
75if test $ipv6aggidsnmp = yes ; then
76CFLAGS="$CFLAGS $CFLAGS_IPV6AGGIDSNMP"
77fi
78
79AC_ARG_ENABLE(ipv6linkagg,[  --enable-ipv6linkagg aggregation for IPv6 link agg (based on SNMP ID)=no],
80ipv6linkagg=$enableval,ipv6linkagg=no)
81if test $ipv6linkagg = yes ; then
82CFLAGS="$CFLAGS $CFLAGS_IPV6LINKAGG"
83fi
84
85AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
86debug=$enableval,debug=no)
87if test $debug = yes ; then
88CFLAGS="$CFLAGS $CFLAGS_DEBUG"
89fi
90
91AC_ARG_ENABLE(debugagg,[  --enable-debugagg Debug Agg mode definition=no],
92debugagg=$enableval,debugagg=no)
93if test $debugagg = yes ; then
94CFLAGS="$CFLAGS $CFLAGS_DEBUGAGG"
95fi
96
97AC_ARG_ENABLE(printunknownsubnet,[  --enable-printunknownsubnet Print Subnets who are not registered in subnet configuration file=no],
98printunknownsubnet=$enableval,printunknownsubnet=no)
99if test $printunknownsubnet = yes ; then
100CFLAGS="$CFLAGS $CFLAGS_PRINTUNKNOWNSUBNET"
101fi
102
103AC_SUBST(CFLAGS)
104
105# Checks for library functions.
106AC_FUNC_MALLOC
107AC_CHECK_FUNCS([getpass inet_ntoa inet_pton memset socket strerror strspn])
108AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
109AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
110AC_CONFIG_FILES([Makefile
111                 src/Makefile])
112
113
114AC_OUTPUT
Note: See TracBrowser for help on using the browser.