Cope with nanomsg .pc files being called libnanomsg.pc or nanomsg.pc
authorCarl Hetherington <cth@carlh.net>
Mon, 23 Mar 2020 00:58:46 +0000 (01:58 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Mar 2020 18:47:28 +0000 (19:47 +0100)
wscript

diff --git a/wscript b/wscript
index 12012ad30d6d242030780dbe91367ee8e8ea29f4..b8253fe6a6f8fc6b8bb91f287a21c39d2400c829 100644 (file)
--- a/wscript
+++ b/wscript
@@ -385,7 +385,8 @@ def configure(conf):
 
     # nanomsg
     if conf.options.enable_dist:
-        conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
+        if conf.check_cfg(package='nanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=False) is None:
+            conf.check_cfg(package='libnanomsg', args='--cflags --libs', uselib_store='NANOMSG', mandatory=True)
 
     # FFmpeg
     if conf.options.static_ffmpeg: