From: des Date: Thu, 20 Dec 2007 13:35:33 +0000 (+0000) Subject: Only look for sendfile() on platforms where we know how to use it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b109506042aaa651ae13fad499d1035295996b;p=varnish Only look for sendfile() on platforms where we know how to use it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2322 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 647c128e..e0b3c7f9 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -95,9 +95,18 @@ AC_CHECK_FUNCS([strerror]) 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])