Hi,
The --disable-dns configure code seems to have an unfortunate sideeffect in that using --enable-dns will turn off the checking for dn_expand in -lresolv (and cause the build to crash since -lresolv is needed later on).
I've attached a patch which cleans that up.
It maintains the current behaviour of automatically enabling the option *unless* --disable-dns is specified. It also makes --enable-dns, --enable-dns=yes and --enable-dns=no do what you would expect.
<snip old patch>
New shorter patch attached which applies to 0.80rc3.
Tested on RHEL2.1
-tgc
--- clamav-0.80rc3/configure.in.old Tue Sep 28 00:12:28 2004 +++ clamav-0.80rc3/configure.in Tue Sep 28 11:49:56 2004 @@ -85,10 +85,9 @@ AC_CHECK_HEADER(bzlib.h,[LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lbz2"; AC_DEFINE(HAVE_BZLIB_H,1,have bzip2)], AC_MSG_WARN([****** bzip2 support disabled])) fi -want_dns="yes" AC_ARG_ENABLE(dns, [ --disable-dns disable support for database verification through DNS], -want_dns="no",) +want_dns="$enableval", want_dns="yes",) if test "$want_dns" = "yes" then