root/branches/renetcolSMP/configure.in @ 166

Revision 166, 4.2 KB (checked in by andreu, 8 years ago)

RECORDFLOW option

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