Optimise audio filters; tweak order of the LPFs in the upmixers.
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index 6c72d747e1126c252f829a5a791d42c9e37af131..a2e09ab05ca64530e19bc4d7aa7ef8707942db48 100644 (file)
--- a/wscript
+++ b/wscript
@@ -23,10 +23,10 @@ import sys
 import glob
 import distutils
 import distutils.spawn
-from waflib import Logs
+from waflib import Logs, Context
 
 APPNAME = 'dcpomatic'
-VERSION = '2.4.7devel'
+VERSION = '2.4.11devel'
 
 def options(opt):
     opt.load('compiler_cxx')
@@ -372,6 +372,15 @@ def configure(conf):
                        lib=['boost_regex%s' % boost_lib_suffix],
                        uselib_store='BOOST_REGEX')
 
+    # libxml++ requires glibmm and versions of glibmm 2.45.31 and later
+    # must be built with -std=c++11 as they use c++11
+    # features and c++11 is not (yet) the default in gcc.
+    glibmm_version = conf.cmd_and_log(['pkg-config', '--modversion', 'glibmm-2.4'], output=Context.STDOUT, quiet=Context.BOTH)
+    s = glibmm_version.split('.')
+    v = (int(s[0]) << 16) | (int(s[1]) << 8) | int(s[2])
+    if v >= 0x022D1F:
+        conf.env.append_value('CXXFLAGS', '-std=c++11')
+
     # Other stuff
 
     conf.find_program('msgfmt', var='MSGFMT')