libzip uses pkg-config.
authorCarl Hetherington <cth@carlh.net>
Wed, 2 Oct 2013 10:35:59 +0000 (11:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 2 Oct 2013 10:35:59 +0000 (11:35 +0100)
wscript

diff --git a/wscript b/wscript
index d129e620be2339595939fb8acb50816400443da0..1e28b209abcda7453d137e0e722eb5b88593f82b 100644 (file)
--- a/wscript
+++ b/wscript
@@ -137,15 +137,7 @@ def configure(conf):
     conf.check_cfg(package= '', path=conf.options.magickpp_config, args='--cppflags --cxxflags --libs', uselib_store='MAGICK', mandatory=True)
     conf.check_cfg(package='libxml++-2.6', args='--cflags --libs', uselib_store='XML++', mandatory=True)
     conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL', mandatory=True)
-
-    conf.check_cxx(fragment="""
-                            #include <zip.h>
-                            int main(void) { zip_open ("foo", 0, 0); }
-                            """,
-                   mandatory=True,
-                   msg='Checking for libzip',
-                   lib='zip',
-                   uselib_store='ZIP')
+    conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)
 
     conf.check_cxx(fragment="""
                             #include <boost/version.hpp>\n