--- configure.in.current	Thu Sep  4 15:16:15 2003
+++ configure.in	Thu Sep  4 15:16:27 2003
@@ -76,8 +76,11 @@
 
 have_milter="no"
 AC_CHECK_HEADER(libmilter/mfapi.h,have_milter="yes",)
 
+have_sendfile="no"
+AC_CHECK_HEADER(sys/sendfile.h,have_sendfile="yes",)
+
 AC_ARG_ENABLE(milter,
 [  --enable-milter	  Build clamav-milter (if milter library found)],
 ,have_milter="no")
 
@@ -203,8 +206,11 @@
 	AC_DEFINE(CL_THREAD_SAFE)
 	CLAMD_LIBS="-lpthread"
 	if test "$want_clamuko" = "yes"; then
 	    AC_DEFINE(CLAMUKO)
+	fi
+	if test "$have_sendfile" = "yes"; then
+		AC_DEFINE(HAS_SENDF)
 	fi
 	CLAMSCAN_LIBS="-lpthread"
     fi
     ;;
