summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-04-22 19:44:46 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-04-22 19:44:46 (GMT)
commit52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309 (patch)
treee8f589081c50304709c9ed744927f6d9a1be4ff8 /BuildTools/SCons/SConstruct
parentbeab003e41199640664c80bbeb04cad2eefc6b59 (diff)
downloadswift-contrib-52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309.zip
swift-contrib-52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309.tar.bz2
Use installed LibIDN if available.
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index ee42e57..0cfa211 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -250,6 +250,13 @@ if conf.CheckCHeader("expat.h") and conf.CheckLib("expat") :
env["HAVE_EXPAT"] = 1
env["EXPAT_FLAGS"] = { "LIBS": ["expat"] }
+# LibIDN
+if conf.CheckCHeader("idna.h") and conf.CheckLib("idn") :
+ env["LIBIDN_FLAGS"] = { "LIBS": ["idn"] }
+else :
+ env["LIBIDN_BUNDLED"] = 1
+
+
conf.Finish()
# Xss