root/trunk/configure.in @ 76

Revision 76, 3.0 KB (checked in by andreu, 14 years ago)

error in configure.in, more checkpoints in template.c, few correction in others files

  • 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)
[57]5AC_INIT(RENETCOL, 0.0.12beta, 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"
15CFLAGS_IPV4AGGIDR="-DIPV4AGGIDR"
16CFLAGS_MATRIX="-DMATRIX"
[28]17CFLAGS_DEBUG="-DDEBUG"
[29]18CFLAGS_DEBUGAGG="-DDEBUGAGG"
[32]19CFLAGS_PRINTUNKNOWNSUBNET="-DPRINTUNKNOWNSUBNET"
[5]20                               
21# Checks for programs.
22AC_PROG_CC
23
24# Checks for header files.
25AC_HEADER_STDC
26AC_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])
27
28# Checks for typedefs, structures, and compiler characteristics.
29AC_C_CONST
30AC_STRUCT_TM
31AC_C_VOLATILE
32AC_TYPE_SIZE_T
33
[29]34AC_ARG_ENABLE(optimize,[  --enable-optimize gcc O2 option compilation default=no],
35optimize=$enableval,optimize=no)
36if test $optimize = yes ; then
37CFLAGS="$CFLAGS $CFLAGS_OPTIMIZE"
38fi
39
[60]40AC_ARG_ENABLE(asacc,[  --enable-asacc AS accounting default=no],
41asacc=$enableval,asacc=no)
42if test $asacc = yes ; then
43CFLAGS="$CFLAGS $CFLAGS_ASACC"
44fi
45
46AC_ARG_ENABLE(matrix,[  --enable-matrix inter pop matrix default=no],
[59]47matrix=$enableval,matrix=no)
48if test $matrix = yes ; then
49CFLAGS="$CFLAGS $CFLAGS_MATRIX"
[22]50fi
51
[59]52AC_ARG_ENABLE(ipv4aggidr,[  --enable-ipv4aggidr aggregation for IPv4 prefix=no, flow localisation by routeur identification, if yes, enable-ipv4aggsnmp MUST be NO],
53ipv4aggidr=$enableval,ipv4aggidr=no)
54if test $ipv4aggidr = yes ; then
55CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDR"
56fi
57
[76]58AC_ARG_ENABLE(ipv4aggidsnmp,[  --enable-ipv4aggidsnmp aggregation for IPv4 prefix, localisation based on SNMP ID=yes],
[59]59ipv4aggidsnmp=$enableval,ipv4aggidsnmp=yes)
60if test $ipv4aggidsnmp = yes ; then
61CFLAGS="$CFLAGS $CFLAGS_IPV4AGGIDSNMP"
62fi
63
[28]64AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
65debug=$enableval,debug=no)
66if test $debug = yes ; then
67CFLAGS="$CFLAGS $CFLAGS_DEBUG"
[22]68fi
69
[29]70AC_ARG_ENABLE(debugagg,[  --enable-debugagg Debug Agg mode definition=no],
71debugagg=$enableval,debugagg=no)
72if test $debugagg = yes ; then
73CFLAGS="$CFLAGS $CFLAGS_DEBUGAGG"
74fi
75
[32]76AC_ARG_ENABLE(printunknownsubnet,[  --enable-printunknownsubnet Print Subnets who are not registered in subnet configuration file=no],
77printunknownsubnet=$enableval,printunknownsubnet=no)
78if test $printunknownsubnet = yes ; then
79CFLAGS="$CFLAGS $CFLAGS_PRINTUNKNOWNSUBNET"
80fi
81
[20]82AC_SUBST(CFLAGS)
83
[5]84# Checks for library functions.
85AC_FUNC_MALLOC
86AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
87AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
88AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
89AC_CONFIG_FILES([Makefile
90                 src/Makefile])
[20]91
92
[5]93AC_OUTPUT
Note: See TracBrowser for help on using the browser.