Cope with different names for ImageMagick's .pc file (Linux and macOS).
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Sep 2020 18:54:17 +0000 (20:54 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 Oct 2020 15:33:27 +0000 (17:33 +0200)
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')