-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfigure.ac
More file actions
61 lines (48 loc) · 1.48 KB
/
configure.ac
File metadata and controls
61 lines (48 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([dhcpsnoopingd],[0.2],[michael-dev@fami-braun.de])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_LANG(C)
GCC_STACK_PROTECTOR
PKG_CHECK_MODULES(LIBNL, libnl-3.0)
AC_SUBST(LIBNL_CFLAGS)
AC_SUBST(LIBNL_LIBS)
PKG_CHECK_MODULES(LIBNLGENL, libnl-genl-3.0)
AC_SUBST(LIBNLGENL_CFLAGS)
AC_SUBST(LIBNLGENL_LIBS)
PKG_CHECK_MODULES(LIBNLNF, libnl-nf-3.0)
AC_SUBST(LIBNLNF_CFLAGS)
AC_SUBST(LIBNLNF_LIBS)
PKG_CHECK_MODULES(LIBNLROUTE, libnl-route-3.0)
AC_SUBST(LIBNLROUTE_CFLAGS)
AC_SUBST(LIBNLROUTE_LIBS)
#check if we want a debug build
AC_ARG_ENABLE(debug, [ --enable-debug enable debug output], [
if test "x$enableval" != "xno"; then
AC_DEFINE([DEBUG], , [Enable debug output])
fi
])
#check if version is given
AC_ARG_WITH(rev, [ --with-rev enable rev output], [
if test "x$withval" != "x"; then
AC_DEFINE_UNQUOTED([REV],"$withval",[revision])
fi
])
AC_ARG_WITH([nflog-group],
[AS_HELP_STRING([--with-nflog-group], [nflog group id, defaults to 3])],
AC_DEFINE_UNQUOTED([NFLOG_GROUP], $withval , [nflog group]),
AC_DEFINE([NFLOG_GROUP], 3 , [nflog group]))
# Checks for header files.
AC_HEADER_STDC
# Checks for library functions.
AC_FUNC_MEMCMP
AC_SEARCH_LIBS([floor], [m])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT