-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
65 lines (51 loc) · 1.64 KB
/
configure.ac
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
61
62
63
64
65
AC_PREREQ([2.68])
AC_INIT([security], [0.1])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.12 -Wall -Werror foreign parallel-tests])
AM_SILENT_RULES([yes])
AM_PROG_AR
LT_PREREQ([2.2.6])
LT_INIT([dlopen disable-static])
AC_ARG_WITH([rst2man],
AS_HELP_STRING(
[--with-rst2man=PATH],
[Location of rst2man (auto)]),
[RST2MAN="$withval"],
[AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], [])])
PKG_CHECK_VAR([VARNISHAPI_LIBDIR], [varnishapi], [libdir])
AC_SUBST([VARNISH_LIBRARY_PATH],
[$VARNISHAPI_LIBDIR:$VARNISHAPI_LIBDIR/varnish])
dnl Check the ModSecurity libraries (modsecurity)
PKG_CHECK_VAR([MODSECURITY_LIBDIR], [modsecurity], [libdir])
PKG_CHECK_VAR([MODSECURITY_CFLAGS], [modsecurity], [cflags])
AC_SUBST([MODSECURITY_LIBRARY_PATH],
[$MODSECURITY_LIBDIR:$MODSECURITY_LIBDIR/modsecurity])
AC_SUBST([MODSECURITY_CFLAGS], [$MODSECURITY_CFLAGS])
AC_CHECK_LIB([modsecurity], [msc_init], [
AC_DEFINE([HAVE_MODSECURITYLIB], [1],
[Define to 1 if you have the `libmodsecurity' library ( ).])], [
AC_MSG_ERROR([ModSecurity libraries not found!])
AC_CHECK_HEADERS([modsecurity/modsecurity.h], [], [
AC_MSG_ERROR([ModSecurity headers not found...])])
])
VARNISH_PREREQ([7.0.0])
VARNISH_VMODS([sec])
AC_CONFIG_FILES([
Makefile
src/Makefile
security.spec
])
AC_OUTPUT
AS_ECHO("
==== $PACKAGE_STRING ====
varnish: $VARNISH_VERSION
prefix: $prefix
vmoddir: $vmoddir
vcldir: $vcldir
pkgvcldir: $pkgvcldir
compiler: $CC
cflags: $CFLAGS
ldflags: $LDFLAGS
")