r3584 - branches/2.0/varnish-cache

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Feb 5 10:07:26 CET 2009


Author: tfheen
Date: 2009-02-05 10:07:26 +0100 (Thu, 05 Feb 2009)
New Revision: 3584

Modified:
   branches/2.0/varnish-cache/configure.ac
Log:
Merge r3334: Check $target, not $host

Strictly speaking, we should test $target, not $host - although in practice,
varnish is not cross-buildable anyway due to the SO_RCVTIMEO / SO_SNDTIMEO
tests.



Modified: branches/2.0/varnish-cache/configure.ac
===================================================================
--- branches/2.0/varnish-cache/configure.ac	2009-02-05 09:03:40 UTC (rev 3583)
+++ branches/2.0/varnish-cache/configure.ac	2009-02-05 09:07:26 UTC (rev 3584)
@@ -110,7 +110,7 @@
 LIBS="${save_LIBS}"
 
 ## This one is tricky, there are multiple versions
-case $host in
+case $target in
 *-*-freebsd*)
 	AC_CACHE_CHECK([whether sendfile works],
 	  [ac_cv_so_sendfile_works],
@@ -144,7 +144,7 @@
 	fi
 	;;
 *)
-	AC_MSG_WARN([won't look for sendfile() on $host])
+	AC_MSG_WARN([won't look for sendfile() on $target])
 	;;
 esac
 
@@ -178,13 +178,13 @@
     [enable_kqueue=yes])
 
 if test "$enable_kqueue" = yes; then
-	case $host in
+	case $target in
 	*-*-freebsd* | *-*-darwin9* )
 		AC_CHECK_FUNCS([kqueue])
 		;;
 	*-*-bsd*)
 		# No other BSD has a sufficiently recent implementation
-		AC_MSG_WARN([won't look for kqueue() on $host])
+		AC_MSG_WARN([won't look for kqueue() on $target])
 		ac_cv_func_kqueue=no
 		;;
 	esac
@@ -330,7 +330,7 @@
 if test "$ac_cv_env_VCC_CC_set" = "set"; then
 	VCC_CC="$ac_cv_env_VCC_CC_value"
 else
-	case $host in
+	case $target in
 	*-*-solaris*)
 		VCC_CC="cc -Kpic -G -o %o %s"
 		;;
@@ -353,7 +353,7 @@
 	JEMALLOC_SUBDIR=libjemalloc
 	JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'
 fi],
-[case $host in #(
+[case $target in #(
 *-*-linux*)
 	JEMALLOC_SUBDIR=libjemalloc
 	JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'



More information about the varnish-commit mailing list