Add Session-Timeout support, prepare bandwidth var
[rahunas] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 m4_define(major, 0)
5 m4_define(minor, 1)
6 m4_define(micro, 1)
7
8 AC_PREREQ(2.61)
9 RAHUNAS_VERSION=0.1.1
10 AC_INIT([RahuNAS], major.minor.micro,[neo.neutron@gmail.com] )
11 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
12 AM_MAINTAINER_MODE
13 AC_CONFIG_SRCDIR([src/rahunasd.h])
14 AC_CONFIG_HEADER([config.h])
15
16 AC_SUBST(RAHUNAS_VERSION, major.minor.micro)
17 AC_SUBST(PROGRAM, "RahuNAS")
18
19 # Checks for programs.
20 AC_PROG_CC
21 AC_PROG_RANLIB
22 AC_PROG_INSTALL
23
24 # Checks for libraries.
25 dnl Check for GNet 2.x
26 GNET_REQ=2.0.8
27 PKG_CHECK_MODULES(LIBGNET, [ gnet-2.0 >= $GNET_REQ ], , [ AC_MSG_ERROR([GNet is required]) ])
28
29 AC_SUBST(LIBGNET_CFLAGS)
30 AC_SUBST(LIBGNET_LIBS)
31
32 dnl Check for LibGDA 3.x
33 LIBGDA_REQ=3.0.2
34 PKG_CHECK_MODULES(LIBGDA, [ libgda-3.0 >= $LIBGDA_REQ ], , [ AC_MSG_ERROR([LibGDA is required]) ])
35
36 AC_SUBST(LIBGDA_CFLAGS)
37 AC_SUBST(LIBGDA_LIBS)
38
39 # Checks for header files.
40 AC_HEADER_STDC
41 AC_HEADER_SYS_WAIT
42 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h syslog.h unistd.h])
43
44 # Checks for typedefs, structures, and compiler characteristics.
45 AC_C_CONST
46 AC_TYPE_PID_T
47 AC_STRUCT_TM
48
49 # Checks for library functions.
50 AC_FUNC_FORK
51 AC_FUNC_MALLOC
52 AC_FUNC_REALLOC
53 AC_TYPE_SIGNAL
54 AC_FUNC_STRFTIME
55 AC_CHECK_FUNCS([dup2])
56 AC_CONFIG_FILES([
57         Makefile
58         xmlrpc/Makefile
59         src/Makefile
60         data/Makefile
61   src/include/linux/netfilter_ipv4/Makefile
62 ])
63
64 AC_OUTPUT