root/tags/REL-0.0.11beta/trunk/configure.in @ 42

Revision 42, 2.4 KB (checked in by andreu, 15 years ago)

ticket #17 on trac and some comments modifications

  • 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)
[41]5AC_INIT(RENETCOL, 0.0.11beta, andreu@renater.fr)
[5]6AC_CONFIG_SRCDIR(src/)
7AC_PROG_MAKE_SET
[8]8AM_CONFIG_HEADER(config.h)
[5]9AM_INIT_AUTOMAKE
[42]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"
[20]13CFLAGS_CRIHAN="-DCRIHAN"
[22]14CFLAGS_IPV4AGG="-DIPV4AGG"
[28]15CFLAGS_DEBUG="-DDEBUG"
[29]16CFLAGS_DEBUGAGG="-DDEBUGAGG"
[32]17CFLAGS_PRINTUNKNOWNSUBNET="-DPRINTUNKNOWNSUBNET"
[5]18                               
19# Checks for programs.
20AC_PROG_CC
21
22# Checks for header files.
23AC_HEADER_STDC
24AC_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])
25
26# Checks for typedefs, structures, and compiler characteristics.
27AC_C_CONST
28AC_STRUCT_TM
29AC_C_VOLATILE
30AC_TYPE_SIZE_T
31
[29]32AC_ARG_ENABLE(optimize,[  --enable-optimize gcc O2 option compilation default=no],
33optimize=$enableval,optimize=no)
34if test $optimize = yes ; then
35CFLAGS="$CFLAGS $CFLAGS_OPTIMIZE"
36fi
37
[20]38AC_ARG_ENABLE(crihan,[  --enable-crihan allow files outputs for CRIHAN tools default=no],
39crihan=$enableval,crihan=no)
40if test $crihan = yes ; then
41CFLAGS="$CFLAGS $CFLAGS_CRIHAN"
42fi
43
[22]44AC_ARG_ENABLE(ipv4agg,[  --enable-ipv4agg aggregation for IPv4 prefix=yes],
45ipv4agg=$enableval,ipv4agg=yes)
46if test $ipv4agg = yes ; then
47CFLAGS="$CFLAGS $CFLAGS_IPV4AGG"
48fi
49
[28]50AC_ARG_ENABLE(debug,[  --enable-debug Debug mode definition=no],
51debug=$enableval,debug=no)
52if test $debug = yes ; then
53CFLAGS="$CFLAGS $CFLAGS_DEBUG"
[22]54fi
55
[29]56AC_ARG_ENABLE(debugagg,[  --enable-debugagg Debug Agg mode definition=no],
57debugagg=$enableval,debugagg=no)
58if test $debugagg = yes ; then
59CFLAGS="$CFLAGS $CFLAGS_DEBUGAGG"
60fi
61
[32]62AC_ARG_ENABLE(printunknownsubnet,[  --enable-printunknownsubnet Print Subnets who are not registered in subnet configuration file=no],
63printunknownsubnet=$enableval,printunknownsubnet=no)
64if test $printunknownsubnet = yes ; then
65CFLAGS="$CFLAGS $CFLAGS_PRINTUNKNOWNSUBNET"
66fi
67
[20]68AC_SUBST(CFLAGS)
69
[5]70# Checks for library functions.
71AC_FUNC_MALLOC
72AC_CHECK_FUNCS([getpass inet_ntoa memset socket strerror strspn])
73AC_CHECK_FUNCS([mempcpy perror syslog sscanf signal malloc strcpy ntohl])
74AC_CHECK_FUNCS([strncmp strtok memcpy getaddrinfo gai_strerror sendto])
75AC_CONFIG_FILES([Makefile
76                 src/Makefile])
[20]77
78
[5]79AC_OUTPUT
Note: See TracBrowser for help on using the browser.