Cope with different names for ImageMagick's .pc file (Linux and macOS).
[dcpomatic.git] / test / wscript
index 0f90001f66f4c0d7d152fa51af34694ce589aabe..88df9177fb7834f8ffcc0065f51b87ea94713ee4 100644 (file)
@@ -30,7 +30,8 @@ def configure(conf):
                             int main() {}
                             """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
 
-    conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=True)
+    if conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=False) is None:
+        conf.check_cfg(package='Magick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=True)
 
 def build(bld):
     obj = bld(features='cxx cxxprogram')