From 76dc2c9991c5a8d6af2dff5247f78dd07599c1ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Tue, 15 Jun 2010 20:16:17 +0200
Subject: Also link against avahi-common.


diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 24bb696..f21cd08 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -295,9 +295,9 @@ else :
 
 # Avahi
 if env["PLATFORM"] != "darwin" :
-	if conf.CheckCHeader("avahi-client/client.h") and conf.CheckLib("avahi-client") :
+	if conf.CheckCHeader("avahi-client/client.h") and conf.CheckLib("avahi-client") and conf.CheckLib("avahi-common") :
 		env["HAVE_AVAHI"] = True
-		env["AVAHI_FLAGS"] = { "LIBS": ["avahi-client"] }
+		env["AVAHI_FLAGS"] = { "LIBS": ["avahi-client", "avahi-common"] }
 
 conf.Finish()
 
-- 
cgit v0.10.2-6-g49f6