[libpeas/wip/lantw/build-Try-the-name-of-Lua-5.1-used-on-FreeBSD] build: Try the name of Lua 5.1 used on FreeBSD



commit debccba4311581bcc152afa4fd977a0ed3ffc8a8
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sun Dec 1 20:11:51 2019 +0800

    build: Try the name of Lua 5.1 used on FreeBSD

 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index 5abb4bb..bb345d0 100644
--- a/meson.build
+++ b/meson.build
@@ -118,10 +118,16 @@ endif
 python2_dep = dependency('python2', version: python2_req, required: false)
 pygobject_dep = dependency('pygobject-3.0', version: pygobject_req, required: false)
 lua51_dep = dependency('lua51', version: lua_req, required: false)
+if not lua51_dep.found()
+  lua51_dep = dependency('lua-5.1', version: lua_req, required: false)
+endif
 luajit_dep = dependency('luajit', version: luajit_req, required: false)
 lua_lgi_found = false
 lua_lgi_ver = 'not found'
 lua51_prg = find_program('lua5.1', required: false)
+if not lua51_prg.found()
+  lua51_prg = find_program('lua51', required: false)
+endif
 luajit_prg = find_program('luajit', required: false)
 xmllint_prg = find_program('xmllint', required: false)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]