Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 679314
Collapse All | Expand All

(-)file_not_specified_in_diff (-41 / +9 lines)
Line  Link Here
0
-- a/configure.in
0
++ b/configure.in
Lines 5-10 Link Here
5
unset CDPATH
5
unset CDPATH
6
6
7
AC_PROG_CXX
7
AC_PROG_CXX
8
PKG_PROG_PKG_CONFIG
8
9
9
AC_PREFIX_DEFAULT(/usr/local)
10
AC_PREFIX_DEFAULT(/usr/local)
10
11
Lines 83-130 Link Here
83
	AC_DEFINE(SSLTUNNEL)
84
	AC_DEFINE(SSLTUNNEL)
84
fi
85
fi
85
86
86
AC_MSG_CHECKING(for ClamAV scanner library)
87
88
if test "$enable_clamav" = "yes"
87
if test "$enable_clamav" = "yes"
89
then
88
then
90
	clamprefix="`clamav-config --prefix 2>/dev/null`"
89
	PKG_CHECK_MODULES(clamav, libclamav,
91
	clamversion="`clamav-config --version 2>/dev/null`"
90
		[CFLAGS="$clamav_CFLAGS $CFLAGS"
92
91
		 LDFLAGS="$clamav_LIBS $LDFLAGS"
93
	if test "x$clamprefix" = "x"
92
94
	then
93
		 SCANNEROBJECTS="clamlibscanner.o"
95
		AC_MSG_RESULT([clamav-config not found])
94
		 AC_DEFINE(USECLAMLIB)
96
95
		])
97
		echo ""
98
		echo " Error finding ClamAV installation!"
99
		echo " Add ClamAV binaries path to PATH and run configure again."
100
		echo ""
101
		echo " To disable ClamAV library support, use --disable-clamav."
102
		echo ""
103
104
		exit 1
105
	fi
106
107
	for cl in `clamav-config --cflags 2>/dev/null`; do
108
		if test "x`echo $cl | perl -ne 'print if (/^-I/)' 2>/dev/null`" != "x"
109
		then
110
			CFLAGS="$CFLAGS $cl"
111
		fi
112
	done
113
114
	for cl in `clamav-config --libs 2>/dev/null`; do
115
		if test "x`echo $cl | perl -ne 'print if (/(^-L|thread|c_r)/)' 2>/dev/null`" != "x"
116
		then
117
			LDFLAGS="$LDFLAGS $cl"
118
		fi
119
	done
120
	LDFLAGS="$LDFLAGS -lclamav"
121
122
	SCANNEROBJECTS="clamlibscanner.o"
123
	AC_DEFINE(USECLAMLIB, 1, [Have clamav scanner])
124
125
	AC_MSG_RESULT([found $clamversion in $clamprefix])
126
else
127
	AC_MSG_RESULT([disabled :-(])
128
fi
96
fi
129
97
130
AC_MSG_CHECKING(for Trend Micro scanner)
98
AC_MSG_CHECKING(for Trend Micro scanner)

Return to bug 679314