summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-22 21:15:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-22 21:15:00 (GMT)
commitbfe07e82cd79d56f1327425ce3e6c8a84908421b (patch)
treee25497309d50145ac78162d7b0caffef7170e066 /BuildTools/SCons
parent3694f2b0db159844c4ed595202c07b6f1fb96c80 (diff)
downloadswift-contrib-bfe07e82cd79d56f1327425ce3e6c8a84908421b.zip
swift-contrib-bfe07e82cd79d56f1327425ce3e6c8a84908421b.tar.bz2
Don't check for Avahi on OS X.
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConstruct7
1 files changed, 4 insertions, 3 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 844654d..f210650 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -257,9 +257,10 @@ 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-client"] }
+if env["PLATFORM"] != "darwin" :
+ if conf.CheckCHeader("avahi-client/client.h") and conf.CheckLib("avahi-client") :
+ env["HAVE_AVAHI"] = True
+ env["AVAHI_FLAGS"] = { "LIBS": ["avahi-client"] }
conf.Finish()