diff --git a/luasession/wscript b/luasession/wscript index f8ff0ba5be..f225536071 100644 --- a/luasession/wscript +++ b/luasession/wscript @@ -8,12 +8,22 @@ def options(opt): def configure(conf): conf.check_cc( + msg = 'Checking for static libreadline', header_name='stdio.h readline/readline.h', - lib='readline', + lib= [':libreadline.a', 'termcap'], uselib_store='READLINE', define_name='HAVE_READLINE', mandatory=False) + if not conf.is_defined('HAVE_READLINE'): + conf.check_cc( + msg = 'Checking for libreadline', + header_name='stdio.h readline/readline.h', + lib='readline', + uselib_store='READLINE', + define_name='HAVE_READLINE', + mandatory=False) + def build(bld): if not bld.is_defined('HAVE_READLINE'): return