r2322 - trunk/varnish-cache

des at projects.linpro.no des at projects.linpro.no
Thu Dec 20 14:35:33 CET 2007


Author: des
Date: 2007-12-20 14:35:33 +0100 (Thu, 20 Dec 2007)
New Revision: 2322

Modified:
   trunk/varnish-cache/configure.ac
Log:
Only look for sendfile() on platforms where we know how to use it.


Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2007-12-20 11:19:38 UTC (rev 2321)
+++ trunk/varnish-cache/configure.ac	2007-12-20 13:35:33 UTC (rev 2322)
@@ -95,9 +95,18 @@
 AC_FUNC_STRERROR_R
 AC_CHECK_FUNCS([socket])
 AC_CHECK_FUNCS([strptime])
-AC_CHECK_FUNCS([sendfile])
 AC_CHECK_FUNCS([fmtcheck])
 
+# This one is tricky, there are multiple versions
+case $host in
+*-*-freebsd*|*-*-linux*)
+	AC_CHECK_FUNCS([sendfile])
+ 	;;
+*)
+	AC_MSG_WARN([won't look for sendfile() on $host])
+	;;
+esac
+
 # These functions are provided by libcompat on platforms where they
 # are not available
 AC_CHECK_FUNCS([asprintf vasprintf])




More information about the varnish-commit mailing list