Fix message on config error and make it fatal.
authorCarl Hetherington <cth@carlh.net>
Mon, 29 Jan 2024 23:31:06 +0000 (00:31 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 29 Jan 2024 23:31:06 +0000 (00:31 +0100)
wscript

diff --git a/wscript b/wscript
index d813c536b42560f4acc0f4bc9c847f0d7a51bab1..ba74aa0f5a9d55242932c3fd1befb39a6f155ef6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -131,7 +131,8 @@ def configure(conf):
             image = conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=False)
             graphics = conf.check_cfg(package='GraphicsMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=False)
             if image is None and graphics is None:
-                Logs.error('Neither ImageMagick++ nor GraphicsMagick++ found: one or the other is required unless you ./waf configure --disable-examples --disable-dcpdumpimage')
+                Logs.error('Neither ImageMagick++ nor GraphicsMagick++ found: one or the other is required unless you ./waf configure --disable-examples --disable-dumpimage')
+                sys.exit(1)
 
     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=False)