git-svn: trunk@4432
aCaB authored on 2008/11/19 03:43:38... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Nov 18 18:40:32 CET 2008 (acab) |
|
2 |
+----------------------------------- |
|
3 |
+ * configure: enable mempool by default (where available) |
|
4 |
+ |
|
1 | 5 |
Tue Nov 18 14:06:04 EET 2008 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav/libclamav.map, libclamav/mpool.c: remove nonexistent |
... | ... |
@@ -317,7 +317,7 @@ DISTCLEANFILES = target.h |
317 | 317 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Waggregate-return \ |
318 | 318 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wmissing-format-attribute \ |
319 | 319 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=missing-format-attribute \ |
320 |
-@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wpadded -Wno-error=type-limits \ |
|
320 |
+@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=type-limits \ |
|
321 | 321 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=unused-value \ |
322 | 322 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=unused-variable \ |
323 | 323 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wcast-qual -Wno-error=cast-qual \ |
... | ... |
@@ -333,7 +333,6 @@ DISTCLEANFILES = target.h |
333 | 333 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -D_FORTIFY_SOURCE=2 \ |
334 | 334 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -fstack-protector-all \ |
335 | 335 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wstack-protector \ |
336 |
-@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=padded \ |
|
337 | 336 |
@DISTCHECK_ENABLE_FLAGS_TRUE@ -Wno-error=aggregate-return" |
338 | 337 |
all: clamav-config.h |
339 | 338 |
$(MAKE) $(AM_MAKEFLAGS) all-recursive |
... | ... |
@@ -1539,7 +1539,7 @@ Optional Features: |
1539 | 1539 |
--enable-ltdl-install install libltdl |
1540 | 1540 |
--disable-gcc-vcheck do not check for buggy gcc version |
1541 | 1541 |
--enable-experimental enable experimental code |
1542 |
- --enable-mempool enable memory pools |
|
1542 |
+ --disable-mempool disable memory pools |
|
1543 | 1543 |
--enable-check Enable 'check' unit tests (default=auto) |
1544 | 1544 |
--disable-rpath do not hardcode runtime library paths |
1545 | 1545 |
--enable-coverage turn on test coverage [default=no] |
... | ... |
@@ -16078,13 +16078,13 @@ fi |
16078 | 16078 |
if test "${enable_mempool+set}" = set; then |
16079 | 16079 |
enableval=$enable_mempool; enable_mempool=$enableval |
16080 | 16080 |
else |
16081 |
- enable_mempool="no" |
|
16081 |
+ enable_mempool="yes" |
|
16082 | 16082 |
fi |
16083 | 16083 |
|
16084 | 16084 |
if test "$enable_mempool" = "yes"; then |
16085 | 16085 |
if test "$ac_cv_c_mmap_private" != "yes"; then |
16086 |
- { echo "$as_me:$LINENO: WARNING: ****** mempool support disabled (mmap not available or not usable)" >&5 |
|
16087 |
-echo "$as_me: WARNING: ****** mempool support disabled (mmap not available or not usable)" >&2;} |
|
16086 |
+ { echo "$as_me:$LINENO: ****** mempool support disabled (mmap not available or not usable)" >&5 |
|
16087 |
+echo "$as_me: ****** mempool support disabled (mmap not available or not usable)" >&6;} |
|
16088 | 16088 |
else |
16089 | 16089 |
{ echo "$as_me:$LINENO: checking for getpagesize" >&5 |
16090 | 16090 |
echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
... | ... |
@@ -16277,8 +16277,8 @@ _ACEOF |
16277 | 16277 |
fi |
16278 | 16278 |
|
16279 | 16279 |
if test "$ac_cv_c_mmap_anonymous" = "no"; then |
16280 |
- { echo "$as_me:$LINENO: WARNING: ****** mempool support disabled (anonymous mmap not available)" >&5 |
|
16281 |
-echo "$as_me: WARNING: ****** mempool support disabled (anonymous mmap not available)" >&2;} |
|
16280 |
+ { echo "$as_me:$LINENO: ****** mempool support disabled (anonymous mmap not available)" >&5 |
|
16281 |
+echo "$as_me: ****** mempool support disabled (anonymous mmap not available)" >&6;} |
|
16282 | 16282 |
else |
16283 | 16283 |
|
16284 | 16284 |
cat >>confdefs.h <<\_ACEOF |
... | ... |
@@ -16288,8 +16288,8 @@ _ACEOF |
16288 | 16288 |
fi |
16289 | 16289 |
|
16290 | 16290 |
else |
16291 |
- { echo "$as_me:$LINENO: WARNING: ****** mempool support disabled (getpagesize not available)" >&5 |
|
16292 |
-echo "$as_me: WARNING: ****** mempool support disabled (getpagesize not available)" >&2;} |
|
16291 |
+ { echo "$as_me:$LINENO: ****** mempool support disabled (getpagesize not available)" >&5 |
|
16292 |
+echo "$as_me: ****** mempool support disabled (getpagesize not available)" >&6;} |
|
16293 | 16293 |
fi |
16294 | 16294 |
|
16295 | 16295 |
fi |
... | ... |
@@ -421,19 +421,19 @@ AC_CHECK_FUNCS([poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat |
421 | 421 |
AC_C_FUNC_MMAP_PRIVATE |
422 | 422 |
AC_FUNC_FSEEKO |
423 | 423 |
|
424 |
-AC_ARG_ENABLE([mempool],[ --enable-mempool enable memory pools], enable_mempool=$enableval, enable_mempool="no") |
|
424 |
+AC_ARG_ENABLE([mempool],[ --disable-mempool disable memory pools], enable_mempool=$enableval, enable_mempool="yes") |
|
425 | 425 |
if test "$enable_mempool" = "yes"; then |
426 | 426 |
if test "$ac_cv_c_mmap_private" != "yes"; then |
427 |
- AC_MSG_WARN([****** mempool support disabled (mmap not available or not usable)]) |
|
427 |
+ AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)]) |
|
428 | 428 |
else |
429 | 429 |
AC_CHECK_FUNC([getpagesize], [ |
430 | 430 |
AC_C_FUNC_MMAP_ANONYMOUS |
431 | 431 |
if test "$ac_cv_c_mmap_anonymous" = "no"; then |
432 |
- AC_MSG_WARN([****** mempool support disabled (anonymous mmap not available)]) |
|
432 |
+ AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)]) |
|
433 | 433 |
else |
434 | 434 |
AC_DEFINE([USE_MPOOL],1,[enable memory pools]) |
435 | 435 |
fi |
436 |
- ], [AC_MSG_WARN([****** mempool support disabled (getpagesize not available)])]) |
|
436 |
+ ], [AC_MSG_NOTICE([****** mempool support disabled (getpagesize not available)])]) |
|
437 | 437 |
fi |
438 | 438 |
fi |
439 | 439 |
|