git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@978 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/10/07 10:08:14... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Oct 7 03:03:26 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * configure: disable support for readdir_r by default (can be enabled with |
|
4 |
+ --enable-readdir_r) |
|
5 |
+ |
|
1 | 6 |
Wed Oct 6 21:36:59 CEST 2004 (tk) |
2 | 7 |
---------------------------------- |
3 | 8 |
* configure: improve --disable-dns behaviour (patch by Tom G. Christensen |
... | ... |
@@ -1029,7 +1029,7 @@ Optional Features: |
1029 | 1029 |
--enable-debug enable debug code |
1030 | 1030 |
--enable-bigstack increase thread stack size |
1031 | 1031 |
--disable-gethostbyname_r disable support for gethostbyname_r |
1032 |
- --disable-readdir_r disable support for readdir_r |
|
1032 |
+ --enable-gethostbyname_r enable support for readdir_r |
|
1033 | 1033 |
|
1034 | 1034 |
Optional Packages: |
1035 | 1035 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
... | ... |
@@ -11407,7 +11407,7 @@ cat >>confdefs.h <<\_ACEOF |
11407 | 11407 |
#define C_BSD 1 |
11408 | 11408 |
_ACEOF |
11409 | 11409 |
|
11410 |
- bad_gethostbyname_r="yes" |
|
11410 |
+ disable_gethostbyname_r="yes" |
|
11411 | 11411 |
;; |
11412 | 11412 |
openbsd3.3*) |
11413 | 11413 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -11433,7 +11433,7 @@ cat >>confdefs.h <<\_ACEOF |
11433 | 11433 |
#define C_BSD 1 |
11434 | 11434 |
_ACEOF |
11435 | 11435 |
|
11436 |
- bad_gethostbyname_r="yes" |
|
11436 |
+ disable_gethostbyname_r="yes" |
|
11437 | 11437 |
;; |
11438 | 11438 |
openbsd*) |
11439 | 11439 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -11462,7 +11462,7 @@ cat >>confdefs.h <<\_ACEOF |
11462 | 11462 |
#define C_BSD 1 |
11463 | 11463 |
_ACEOF |
11464 | 11464 |
|
11465 |
- bad_gethostbyname_r="yes" |
|
11465 |
+ disable_gethostbyname_r="yes" |
|
11466 | 11466 |
;; |
11467 | 11467 |
netbsd*) |
11468 | 11468 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -11486,7 +11486,7 @@ cat >>confdefs.h <<\_ACEOF |
11486 | 11486 |
#define C_BSD 1 |
11487 | 11487 |
_ACEOF |
11488 | 11488 |
|
11489 |
- bad_gethostbyname_r="yes" |
|
11489 |
+ disable_gethostbyname_r="yes" |
|
11490 | 11490 |
;; |
11491 | 11491 |
bsd*) |
11492 | 11492 |
echo "$as_me:$LINENO: result: Unknown BSD detected. Disabling thread support." >&5 |
... | ... |
@@ -11497,7 +11497,7 @@ cat >>confdefs.h <<\_ACEOF |
11497 | 11497 |
#define C_BSD 1 |
11498 | 11498 |
_ACEOF |
11499 | 11499 |
|
11500 |
- bad_gethostbyname_r="yes" |
|
11500 |
+ disable_gethostbyname_r="yes" |
|
11501 | 11501 |
;; |
11502 | 11502 |
beos*) |
11503 | 11503 |
echo "$as_me:$LINENO: result: BeOS detected. Disabling thread support." >&5 |
... | ... |
@@ -11526,7 +11526,7 @@ cat >>confdefs.h <<\_ACEOF |
11526 | 11526 |
_ACEOF |
11527 | 11527 |
|
11528 | 11528 |
use_netinfo="yes" |
11529 |
- bad_gethostbyname_r="yes" |
|
11529 |
+ disable_gethostbyname_r="yes" |
|
11530 | 11530 |
;; |
11531 | 11531 |
sco*) |
11532 | 11532 |
;; |
... | ... |
@@ -12622,10 +12622,13 @@ fi |
12622 | 12622 |
# Check whether --enable-gethostbyname_r or --disable-gethostbyname_r was given. |
12623 | 12623 |
if test "${enable_gethostbyname_r+set}" = set; then |
12624 | 12624 |
enableval="$enable_gethostbyname_r" |
12625 |
- ac_cv_gethostbyname_args="" |
|
12625 |
+ disable_gethostbyname_r="yes" |
|
12626 | 12626 |
fi; |
12627 | 12627 |
|
12628 |
-if test -z "$ac_cv_gethostbyname_args" || test "$bad_gethostbyname_r" = "yes"; then |
|
12628 |
+if test "$disable_gethostbyname_r" = "yes"; then |
|
12629 |
+ echo "$as_me:$LINENO: result: support disabled" >&5 |
|
12630 |
+echo "${ECHO_T}support disabled" >&6 |
|
12631 |
+elif test -z "$ac_cv_gethostbyname_args"; then |
|
12629 | 12632 |
echo "$as_me:$LINENO: result: no" >&5 |
12630 | 12633 |
echo "${ECHO_T}no" >&6 |
12631 | 12634 |
else |
... | ... |
@@ -12764,10 +12767,15 @@ fi |
12764 | 12764 |
# Check whether --enable-readdir_r or --disable-readdir_r was given. |
12765 | 12765 |
if test "${enable_readdir_r+set}" = set; then |
12766 | 12766 |
enableval="$enable_readdir_r" |
12767 |
- ac_cv_readdir_args="" |
|
12767 |
+ |
|
12768 |
+else |
|
12769 |
+ disable_readdir_r="yes" |
|
12768 | 12770 |
fi; |
12769 | 12771 |
|
12770 |
-if test -z "$ac_cv_readdir_args"; then |
|
12772 |
+if test "$disable_readdir_r" = "yes"; then |
|
12773 |
+ echo "$as_me:$LINENO: result: support disabled" >&5 |
|
12774 |
+echo "${ECHO_T}support disabled" >&6 |
|
12775 |
+elif test -z "$ac_cv_readdir_args"; then |
|
12771 | 12776 |
echo "$as_me:$LINENO: result: no" >&5 |
12772 | 12777 |
echo "${ECHO_T}no" >&6 |
12773 | 12778 |
else |
... | ... |
@@ -292,7 +292,7 @@ freebsd*) |
292 | 292 |
fi |
293 | 293 |
fi |
294 | 294 |
AC_DEFINE(C_BSD,1,[os is freebsd]) |
295 |
- bad_gethostbyname_r="yes" |
|
295 |
+ disable_gethostbyname_r="yes" |
|
296 | 296 |
;; |
297 | 297 |
openbsd3.3*) |
298 | 298 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -306,7 +306,7 @@ openbsd3.3*) |
306 | 306 |
AC_DEFINE(_REENTRANT,1,[thread safe]) |
307 | 307 |
fi |
308 | 308 |
AC_DEFINE(C_BSD,1,[os is bsd flavor]) |
309 |
- bad_gethostbyname_r="yes" |
|
309 |
+ disable_gethostbyname_r="yes" |
|
310 | 310 |
;; |
311 | 311 |
openbsd*) |
312 | 312 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -323,7 +323,7 @@ openbsd*) |
323 | 323 |
AC_DEFINE(_REENTRANT,1,[thread safe]) |
324 | 324 |
fi |
325 | 325 |
AC_DEFINE(C_BSD,1,[os is bsd flavor]) |
326 |
- bad_gethostbyname_r="yes" |
|
326 |
+ disable_gethostbyname_r="yes" |
|
327 | 327 |
;; |
328 | 328 |
netbsd*) |
329 | 329 |
if test "$have_pthreads" = "yes"; then |
... | ... |
@@ -335,13 +335,13 @@ netbsd*) |
335 | 335 |
ADDITIONAL_LIBS="$LIBS -lpthread" |
336 | 336 |
fi |
337 | 337 |
AC_DEFINE(C_BSD,1,[os is bsd flavor]) |
338 |
- bad_gethostbyname_r="yes" |
|
338 |
+ disable_gethostbyname_r="yes" |
|
339 | 339 |
;; |
340 | 340 |
bsd*) |
341 | 341 |
AC_MSG_RESULT(Unknown BSD detected. Disabling thread support.) |
342 | 342 |
have_pthreads="no" |
343 | 343 |
AC_DEFINE(C_BSD,1,[os is bsd flavor]) |
344 |
- bad_gethostbyname_r="yes" |
|
344 |
+ disable_gethostbyname_r="yes" |
|
345 | 345 |
;; |
346 | 346 |
beos*) |
347 | 347 |
AC_MSG_RESULT(BeOS detected. Disabling thread support.) |
... | ... |
@@ -353,7 +353,7 @@ darwin*) |
353 | 353 |
AC_DEFINE(C_DARWIN,1,[os is darwin]) |
354 | 354 |
AC_DEFINE(BIND_8_COMPAT,1,[enable bind8 compatibility]) |
355 | 355 |
use_netinfo="yes" |
356 |
- bad_gethostbyname_r="yes" |
|
356 |
+ disable_gethostbyname_r="yes" |
|
357 | 357 |
;; |
358 | 358 |
sco*) |
359 | 359 |
dnl njh@bandsman.sco.uk: SCO Unix port |
... | ... |
@@ -561,9 +561,11 @@ fi |
561 | 561 |
|
562 | 562 |
AC_ARG_ENABLE(gethostbyname_r, |
563 | 563 |
[ --disable-gethostbyname_r disable support for gethostbyname_r], |
564 |
-ac_cv_gethostbyname_args="",) |
|
564 |
+disable_gethostbyname_r="yes", ) |
|
565 | 565 |
|
566 |
-if test -z "$ac_cv_gethostbyname_args" || test "$bad_gethostbyname_r" = "yes"; then |
|
566 |
+if test "$disable_gethostbyname_r" = "yes"; then |
|
567 |
+ AC_MSG_RESULT(support disabled) |
|
568 |
+elif test -z "$ac_cv_gethostbyname_args"; then |
|
567 | 569 |
AC_MSG_RESULT(no) |
568 | 570 |
else |
569 | 571 |
if test "$ac_cv_gethostbyname_args" = 3; then |
... | ... |
@@ -607,10 +609,12 @@ if test -z "$ac_cv_readdir_args"; then |
607 | 607 |
fi |
608 | 608 |
|
609 | 609 |
AC_ARG_ENABLE(readdir_r, |
610 |
-[ --disable-readdir_r disable support for readdir_r], |
|
611 |
-ac_cv_readdir_args="",) |
|
610 |
+[ --enable-gethostbyname_r enable support for readdir_r],, |
|
611 |
+disable_readdir_r="yes") |
|
612 | 612 |
|
613 |
-if test -z "$ac_cv_readdir_args"; then |
|
613 |
+if test "$disable_readdir_r" = "yes"; then |
|
614 |
+ AC_MSG_RESULT(support disabled) |
|
615 |
+elif test -z "$ac_cv_readdir_args"; then |
|
614 | 616 |
AC_MSG_RESULT(no) |
615 | 617 |
else |
616 | 618 |
if test "$ac_cv_readdir_args" = 2; then |