# # configure.in -- template for configure # # (c) 2003 Dr. Andreas Mueller, Beratung und Entwicklung # # $Id: configure.in,v 1.18 2004/04/28 22:48:43 afm Exp $ # AC_INIT(mod_clamav) AC_PREREQ(2.12) AM_INIT_AUTOMAKE(mod_clamav, 0.21) AC_CONFIG_SRCDIR(mod_clamav.c) # check for apxs tool AC_MSG_CHECKING(for APXS tool) AC_ARG_WITH(apxs, [ --with-apxs=/path/2/apxs path to the apxs command], , with_apxs=no ) if test "${with_apxs}" = no; then AC_MSG_ERROR(Must specify path to apxs command with --with-apxs) else if test -x ${with_apxs} then AC_MSG_RESULT(using ${with_apxs}) else AC_MSG_ERROR(apxs command not found) fi fi APXS=${with_apxs} AC_SUBST(APXS) dnl set the -shared flag, work around for a libtool bug SHAREDFLAG=-shared AC_ARG_WITH(sharedflag, [ --with-sharedflag set linker flag for shared libraries], SHAREDFLAG=${with_sharedflag}) AC_SUBST(SHAREDFLAG) AC_PROG_CC AM_DISABLE_STATIC AC_PROG_LIBTOOL AC_CHECK_LIB(clamav, cl_scanfile, clamav_lib=-lclamav) if test -z "${clamav_lib}" then AC_MSG_ERROR(clamav library not found) fi LIBS="${clamav_lib} ${LIBS}" AC_CHECK_FUNCS(mkstemp) AC_CHECK_HEADER(alloca.h) AC_SUBST(apache_dir) AC_SUBST(clamav_lib) AC_OUTPUT(Makefile mod_clamav_version.h mod_clamav.html)