Browse code

update

git-svn: trunk@1632

Tomasz Kojm authored on 2005/06/24 06:03:17
Showing 2 changed files
... ...
@@ -11816,7 +11816,7 @@ cat >>confdefs.h <<\_ACEOF
11816 11816
 #define C_BSD 1
11817 11817
 _ACEOF
11818 11818
 
11819
-    disable_gethostbyname_r="yes"
11819
+    use_gethostbyname_r="no"
11820 11820
     ;;
11821 11821
 openbsd*)
11822 11822
     if test "$have_pthreads" = "yes"; then
... ...
@@ -11845,7 +11845,7 @@ cat >>confdefs.h <<\_ACEOF
11845 11845
 #define C_BSD 1
11846 11846
 _ACEOF
11847 11847
 
11848
-    disable_gethostbyname_r="yes"
11848
+    use_gethostbyname_r="no"
11849 11849
     ;;
11850 11850
 bsdi*)
11851 11851
     if test "$have_pthreads" = "yes"; then
... ...
@@ -11869,7 +11869,7 @@ cat >>confdefs.h <<\_ACEOF
11869 11869
 #define C_BSD 1
11870 11870
 _ACEOF
11871 11871
 
11872
-    disable_gethostbyname_r="yes"
11872
+    use_gethostbyname_r="no"
11873 11873
     ;;
11874 11874
 netbsd*)
11875 11875
      if test "$have_pthreads" = "yes"; then
... ...
@@ -11893,7 +11893,7 @@ cat >>confdefs.h <<\_ACEOF
11893 11893
 #define C_BSD 1
11894 11894
 _ACEOF
11895 11895
 
11896
-    disable_gethostbyname_r="yes"
11896
+    use_gethostbyname_r="no"
11897 11897
     ;;
11898 11898
 bsd*)
11899 11899
     echo "$as_me:$LINENO: result: Unknown BSD detected. Disabling thread support." >&5
... ...
@@ -11904,7 +11904,7 @@ cat >>confdefs.h <<\_ACEOF
11904 11904
 #define C_BSD 1
11905 11905
 _ACEOF
11906 11906
 
11907
-    disable_gethostbyname_r="yes"
11907
+    use_gethostbyname_r="no"
11908 11908
     ;;
11909 11909
 beos*)
11910 11910
     echo "$as_me:$LINENO: result: BeOS detected. Disabling thread support." >&5
... ...
@@ -11933,7 +11933,7 @@ cat >>confdefs.h <<\_ACEOF
11933 11933
 _ACEOF
11934 11934
 
11935 11935
     use_netinfo="yes"
11936
-    disable_gethostbyname_r="yes"
11936
+    use_gethostbyname_r="no"
11937 11937
     ;;
11938 11938
 os2*)
11939 11939
     FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsyslog"
... ...
@@ -13267,10 +13267,10 @@ fi
13267 13267
 # Check whether --enable-gethostbyname_r or --disable-gethostbyname_r was given.
13268 13268
 if test "${enable_gethostbyname_r+set}" = set; then
13269 13269
   enableval="$enable_gethostbyname_r"
13270
-  disable_gethostbyname_r=$enableval
13270
+  use_gethostbyname_r=$enableval
13271 13271
 fi;
13272 13272
 
13273
-if test "$disable_gethostbyname_r" = "yes"; then
13273
+if test "$use_gethostbyname_r" = "no"; then
13274 13274
     echo "$as_me:$LINENO: result: support disabled" >&5
13275 13275
 echo "${ECHO_T}support disabled" >&6
13276 13276
 elif test -z "$ac_cv_gethostbyname_args"; then
... ...
@@ -400,7 +400,7 @@ freebsd*)
400 400
 	fi
401 401
     fi
402 402
     AC_DEFINE(C_BSD,1,[os is freebsd])
403
-    disable_gethostbyname_r="yes"
403
+    use_gethostbyname_r="no"
404 404
     ;;
405 405
 openbsd*)
406 406
     if test "$have_pthreads" = "yes"; then
... ...
@@ -417,7 +417,7 @@ openbsd*)
417 417
 	AC_DEFINE(_REENTRANT,1,[thread safe])
418 418
     fi
419 419
     AC_DEFINE(C_BSD,1,[os is OpenBSD])
420
-    disable_gethostbyname_r="yes"
420
+    use_gethostbyname_r="no"
421 421
     ;;
422 422
 bsdi*)
423 423
     if test "$have_pthreads" = "yes"; then
... ...
@@ -429,7 +429,7 @@ bsdi*)
429 429
 	AC_DEFINE(_REENTRANT,1,[thread safe])
430 430
     fi
431 431
     AC_DEFINE(C_BSD,1,[os is BSDI BSD/OS])
432
-    disable_gethostbyname_r="yes"
432
+    use_gethostbyname_r="no"
433 433
     ;;
434 434
 netbsd*)
435 435
      if test "$have_pthreads" = "yes"; then
... ...
@@ -441,13 +441,13 @@ netbsd*)
441 441
 	ADDITIONAL_LIBS="$LIBS -lpthread"
442 442
      fi
443 443
     AC_DEFINE(C_BSD,1,[os is NetBSD])
444
-    disable_gethostbyname_r="yes"
444
+    use_gethostbyname_r="no"
445 445
     ;;
446 446
 bsd*)
447 447
     AC_MSG_RESULT(Unknown BSD detected. Disabling thread support.)
448 448
     have_pthreads="no"
449 449
     AC_DEFINE(C_BSD,1,[os is bsd flavor])
450
-    disable_gethostbyname_r="yes"
450
+    use_gethostbyname_r="no"
451 451
     ;;
452 452
 beos*)
453 453
     AC_MSG_RESULT(BeOS detected. Disabling thread support.)
... ...
@@ -459,7 +459,7 @@ darwin*)
459 459
     AC_DEFINE(C_DARWIN,1,[os is darwin])
460 460
     AC_DEFINE(BIND_8_COMPAT,1,[enable bind8 compatibility])
461 461
     use_netinfo="yes"
462
-    disable_gethostbyname_r="yes"
462
+    use_gethostbyname_r="no"
463 463
     ;;
464 464
 os2*)
465 465
     FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsyslog"
... ...
@@ -734,9 +734,9 @@ fi
734 734
 
735 735
 AC_ARG_ENABLE(gethostbyname_r,
736 736
 [  --disable-gethostbyname_r	  disable support for gethostbyname_r],
737
-disable_gethostbyname_r=$enableval,)
737
+use_gethostbyname_r=$enableval,)
738 738
 
739
-if test "$disable_gethostbyname_r" = "yes"; then
739
+if test "$use_gethostbyname_r" = "no"; then
740 740
     AC_MSG_RESULT(support disabled)
741 741
 elif test -z "$ac_cv_gethostbyname_args"; then
742 742
     AC_MSG_RESULT(no)