summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-22 20:37:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-22 20:37:48 (GMT)
commit35abc53f0d9a18a0c509092c7222ca123ed01dfb (patch)
tree1807b11ff0d034c3d401a71682d47a57457d9b84 /BuildTools/SCons/SConstruct
parent65264ae8017d5a3cf1432078cd4eaa4257645662 (diff)
downloadswift-35abc53f0d9a18a0c509092c7222ca123ed01dfb.zip
swift-35abc53f0d9a18a0c509092c7222ca123ed01dfb.tar.bz2
Check for Avahi support.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 1735073..72e989e 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -256,6 +256,10 @@ if conf.CheckCHeader("idna.h") and conf.CheckLib("idn") :
else :
env["LIBIDN_BUNDLED"] = 1
+# Avahi
+if conf.CheckCHeader("avahi-client/client.h") and conf.CheckLib("avahi-client") :
+ env["HAVE_AVAHI"] = True
+ env["AVAHI_FLAGS"] = { "LIBS": ["avahi"] }
conf.Finish()