From 40499c9dffdc1ac676f66ae51ba42513a726f1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 12 Jun 2010 18:35:31 +0200 Subject: Fix Boost detection in Ubuntu 9.10. diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct index 3a41be4..c3ad8d1 100644 --- a/BuildTools/SCons/SConstruct +++ b/BuildTools/SCons/SConstruct @@ -267,16 +267,24 @@ else : # Boost boostLibs = [("signals", None), ("thread", None), ("regex", None), ("program_options", None), ("filesystem", None), ("system", "system/system_error.hpp"), ("date_time", "date_time/date.hpp")] allLibsPresent = True +libNames = [] for (lib, header) in boostLibs : if header : header = "boost/" + header else : header = "boost/" + lib + ".hpp" - if not conf.CheckCXXHeader(header) or not conf.CheckLib("boost_" + lib) : + if not conf.CheckCXXHeader(header) : allLibsPresent = False break + libName = "boost_" + lib + if not conf.CheckLib(libName) : + libName += "-mt" + if not conf.CheckLib(libName) : + allLibsPresent = False + break + libNames.append(libName) if allLibsPresent : - env["BOOST_FLAGS"] = { "LIBS": ["boost_" + lib for lib, header in boostLibs] } + env["BOOST_FLAGS"] = { "LIBS": libNames } if not conf.CheckCXXHeader("boost/uuid/uuid.hpp") : # FIXME: Remove this workaround when UUID is available in most distros env["BOOST_BUNDLED_UUID_ONLY"] = True diff --git a/Swift/Packaging/Debian/debian/control b/Swift/Packaging/Debian/debian/control index 217c4e7..97a5832 100644 --- a/Swift/Packaging/Debian/debian/control +++ b/Swift/Packaging/Debian/debian/control @@ -2,7 +2,7 @@ Source: swift Section: x11 Priority: optional Maintainer: Remko Tronçon -Build-Depends: debhelper (>= 7), scons (>= 1.2.0), libssl-dev (>= 0.9.8g), libqt4-dev (>= 4.5.0), libexpat1-dev (>= 2.0.1), lintian (>= 2.2.5), libxss-dev (>= 1.2.0), libboost-dev (>= 1.34.1), libboost-filesystem-dev (>= 1.34.1), libboost-program-options-dev (>= 1.34.1), libboost-regex-dev (>= 1.34.1), libboost-signals-dev (>= 1.34.1), libboost-system-dev (>= 1.34.1), libboost-thread-dev (>= 1.34.1), libboost-date-time-dev (>= 1.34.1), libidn11-dev (>= 1.10) +Build-Depends: debhelper (>= 7), scons (>= 1.2.0), libssl-dev (>= 0.9.8g), libqt4-dev (>= 4.5.0), libexpat1-dev (>= 2.0.1), lintian (>= 2.2.5), libxss-dev (>= 1.2.0), libboost-dev (>= 1.34.1) | libboost1.38-dev, libboost-filesystem-dev (>= 1.34.1) | libboost-filesystem1.38-dev, libboost-program-options-dev (>= 1.34.1) | libboost-program-options1.38-dev, libboost-regex-dev (>= 1.34.1) | libboost-regex1.38-dev, libboost-signals-dev (>= 1.34.1) | libboost-signals1.38-dev, libboost-system-dev (>= 1.34.1) | libboost-system1.38-dev, libboost-thread-dev (>= 1.34.1) | libboost-thread1.38-dev, libboost-date-time-dev (>= 1.34.1) | libboost-date-time1.38-dev, libidn11-dev (>= 1.10) Standards-Version: 3.8.4 Homepage: http://swift.im -- cgit v0.10.2-6-g49f6