diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-22 19:44:46 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-22 19:44:46 (GMT) |
commit | 52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309 (patch) | |
tree | e8f589081c50304709c9ed744927f6d9a1be4ff8 /BuildTools/SCons | |
parent | beab003e41199640664c80bbeb04cad2eefc6b59 (diff) | |
download | swift-52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309.zip swift-52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309.tar.bz2 |
Use installed LibIDN if available.
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r-- | BuildTools/SCons/SConstruct | 7 |
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 |