git-svn: trunk@3041
Tomasz Kojm authored on 2007/05/01 21:01:12... | ... |
@@ -316,10 +316,7 @@ void help(void) |
316 | 316 |
mprintf(" --detect-broken Try to detect broken executable files\n"); |
317 | 317 |
mprintf(" --block-encrypted Block encrypted archives\n"); |
318 | 318 |
mprintf(" --block-max Block archives that exceed limits\n"); |
319 |
-#ifdef WITH_CURL |
|
320 | 319 |
mprintf(" --mail-follow-urls Download and scan URLs\n"); |
321 |
-#endif |
|
322 |
- |
|
323 | 320 |
mprintf("\n"); |
324 | 321 |
mprintf(" --max-space=#n Only extract first #n kilobytes from\n"); |
325 | 322 |
mprintf(" archived files\n"); |
... | ... |
@@ -1527,7 +1527,6 @@ Optional Packages: |
1527 | 1527 |
--with-zlib=DIR path to directory containing zlib library (default= |
1528 | 1528 |
/usr/local or /usr if not found in /usr/local) |
1529 | 1529 |
--with-sendmail=PATH specify location of Sendmail binary (default=auto find) |
1530 |
- --with-libcurl support URLs downloading with libcurl (default=auto) |
|
1531 | 1530 |
--with-user=uid name of the clamav user (default=clamav) |
1532 | 1531 |
--with-group=gid name of the clamav group (default=clamav) |
1533 | 1532 |
--with-dbdir=path path to virus database directory |
... | ... |
@@ -4713,7 +4712,7 @@ ia64-*-hpux*) |
4713 | 4713 |
;; |
4714 | 4714 |
*-*-irix6*) |
4715 | 4715 |
# Find out which ABI we are using. |
4716 |
- echo '#line 4716 "configure"' > conftest.$ac_ext |
|
4716 |
+ echo '#line 4715 "configure"' > conftest.$ac_ext |
|
4717 | 4717 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4718 | 4718 |
(eval $ac_compile) 2>&5 |
4719 | 4719 |
ac_status=$? |
... | ... |
@@ -7440,11 +7439,11 @@ else |
7440 | 7440 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7441 | 7441 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7442 | 7442 |
-e 's:$: $lt_compiler_flag:'` |
7443 |
- (eval echo "\"\$as_me:7443: $lt_compile\"" >&5) |
|
7443 |
+ (eval echo "\"\$as_me:7442: $lt_compile\"" >&5) |
|
7444 | 7444 |
(eval "$lt_compile" 2>conftest.err) |
7445 | 7445 |
ac_status=$? |
7446 | 7446 |
cat conftest.err >&5 |
7447 |
- echo "$as_me:7447: \$? = $ac_status" >&5 |
|
7447 |
+ echo "$as_me:7446: \$? = $ac_status" >&5 |
|
7448 | 7448 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7449 | 7449 |
# The compiler can only warn and ignore the option if not recognized |
7450 | 7450 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -7708,11 +7707,11 @@ else |
7708 | 7708 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7709 | 7709 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7710 | 7710 |
-e 's:$: $lt_compiler_flag:'` |
7711 |
- (eval echo "\"\$as_me:7711: $lt_compile\"" >&5) |
|
7711 |
+ (eval echo "\"\$as_me:7710: $lt_compile\"" >&5) |
|
7712 | 7712 |
(eval "$lt_compile" 2>conftest.err) |
7713 | 7713 |
ac_status=$? |
7714 | 7714 |
cat conftest.err >&5 |
7715 |
- echo "$as_me:7715: \$? = $ac_status" >&5 |
|
7715 |
+ echo "$as_me:7714: \$? = $ac_status" >&5 |
|
7716 | 7716 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7717 | 7717 |
# The compiler can only warn and ignore the option if not recognized |
7718 | 7718 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -7812,11 +7811,11 @@ else |
7812 | 7812 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7813 | 7813 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7814 | 7814 |
-e 's:$: $lt_compiler_flag:'` |
7815 |
- (eval echo "\"\$as_me:7815: $lt_compile\"" >&5) |
|
7815 |
+ (eval echo "\"\$as_me:7814: $lt_compile\"" >&5) |
|
7816 | 7816 |
(eval "$lt_compile" 2>out/conftest.err) |
7817 | 7817 |
ac_status=$? |
7818 | 7818 |
cat out/conftest.err >&5 |
7819 |
- echo "$as_me:7819: \$? = $ac_status" >&5 |
|
7819 |
+ echo "$as_me:7818: \$? = $ac_status" >&5 |
|
7820 | 7820 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7821 | 7821 |
then |
7822 | 7822 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -10109,7 +10108,7 @@ else |
10109 | 10109 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10110 | 10110 |
lt_status=$lt_dlunknown |
10111 | 10111 |
cat > conftest.$ac_ext <<EOF |
10112 |
-#line 10112 "configure" |
|
10112 |
+#line 10111 "configure" |
|
10113 | 10113 |
#include "confdefs.h" |
10114 | 10114 |
|
10115 | 10115 |
#if HAVE_DLFCN_H |
... | ... |
@@ -10209,7 +10208,7 @@ else |
10209 | 10209 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10210 | 10210 |
lt_status=$lt_dlunknown |
10211 | 10211 |
cat > conftest.$ac_ext <<EOF |
10212 |
-#line 10212 "configure" |
|
10212 |
+#line 10211 "configure" |
|
10213 | 10213 |
#include "confdefs.h" |
10214 | 10214 |
|
10215 | 10215 |
#if HAVE_DLFCN_H |
... | ... |
@@ -12545,11 +12544,11 @@ else |
12545 | 12545 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12546 | 12546 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12547 | 12547 |
-e 's:$: $lt_compiler_flag:'` |
12548 |
- (eval echo "\"\$as_me:12548: $lt_compile\"" >&5) |
|
12548 |
+ (eval echo "\"\$as_me:12547: $lt_compile\"" >&5) |
|
12549 | 12549 |
(eval "$lt_compile" 2>conftest.err) |
12550 | 12550 |
ac_status=$? |
12551 | 12551 |
cat conftest.err >&5 |
12552 |
- echo "$as_me:12552: \$? = $ac_status" >&5 |
|
12552 |
+ echo "$as_me:12551: \$? = $ac_status" >&5 |
|
12553 | 12553 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
12554 | 12554 |
# The compiler can only warn and ignore the option if not recognized |
12555 | 12555 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -12649,11 +12648,11 @@ else |
12649 | 12649 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12650 | 12650 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12651 | 12651 |
-e 's:$: $lt_compiler_flag:'` |
12652 |
- (eval echo "\"\$as_me:12652: $lt_compile\"" >&5) |
|
12652 |
+ (eval echo "\"\$as_me:12651: $lt_compile\"" >&5) |
|
12653 | 12653 |
(eval "$lt_compile" 2>out/conftest.err) |
12654 | 12654 |
ac_status=$? |
12655 | 12655 |
cat out/conftest.err >&5 |
12656 |
- echo "$as_me:12656: \$? = $ac_status" >&5 |
|
12656 |
+ echo "$as_me:12655: \$? = $ac_status" >&5 |
|
12657 | 12657 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12658 | 12658 |
then |
12659 | 12659 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -14210,11 +14209,11 @@ else |
14210 | 14210 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14211 | 14211 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14212 | 14212 |
-e 's:$: $lt_compiler_flag:'` |
14213 |
- (eval echo "\"\$as_me:14213: $lt_compile\"" >&5) |
|
14213 |
+ (eval echo "\"\$as_me:14212: $lt_compile\"" >&5) |
|
14214 | 14214 |
(eval "$lt_compile" 2>conftest.err) |
14215 | 14215 |
ac_status=$? |
14216 | 14216 |
cat conftest.err >&5 |
14217 |
- echo "$as_me:14217: \$? = $ac_status" >&5 |
|
14217 |
+ echo "$as_me:14216: \$? = $ac_status" >&5 |
|
14218 | 14218 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
14219 | 14219 |
# The compiler can only warn and ignore the option if not recognized |
14220 | 14220 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -14314,11 +14313,11 @@ else |
14314 | 14314 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14315 | 14315 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14316 | 14316 |
-e 's:$: $lt_compiler_flag:'` |
14317 |
- (eval echo "\"\$as_me:14317: $lt_compile\"" >&5) |
|
14317 |
+ (eval echo "\"\$as_me:14316: $lt_compile\"" >&5) |
|
14318 | 14318 |
(eval "$lt_compile" 2>out/conftest.err) |
14319 | 14319 |
ac_status=$? |
14320 | 14320 |
cat out/conftest.err >&5 |
14321 |
- echo "$as_me:14321: \$? = $ac_status" >&5 |
|
14321 |
+ echo "$as_me:14320: \$? = $ac_status" >&5 |
|
14322 | 14322 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14323 | 14323 |
then |
14324 | 14324 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -16501,11 +16500,11 @@ else |
16501 | 16501 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16502 | 16502 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16503 | 16503 |
-e 's:$: $lt_compiler_flag:'` |
16504 |
- (eval echo "\"\$as_me:16504: $lt_compile\"" >&5) |
|
16504 |
+ (eval echo "\"\$as_me:16503: $lt_compile\"" >&5) |
|
16505 | 16505 |
(eval "$lt_compile" 2>conftest.err) |
16506 | 16506 |
ac_status=$? |
16507 | 16507 |
cat conftest.err >&5 |
16508 |
- echo "$as_me:16508: \$? = $ac_status" >&5 |
|
16508 |
+ echo "$as_me:16507: \$? = $ac_status" >&5 |
|
16509 | 16509 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16510 | 16510 |
# The compiler can only warn and ignore the option if not recognized |
16511 | 16511 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -16769,11 +16768,11 @@ else |
16769 | 16769 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16770 | 16770 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16771 | 16771 |
-e 's:$: $lt_compiler_flag:'` |
16772 |
- (eval echo "\"\$as_me:16772: $lt_compile\"" >&5) |
|
16772 |
+ (eval echo "\"\$as_me:16771: $lt_compile\"" >&5) |
|
16773 | 16773 |
(eval "$lt_compile" 2>conftest.err) |
16774 | 16774 |
ac_status=$? |
16775 | 16775 |
cat conftest.err >&5 |
16776 |
- echo "$as_me:16776: \$? = $ac_status" >&5 |
|
16776 |
+ echo "$as_me:16775: \$? = $ac_status" >&5 |
|
16777 | 16777 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
16778 | 16778 |
# The compiler can only warn and ignore the option if not recognized |
16779 | 16779 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -16873,11 +16872,11 @@ else |
16873 | 16873 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16874 | 16874 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16875 | 16875 |
-e 's:$: $lt_compiler_flag:'` |
16876 |
- (eval echo "\"\$as_me:16876: $lt_compile\"" >&5) |
|
16876 |
+ (eval echo "\"\$as_me:16875: $lt_compile\"" >&5) |
|
16877 | 16877 |
(eval "$lt_compile" 2>out/conftest.err) |
16878 | 16878 |
ac_status=$? |
16879 | 16879 |
cat out/conftest.err >&5 |
16880 |
- echo "$as_me:16880: \$? = $ac_status" >&5 |
|
16880 |
+ echo "$as_me:16879: \$? = $ac_status" >&5 |
|
16881 | 16881 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16882 | 16882 |
then |
16883 | 16883 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -22618,63 +22617,6 @@ fi |
22618 | 22618 |
|
22619 | 22619 |
fi |
22620 | 22620 |
|
22621 |
- |
|
22622 |
-# Check whether --with-libcurl was given. |
|
22623 |
-if test "${with_libcurl+set}" = set; then |
|
22624 |
- withval=$with_libcurl; case "$withval" in |
|
22625 |
- yes|no) lcurl="$withval" ;; |
|
22626 |
- *) { { echo "$as_me:$LINENO: error: --with-libcurl does not take an argument" >&5 |
|
22627 |
-echo "$as_me: error: --with-libcurl does not take an argument" >&2;} |
|
22628 |
- { (exit 1); exit 1; }; } ;; |
|
22629 |
- esac |
|
22630 |
-else |
|
22631 |
- lcurl=auto |
|
22632 |
-fi |
|
22633 |
- |
|
22634 |
- |
|
22635 |
-if test "$lcurl" != "no" -a "$enable_experimental" != "yes" |
|
22636 |
-then |
|
22637 |
- my_cv_curl_vers=NONE |
|
22638 |
- check="7.10.0" |
|
22639 |
- check_hex="070A00" |
|
22640 |
- |
|
22641 |
- { echo "$as_me:$LINENO: checking for curl >= $check" >&5 |
|
22642 |
-echo $ECHO_N "checking for curl >= $check... $ECHO_C" >&6; } |
|
22643 |
- |
|
22644 |
- if eval curl-config --version 2>/dev/null >/dev/null; then |
|
22645 |
- ver=`curl-config --version | sed -e "s/libcurl //g"` |
|
22646 |
- hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'` |
|
22647 |
- fail=`echo "ibase=16; if($hex_ver<$check_hex) 1" | bc` |
|
22648 |
- |
|
22649 |
- if test x$fail != x1; then |
|
22650 |
- curl_libs=`curl-config --libs` |
|
22651 |
- # openssl libs are required to link libcurl |
|
22652 |
- openssl_libs="`pkg-config --libs openssl`" |
|
22653 |
- curl_flags=`curl-config --cflags` |
|
22654 |
- LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $curl_libs $openssl_libs" |
|
22655 |
- CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include $curl_flags" |
|
22656 |
- my_cv_curl_vers="$ver" |
|
22657 |
- { echo "$as_me:$LINENO: result: $my_cv_curl_vers" >&5 |
|
22658 |
-echo "${ECHO_T}$my_cv_curl_vers" >&6; } |
|
22659 |
- |
|
22660 |
-cat >>confdefs.h <<\_ACEOF |
|
22661 |
-#define WITH_CURL 1 |
|
22662 |
-_ACEOF |
|
22663 |
- |
|
22664 |
- else |
|
22665 |
- { echo "$as_me:$LINENO: result: FAILED" >&5 |
|
22666 |
-echo "${ECHO_T}FAILED" >&6; } |
|
22667 |
- { echo "$as_me:$LINENO: WARNING: $ver is too old. Need version $check or higher." >&5 |
|
22668 |
-echo "$as_me: WARNING: $ver is too old. Need version $check or higher." >&2;} |
|
22669 |
- fi |
|
22670 |
- else |
|
22671 |
- { echo "$as_me:$LINENO: result: FAILED" >&5 |
|
22672 |
-echo "${ECHO_T}FAILED" >&6; } |
|
22673 |
- { echo "$as_me:$LINENO: WARNING: curl-config was not found" >&5 |
|
22674 |
-echo "$as_me: WARNING: curl-config was not found" >&2;} |
|
22675 |
- fi |
|
22676 |
-fi |
|
22677 |
- |
|
22678 | 22621 |
# Check whether --enable-pthreads was given. |
22679 | 22622 |
if test "${enable_pthreads+set}" = set; then |
22680 | 22623 |
enableval=$enable_pthreads; have_pthreads=$enableval |
... | ... |
@@ -224,51 +224,6 @@ then |
224 | 224 |
AC_CHECK_LIB(gmp, __gmpz_init, [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lgmp"; AC_DEFINE(HAVE_GMP,1,have gmp installed)], [AC_CHECK_LIB(gmp, mpz_init, [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lgmp"; AC_DEFINE(HAVE_GMP,1,have gmp installed)], AC_MSG_WARN([****** GNU MP 2 or newer NOT FOUND - digital signature support will be disabled !]); want_dsig="no")]) |
225 | 225 |
fi |
226 | 226 |
|
227 |
-dnl libcurl |
|
228 |
-AC_ARG_WITH(libcurl, |
|
229 |
-[ --with-libcurl support URLs downloading with libcurl (default=auto)], |
|
230 |
-[ case "$withval" in |
|
231 |
- yes|no) lcurl="$withval" ;; |
|
232 |
- *) AC_MSG_ERROR([--with-libcurl does not take an argument]) ;; |
|
233 |
- esac], |
|
234 |
-[ lcurl=auto ]) |
|
235 |
- |
|
236 |
-dnl Based on http://curl.signal42.com/libcurl/using/autoconf.html |
|
237 |
-if test "$lcurl" != "no" -a "$enable_experimental" != "yes" |
|
238 |
-then |
|
239 |
- my_cv_curl_vers=NONE |
|
240 |
- dnl check is the plain-text version of the required version |
|
241 |
- check="7.10.0" |
|
242 |
- dnl check_hex must be UPPERCASE if any hex letters are present |
|
243 |
- check_hex="070A00" |
|
244 |
- |
|
245 |
- AC_MSG_CHECKING([for curl >= $check]) |
|
246 |
- |
|
247 |
- if eval curl-config --version 2>/dev/null >/dev/null; then |
|
248 |
- ver=`curl-config --version | sed -e "s/libcurl //g"` |
|
249 |
- hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'` |
|
250 |
- fail=`echo "ibase=16; if($hex_ver<$check_hex) 1" | bc` |
|
251 |
- |
|
252 |
- if test x$fail != x1; then |
|
253 |
- curl_libs=`curl-config --libs` |
|
254 |
- # openssl libs are required to link libcurl |
|
255 |
- openssl_libs="`pkg-config --libs openssl`" |
|
256 |
- curl_flags=`curl-config --cflags` |
|
257 |
- LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $curl_libs $openssl_libs" |
|
258 |
- CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include $curl_flags" |
|
259 |
- my_cv_curl_vers="$ver" |
|
260 |
- AC_MSG_RESULT([$my_cv_curl_vers]) |
|
261 |
- AC_DEFINE(WITH_CURL,1,use libcurl in mbox code) |
|
262 |
- else |
|
263 |
- AC_MSG_RESULT(FAILED) |
|
264 |
- AC_MSG_WARN([$ver is too old. Need version $check or higher.]) |
|
265 |
- fi |
|
266 |
- else |
|
267 |
- AC_MSG_RESULT(FAILED) |
|
268 |
- AC_MSG_WARN([curl-config was not found]) |
|
269 |
- fi |
|
270 |
-fi |
|
271 |
- |
|
272 | 227 |
AC_ARG_ENABLE(pthreads, |
273 | 228 |
[ --disable-pthreads disable POSIX threads support], |
274 | 229 |
have_pthreads=$enableval,) |