Browse code

bugfixes for bb#271, #277 and #282

git-svn: trunk@2682

Tomasz Kojm authored on 2007/02/09 06:08:52
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Feb  8 22:03:03 CET 2007 (tk)
2
+---------------------------------
3
+  * configure: bugfixes for bb#271, #277 and #282
4
+
1 5
 Thu Feb  8 14:49:09 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * libclamav: minor fixes
... ...
@@ -1531,8 +1531,6 @@ Optional Packages:
1531 1531
   --with-user=uid	  name of the clamav user (default=clamav)
1532 1532
   --with-group=gid	  name of the clamav group (default=clamav)
1533 1533
   --with-dbdir=path	  path to virus database directory
1534
-  --with-db1=name	  name of the main database (default=main.cvd)
1535
-  --with-db2=name	  name of the daily database (default=daily.cvd)
1536 1534
   --with-tcpwrappers      support hosts.allow / hosts.deny (default=auto)
1537 1535
 
1538 1536
 Some influential environment variables:
... ...
@@ -4715,7 +4713,7 @@ ia64-*-hpux*)
4715 4715
   ;;
4716 4716
 *-*-irix6*)
4717 4717
   # Find out which ABI we are using.
4718
-  echo '#line 4718 "configure"' > conftest.$ac_ext
4718
+  echo '#line 4716 "configure"' > conftest.$ac_ext
4719 4719
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 4720
   (eval $ac_compile) 2>&5
4721 4721
   ac_status=$?
... ...
@@ -7442,11 +7440,11 @@ else
7442 7442
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443 7443
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444 7444
    -e 's:$: $lt_compiler_flag:'`
7445
-   (eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
7445
+   (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7446 7446
    (eval "$lt_compile" 2>conftest.err)
7447 7447
    ac_status=$?
7448 7448
    cat conftest.err >&5
7449
-   echo "$as_me:7449: \$? = $ac_status" >&5
7449
+   echo "$as_me:7447: \$? = $ac_status" >&5
7450 7450
    if (exit $ac_status) && test -s "$ac_outfile"; then
7451 7451
      # The compiler can only warn and ignore the option if not recognized
7452 7452
      # So say no if there are warnings other than the usual output.
... ...
@@ -7710,11 +7708,11 @@ else
7710 7710
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711 7711
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712 7712
    -e 's:$: $lt_compiler_flag:'`
7713
-   (eval echo "\"\$as_me:7713: $lt_compile\"" >&5)
7713
+   (eval echo "\"\$as_me:7711: $lt_compile\"" >&5)
7714 7714
    (eval "$lt_compile" 2>conftest.err)
7715 7715
    ac_status=$?
7716 7716
    cat conftest.err >&5
7717
-   echo "$as_me:7717: \$? = $ac_status" >&5
7717
+   echo "$as_me:7715: \$? = $ac_status" >&5
7718 7718
    if (exit $ac_status) && test -s "$ac_outfile"; then
7719 7719
      # The compiler can only warn and ignore the option if not recognized
7720 7720
      # So say no if there are warnings other than the usual output.
... ...
@@ -7814,11 +7812,11 @@ else
7814 7814
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815 7815
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816 7816
    -e 's:$: $lt_compiler_flag:'`
7817
-   (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
7817
+   (eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7818 7818
    (eval "$lt_compile" 2>out/conftest.err)
7819 7819
    ac_status=$?
7820 7820
    cat out/conftest.err >&5
7821
-   echo "$as_me:7821: \$? = $ac_status" >&5
7821
+   echo "$as_me:7819: \$? = $ac_status" >&5
7822 7822
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7823 7823
    then
7824 7824
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -10111,7 +10109,7 @@ else
10111 10111
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10112 10112
   lt_status=$lt_dlunknown
10113 10113
   cat > conftest.$ac_ext <<EOF
10114
-#line 10114 "configure"
10114
+#line 10112 "configure"
10115 10115
 #include "confdefs.h"
10116 10116
 
10117 10117
 #if HAVE_DLFCN_H
... ...
@@ -10211,7 +10209,7 @@ else
10211 10211
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212 10212
   lt_status=$lt_dlunknown
10213 10213
   cat > conftest.$ac_ext <<EOF
10214
-#line 10214 "configure"
10214
+#line 10212 "configure"
10215 10215
 #include "confdefs.h"
10216 10216
 
10217 10217
 #if HAVE_DLFCN_H
... ...
@@ -12547,11 +12545,11 @@ else
12547 12547
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548 12548
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549 12549
    -e 's:$: $lt_compiler_flag:'`
12550
-   (eval echo "\"\$as_me:12550: $lt_compile\"" >&5)
12550
+   (eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12551 12551
    (eval "$lt_compile" 2>conftest.err)
12552 12552
    ac_status=$?
12553 12553
    cat conftest.err >&5
12554
-   echo "$as_me:12554: \$? = $ac_status" >&5
12554
+   echo "$as_me:12552: \$? = $ac_status" >&5
12555 12555
    if (exit $ac_status) && test -s "$ac_outfile"; then
12556 12556
      # The compiler can only warn and ignore the option if not recognized
12557 12557
      # So say no if there are warnings other than the usual output.
... ...
@@ -12651,11 +12649,11 @@ else
12651 12651
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12652 12652
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12653 12653
    -e 's:$: $lt_compiler_flag:'`
12654
-   (eval echo "\"\$as_me:12654: $lt_compile\"" >&5)
12654
+   (eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12655 12655
    (eval "$lt_compile" 2>out/conftest.err)
12656 12656
    ac_status=$?
12657 12657
    cat out/conftest.err >&5
12658
-   echo "$as_me:12658: \$? = $ac_status" >&5
12658
+   echo "$as_me:12656: \$? = $ac_status" >&5
12659 12659
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12660 12660
    then
12661 12661
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -14212,11 +14210,11 @@ else
14212 14212
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14213 14213
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14214 14214
    -e 's:$: $lt_compiler_flag:'`
14215
-   (eval echo "\"\$as_me:14215: $lt_compile\"" >&5)
14215
+   (eval echo "\"\$as_me:14213: $lt_compile\"" >&5)
14216 14216
    (eval "$lt_compile" 2>conftest.err)
14217 14217
    ac_status=$?
14218 14218
    cat conftest.err >&5
14219
-   echo "$as_me:14219: \$? = $ac_status" >&5
14219
+   echo "$as_me:14217: \$? = $ac_status" >&5
14220 14220
    if (exit $ac_status) && test -s "$ac_outfile"; then
14221 14221
      # The compiler can only warn and ignore the option if not recognized
14222 14222
      # So say no if there are warnings other than the usual output.
... ...
@@ -14316,11 +14314,11 @@ else
14316 14316
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14317 14317
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14318 14318
    -e 's:$: $lt_compiler_flag:'`
14319
-   (eval echo "\"\$as_me:14319: $lt_compile\"" >&5)
14319
+   (eval echo "\"\$as_me:14317: $lt_compile\"" >&5)
14320 14320
    (eval "$lt_compile" 2>out/conftest.err)
14321 14321
    ac_status=$?
14322 14322
    cat out/conftest.err >&5
14323
-   echo "$as_me:14323: \$? = $ac_status" >&5
14323
+   echo "$as_me:14321: \$? = $ac_status" >&5
14324 14324
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14325 14325
    then
14326 14326
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -16503,11 +16501,11 @@ else
16503 16503
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16504 16504
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16505 16505
    -e 's:$: $lt_compiler_flag:'`
16506
-   (eval echo "\"\$as_me:16506: $lt_compile\"" >&5)
16506
+   (eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
16507 16507
    (eval "$lt_compile" 2>conftest.err)
16508 16508
    ac_status=$?
16509 16509
    cat conftest.err >&5
16510
-   echo "$as_me:16510: \$? = $ac_status" >&5
16510
+   echo "$as_me:16508: \$? = $ac_status" >&5
16511 16511
    if (exit $ac_status) && test -s "$ac_outfile"; then
16512 16512
      # The compiler can only warn and ignore the option if not recognized
16513 16513
      # So say no if there are warnings other than the usual output.
... ...
@@ -16771,11 +16769,11 @@ else
16771 16771
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772 16772
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773 16773
    -e 's:$: $lt_compiler_flag:'`
16774
-   (eval echo "\"\$as_me:16774: $lt_compile\"" >&5)
16774
+   (eval echo "\"\$as_me:16772: $lt_compile\"" >&5)
16775 16775
    (eval "$lt_compile" 2>conftest.err)
16776 16776
    ac_status=$?
16777 16777
    cat conftest.err >&5
16778
-   echo "$as_me:16778: \$? = $ac_status" >&5
16778
+   echo "$as_me:16776: \$? = $ac_status" >&5
16779 16779
    if (exit $ac_status) && test -s "$ac_outfile"; then
16780 16780
      # The compiler can only warn and ignore the option if not recognized
16781 16781
      # So say no if there are warnings other than the usual output.
... ...
@@ -16875,11 +16873,11 @@ else
16875 16875
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16876 16876
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16877 16877
    -e 's:$: $lt_compiler_flag:'`
16878
-   (eval echo "\"\$as_me:16878: $lt_compile\"" >&5)
16878
+   (eval echo "\"\$as_me:16876: $lt_compile\"" >&5)
16879 16879
    (eval "$lt_compile" 2>out/conftest.err)
16880 16880
    ac_status=$?
16881 16881
    cat out/conftest.err >&5
16882
-   echo "$as_me:16882: \$? = $ac_status" >&5
16882
+   echo "$as_me:16880: \$? = $ac_status" >&5
16883 16883
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16884 16884
    then
16885 16885
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -20408,7 +20406,7 @@ fi
20408 20408
 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
20409 20409
 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6; }
20410 20410
 if test $ac_cv_lib_socket_bind = yes; then
20411
-  LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; LDFLAGS="$LDFLAGS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"
20411
+  LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"
20412 20412
 fi
20413 20413
 
20414 20414
 { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
... ...
@@ -20473,7 +20471,73 @@ fi
20473 20473
 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
20474 20474
 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6; }
20475 20475
 if test $ac_cv_lib_nsl_gethostent = yes; then
20476
-  LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; LDFLAGS="$LDFLAGS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"
20476
+  LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"
20477
+fi
20478
+
20479
+
20480
+{ echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
20481
+echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
20482
+if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
20483
+  echo $ECHO_N "(cached) $ECHO_C" >&6
20484
+else
20485
+  ac_check_lib_save_LIBS=$LIBS
20486
+LIBS="-liconv  $LIBS"
20487
+cat >conftest.$ac_ext <<_ACEOF
20488
+/* confdefs.h.  */
20489
+_ACEOF
20490
+cat confdefs.h >>conftest.$ac_ext
20491
+cat >>conftest.$ac_ext <<_ACEOF
20492
+/* end confdefs.h.  */
20493
+
20494
+/* Override any GCC internal prototype to avoid an error.
20495
+   Use char because int might match the return type of a GCC
20496
+   builtin and then its argument prototype would still apply.  */
20497
+#ifdef __cplusplus
20498
+extern "C"
20499
+#endif
20500
+char libiconv_open ();
20501
+int
20502
+main ()
20503
+{
20504
+return libiconv_open ();
20505
+  ;
20506
+  return 0;
20507
+}
20508
+_ACEOF
20509
+rm -f conftest.$ac_objext conftest$ac_exeext
20510
+if { (ac_try="$ac_link"
20511
+case "(($ac_try" in
20512
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513
+  *) ac_try_echo=$ac_try;;
20514
+esac
20515
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516
+  (eval "$ac_link") 2>conftest.er1
20517
+  ac_status=$?
20518
+  grep -v '^ *+' conftest.er1 >conftest.err
20519
+  rm -f conftest.er1
20520
+  cat conftest.err >&5
20521
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522
+  (exit $ac_status); } && {
20523
+	 test -z "$ac_c_werror_flag" ||
20524
+	 test ! -s conftest.err
20525
+       } && test -s conftest$ac_exeext &&
20526
+       $as_test_x conftest$ac_exeext; then
20527
+  ac_cv_lib_iconv_libiconv_open=yes
20528
+else
20529
+  echo "$as_me: failed program was:" >&5
20530
+sed 's/^/| /' conftest.$ac_ext >&5
20531
+
20532
+	ac_cv_lib_iconv_libiconv_open=no
20533
+fi
20534
+
20535
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20536
+      conftest$ac_exeext conftest.$ac_ext
20537
+LIBS=$ac_check_lib_save_LIBS
20538
+fi
20539
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
20540
+echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
20541
+if test $ac_cv_lib_iconv_libiconv_open = yes; then
20542
+  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv"
20477 20543
 fi
20478 20544
 
20479 20545
 
... ...
@@ -21414,7 +21478,6 @@ echo "$as_me: WARNING: ****** stability problems to the ClamAV developers!" >&2;
21414 21414
     fi
21415 21415
 
21416 21416
     if test "$ZLIB_HOME" != "/usr"; then
21417
-	LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
21418 21417
 	CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
21419 21418
 	{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
21420 21419
 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
... ...
@@ -22146,25 +22209,19 @@ if test $ac_cv_lib_resolv_dn_expand = yes; then
22146 22146
 fi
22147 22147
 
22148 22148
     fi
22149
-    if test "${ac_cv_header_resolv_h+set}" = set; then
22150
-  { echo "$as_me:$LINENO: checking for resolv.h" >&5
22149
+    { echo "$as_me:$LINENO: checking for resolv.h" >&5
22151 22150
 echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6; }
22152 22151
 if test "${ac_cv_header_resolv_h+set}" = set; then
22153 22152
   echo $ECHO_N "(cached) $ECHO_C" >&6
22154
-fi
22155
-{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22156
-echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22157 22153
 else
22158
-  # Is the header compilable?
22159
-{ echo "$as_me:$LINENO: checking resolv.h usability" >&5
22160
-echo $ECHO_N "checking resolv.h usability... $ECHO_C" >&6; }
22161
-cat >conftest.$ac_ext <<_ACEOF
22154
+  cat >conftest.$ac_ext <<_ACEOF
22162 22155
 /* confdefs.h.  */
22163 22156
 _ACEOF
22164 22157
 cat confdefs.h >>conftest.$ac_ext
22165 22158
 cat >>conftest.$ac_ext <<_ACEOF
22166 22159
 /* end confdefs.h.  */
22167
-$ac_includes_default
22160
+#include <netinet/in.h>
22161
+
22168 22162
 #include <resolv.h>
22169 22163
 _ACEOF
22170 22164
 rm -f conftest.$ac_objext
... ...
@@ -22184,93 +22241,18 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184 22184
 	 test -z "$ac_c_werror_flag" ||
22185 22185
 	 test ! -s conftest.err
22186 22186
        } && test -s conftest.$ac_objext; then
22187
-  ac_header_compiler=yes
22187
+  ac_cv_header_resolv_h=yes
22188 22188
 else
22189 22189
   echo "$as_me: failed program was:" >&5
22190 22190
 sed 's/^/| /' conftest.$ac_ext >&5
22191 22191
 
22192
-	ac_header_compiler=no
22192
+	ac_cv_header_resolv_h=no
22193 22193
 fi
22194 22194
 
22195 22195
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22197
-echo "${ECHO_T}$ac_header_compiler" >&6; }
22198
-
22199
-# Is the header present?
22200
-{ echo "$as_me:$LINENO: checking resolv.h presence" >&5
22201
-echo $ECHO_N "checking resolv.h presence... $ECHO_C" >&6; }
22202
-cat >conftest.$ac_ext <<_ACEOF
22203
-/* confdefs.h.  */
22204
-_ACEOF
22205
-cat confdefs.h >>conftest.$ac_ext
22206
-cat >>conftest.$ac_ext <<_ACEOF
22207
-/* end confdefs.h.  */
22208
-#include <resolv.h>
22209
-_ACEOF
22210
-if { (ac_try="$ac_cpp conftest.$ac_ext"
22211
-case "(($ac_try" in
22212
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213
-  *) ac_try_echo=$ac_try;;
22214
-esac
22215
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22217
-  ac_status=$?
22218
-  grep -v '^ *+' conftest.er1 >conftest.err
22219
-  rm -f conftest.er1
22220
-  cat conftest.err >&5
22221
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222
-  (exit $ac_status); } >/dev/null && {
22223
-	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22224
-	 test ! -s conftest.err
22225
-       }; then
22226
-  ac_header_preproc=yes
22227
-else
22228
-  echo "$as_me: failed program was:" >&5
22229
-sed 's/^/| /' conftest.$ac_ext >&5
22230
-
22231
-  ac_header_preproc=no
22232
-fi
22233
-
22234
-rm -f conftest.err conftest.$ac_ext
22235
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236
-echo "${ECHO_T}$ac_header_preproc" >&6; }
22237
-
22238
-# So?  What about this header?
22239
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240
-  yes:no: )
22241
-    { echo "$as_me:$LINENO: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22242
-echo "$as_me: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22243
-    { echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the compiler's result" >&5
22244
-echo "$as_me: WARNING: resolv.h: proceeding with the compiler's result" >&2;}
22245
-    ac_header_preproc=yes
22246
-    ;;
22247
-  no:yes:* )
22248
-    { echo "$as_me:$LINENO: WARNING: resolv.h: present but cannot be compiled" >&5
22249
-echo "$as_me: WARNING: resolv.h: present but cannot be compiled" >&2;}
22250
-    { echo "$as_me:$LINENO: WARNING: resolv.h:     check for missing prerequisite headers?" >&5
22251
-echo "$as_me: WARNING: resolv.h:     check for missing prerequisite headers?" >&2;}
22252
-    { echo "$as_me:$LINENO: WARNING: resolv.h: see the Autoconf documentation" >&5
22253
-echo "$as_me: WARNING: resolv.h: see the Autoconf documentation" >&2;}
22254
-    { echo "$as_me:$LINENO: WARNING: resolv.h:     section \"Present But Cannot Be Compiled\"" >&5
22255
-echo "$as_me: WARNING: resolv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22256
-    { echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the preprocessor's result" >&5
22257
-echo "$as_me: WARNING: resolv.h: proceeding with the preprocessor's result" >&2;}
22258
-    { echo "$as_me:$LINENO: WARNING: resolv.h: in the future, the compiler will take precedence" >&5
22259
-echo "$as_me: WARNING: resolv.h: in the future, the compiler will take precedence" >&2;}
22260
-
22261
-    ;;
22262
-esac
22263
-{ echo "$as_me:$LINENO: checking for resolv.h" >&5
22264
-echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6; }
22265
-if test "${ac_cv_header_resolv_h+set}" = set; then
22266
-  echo $ECHO_N "(cached) $ECHO_C" >&6
22267
-else
22268
-  ac_cv_header_resolv_h=$ac_header_preproc
22269 22196
 fi
22270 22197
 { echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22271 22198
 echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22272
-
22273
-fi
22274 22199
 if test $ac_cv_header_resolv_h = yes; then
22275 22200
   FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $resolv_lib";
22276 22201
 cat >>confdefs.h <<\_ACEOF
... ...
@@ -22826,40 +22808,6 @@ else
22826 22826
 fi
22827 22827
 
22828 22828
 
22829
-
22830
-# Check whether --with-db1 was given.
22831
-if test "${with_db1+set}" = set; then
22832
-  withval=$with_db1;
22833
-cat >>confdefs.h <<_ACEOF
22834
-#define DB1NAME "$withval"
22835
-_ACEOF
22836
-
22837
-else
22838
-
22839
-cat >>confdefs.h <<\_ACEOF
22840
-#define DB1NAME "main.cvd"
22841
-_ACEOF
22842
-
22843
-fi
22844
-
22845
-
22846
-
22847
-# Check whether --with-db2 was given.
22848
-if test "${with_db2+set}" = set; then
22849
-  withval=$with_db2;
22850
-cat >>confdefs.h <<_ACEOF
22851
-#define DB2NAME "$withval"
22852
-_ACEOF
22853
-
22854
-else
22855
-
22856
-cat >>confdefs.h <<\_ACEOF
22857
-#define DB2NAME "daily.cvd"
22858
-_ACEOF
22859
-
22860
-fi
22861
-
22862
-
22863 22829
 if test "$db_dir" = "_default_"
22864 22830
 then
22865 22831
     if test "$prefix" = "NONE"
... ...
@@ -23446,11 +23394,9 @@ esac
23446 23446
 
23447 23447
 if test "$have_milter" = "yes"; then
23448 23448
 
23449
-        save_LDFLAGS="$LDFLAGS"
23450
-    if test -d /usr/lib/libmilter ; then
23449
+        if test -d /usr/lib/libmilter ; then
23451 23450
 	CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
23452 23451
     fi
23453
-    LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS"
23454 23452
     { echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5
23455 23453
 echo $ECHO_N "checking for mi_stop in -lmilter... $ECHO_C" >&6; }
23456 23454
 if test "${ac_cv_lib_milter_mi_stop+set}" = set; then
... ...
@@ -23599,7 +23545,6 @@ if test "$ac_res" != no; then
23599 23599
   test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"
23600 23600
 fi
23601 23601
 
23602
-	LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB"
23603 23602
 	$as_unset ac_cv_lib_milter_mi_stop
23604 23603
 	{ echo "$as_me:$LINENO: checking for mi_stop in -lmilter" >&5
23605 23604
 echo $ECHO_N "checking for mi_stop in -lmilter... $ECHO_C" >&6; }
... ...
@@ -23675,7 +23620,6 @@ fi
23675 23675
 
23676 23676
 fi
23677 23677
 
23678
-    LDFLAGS="$save_LDFLAGS"
23679 23678
 
23680 23679
 for ac_header in libmilter/mfapi.h
23681 23680
 do
... ...
@@ -49,8 +49,10 @@ AC_COMPILE_CHECK_SIZEOF(int)
49 49
 AC_COMPILE_CHECK_SIZEOF(long)
50 50
 AC_COMPILE_CHECK_SIZEOF(long long)
51 51
 
52
-AC_CHECK_LIB(socket, bind, [LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; LDFLAGS="$LDFLAGS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"])
53
-AC_CHECK_LIB(nsl, gethostent, [LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; LDFLAGS="$LDFLAGS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"])
52
+AC_CHECK_LIB(socket, bind, [LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"])
53
+AC_CHECK_LIB(nsl, gethostent, [LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"])
54
+
55
+AC_CHECK_LIB(iconv, libiconv_open, LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv")
54 56
 
55 57
 AC_CHECK_FUNCS(poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat inet_ntop setgroups initgroups ctime_r mkstemp)
56 58
 AC_FUNC_MMAP
... ...
@@ -121,7 +123,6 @@ else
121 121
     fi
122 122
 
123 123
     if test "$ZLIB_HOME" != "/usr"; then
124
-	LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
125 124
 	CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
126 125
 	AC_CHECK_LIB(z, inflateEnd, [LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; AC_DEFINE(HAVE_ZLIB_H,1,zlib installed)], AC_MSG_ERROR(Please install zlib and zlib-devel packages))
127 126
     else
... ...
@@ -165,7 +166,7 @@ if test $want_dns = yes; then
165 165
     if test -z "$resolv_lib"; then
166 166
 	AC_CHECK_LIB(resolv, dn_expand, resolv_lib="-lresolv",)
167 167
     fi
168
-    AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $resolv_lib"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled]))
168
+    AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $resolv_lib"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled]), [#include <netinet/in.h>])
169 169
 fi
170 170
 
171 171
 AC_ARG_ENABLE(clamuko,
... ...
@@ -332,14 +333,6 @@ AC_ARG_WITH(dbdir,
332 332
 [  --with-dbdir=path	  path to virus database directory],
333 333
 db_dir="$withval", db_dir="_default_")
334 334
 
335
-AC_ARG_WITH(db1, 
336
-[  --with-db1=name	  name of the main database (default=main.cvd)],
337
-AC_DEFINE_UNQUOTED(DB1NAME,"$withval",[Name of the main database]), AC_DEFINE(DB1NAME, "main.cvd",[Name of the main database]))
338
-
339
-AC_ARG_WITH(db2, 
340
-[  --with-db2=name	  name of the daily database (default=daily.cvd)],
341
-AC_DEFINE_UNQUOTED(DB2NAME,"$withval",[Name of the daily database]), AC_DEFINE(DB2NAME, "daily.cvd",[Name of the daily database]))
342
-
343 335
 dnl I had problems with $pkgdatadir thus these funny checks
344 336
 if test "$db_dir" = "_default_"
345 337
 then
... ...
@@ -604,21 +597,17 @@ if test "$have_milter" = "yes"; then
604 604
     dnl Tom G. Christensen <tgc@statsbiblioteket.dk>
605 605
 
606 606
     dnl Check for libmilter and it's header files in the usual locations
607
-    save_LDFLAGS="$LDFLAGS"
608 607
     if test -d /usr/lib/libmilter ; then
609 608
 	CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
610 609
     fi
611
-    LDFLAGS="$LDFLAGS -lmilter $CLAMAV_MILTER_LIBS"
612 610
     AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_LIBS"],[
613 611
 	dnl Older sendmails require libsm or libsmutil for support functions
614 612
 	AC_SEARCH_LIBS(strlcpy, [sm smutil], [test "$ac_cv_search_strlcpy" = "none required" || CLAMAV_MILTER_XLIB="$ac_cv_search_strlcpy"])
615
-	LDFLAGS="$save_LDFLAGS $CLAMAV_MILTER_LIBS $CLAMAV_MILTER_XLIB"
616 613
 	$as_unset ac_cv_lib_milter_mi_stop
617 614
 	AC_CHECK_LIB(milter, mi_stop,[CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"],[
618 615
 	    AC_MSG_ERROR([Cannot find libmilter])
619 616
 	])
620 617
     ])
621
-    LDFLAGS="$save_LDFLAGS"
622 618
     AC_CHECK_HEADERS(libmilter/mfapi.h,have_milter="yes",[
623 619
 	AC_MSG_ERROR([Please install mfapi.h from the sendmail distribution])
624 620
     ])