Commit ea43b15e authored by Karl Lindén's avatar Karl Lindén
Browse files

use pkg-config to find sndfile (drop explicit LIB_SNDFILE and HAVE_SNDFILE...

use pkg-config to find sndfile (drop explicit LIB_SNDFILE and HAVE_SNDFILE since check_cfg deals with it)
parent aef035ad
......@@ -36,11 +36,8 @@ example_libs = {
}
def configure(conf):
e = conf.check_cc(header_name='sndfile.h', define_name="HAVE_SNDFILE", mandatory=False)
conf.check_cfg(package='sndfile', args='--cflags --libs', mandatory=False)
if conf.is_defined('HAVE_SNDFILE'):
conf.env['LIB_SNDFILE'] = ['sndfile']
e = conf.check_cc(lib='readline', define_name="HAVE_READLINE", mandatory=False)
# define_name="HAVE_READLINE" has no effect, LIB_READLINE is defined if readline is available
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment