-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.in
54 lines (42 loc) · 1.15 KB
/
configure.in
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
# -*- Autoconf -*-
# @configure_input@
#
# Configuration scipt for eCAP Library
#
# Process this file with autoconf to produce a configure script.
AC_INIT(eCAP ClamAV Adapter, 0.2.1, [http://www.e-cap.org/], ecap_clamav_adapter)
AC_CONFIG_AUX_DIR(cfgaux)
AC_CONFIG_MACRO_DIR(cfgaux)
AC_CONFIG_SRCDIR([src/ClamAv.cc])
AC_CONFIG_HEADERS(src/autoconf.h)
AM_INIT_AUTOMAKE([nostdinc])
AM_MAINTAINER_MODE
LT_INIT
m4_include(cfgaux/xstd_common.ac)
m4_include(cfgaux/xstd_cpp_checks.ac)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
dnl check for libecap v0.2.x
PKG_CHECK_MODULES(LIBECAP, [libecap > 0.2 libecap < 0.3])
# Checks for header files.
AC_CHECK_HEADERS([libecap/adapter/service.h])
AC_CHECK_HEADERS(clamav.h)
AC_CHECK_LIB([clamav], [main],
[LIBS="-lclamav $LIBS"],
[AC_MSG_FAILURE([libclamav is not found or unusable])]
)
# Checks for typedefs, structures, and compiler characteristics.
# AC_HEADER_STDBOOL
# AC_C_CONST
# Checks for library functions.
AC_CONFIG_FILES([\
Makefile \
src/Makefile \
])
AC_OUTPUT