Apply a libltdl patch to avoid adding -ldl to LIBS.
Only add -lz to LIBCLAMAV_LIBS, libtool will add -lz as necessary
to programs linking libclamav.la.
Also add an export map to clamdscan, it only needs to export main.
Also remove the [1] from g++ version check to allow buildtesting with clang++.
This is tricky, because autoconf provides no way to do this automatically
(AC_PROG_CXX fails if no C++ compiler).
One could override AC_MSG_ERROR/FAILURE for AC_PROG_CXX, but that causes all
sorts of problems later (like sys/types.h not found).
So instead create yet another configure in libclamav/c++,
but teach autoconf not to fail if the subconfigure fails
(by overriding AC_MSG_ERROR to set a variable instead of exiting).
This seems to work with shared and static builds, "-all-static" builds
don't work yet, will fix that later.
WARNING: On a 64-bit multiarch OS, this will by default install libclamav
into /usr/local/lib64, if your system uses /usr/local/lib for 32bit apps.
If the system uses /usr/local/lib for 64-bit apps and lib32 for 32bit apps,
there is no change (unless you use -m32).
git-svn: trunk@4284
by skipping checks that require it. (bb #1157)
if configure is not able to find check, you can use
--with-libcheck-prefix, instead of CHECK_CFLAGS and
CHECK_LIBS.
remove accidental AC_DEFINE GETHOSTBYNAME_R_6 from last commit.
git-svn: trunk@4172
configure: if SENDMAIL_VERSION_A cannot be determined, check for
smfi_opensocket, and assume version 8.13.
For example this happens if you have postfix installed instead of sendmail
git-svn: trunk@4139
m4/fdpassing.m4: move all FD passing checks here
clamd/session.[ch], scanner.[ch]:
contrib/clamd_fdscan:
add rfc2292/bsd4.4 style file descriptor passing support
this code is from Marc Balmer <marc*msys.ch>, with some portability
fixes applied
git-svn: trunk@3849
by default current prefix is also searched
allow to specify libb2 location, by using --with-bz2-prefix,
by default current prefix is also searched
locating gmp and bz2 works by default on OpenBSD (bb #301)
move local m4 macros to m4/
import lib-link.m4 and dependent files
quoting for autoconf macros (bb #452)
git-svn: trunk@3566