diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-11-08 08:32:18 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-12-03 12:58:52 +0000 |
commit | 63100e308c71517311559e501a7a18179c9ff2d8 (patch) | |
tree | d534496ab2e4c9e6c9a7e267210d6b5deac2f1d3 | |
parent | f976ad9dc41ae14919c9923fc82ba747b1dd181c (diff) |
mobile: Search for lua5.3 and link to it
I will be adding a high-level async scripting interface to the
mobile application. The initial implementation will use Lua 5.3.
This version was released in January 2015 and is the latest version
at the time the commit was made. Lua as extension and extensible
language seems well suited for scripting.
The plan is to attach a script to a ms and be able to trigger high
level operations (send SMS, attach to network, detach).
Change-Id: Ic649e49a22c878585a6c20b5b80108909f2374eb
-rw-r--r-- | src/host/layer23/configure.ac | 7 | ||||
-rw-r--r-- | src/host/layer23/src/mobile/Makefile.am | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac index de26d230..a5938c7a 100644 --- a/src/host/layer23/configure.ac +++ b/src/host/layer23/configure.ac @@ -21,6 +21,13 @@ AC_SUBST([LIBGPS_CFLAGS]) AC_SUBST([LIBGPS_LIBS]) +dnl optional dependencies +PKG_CHECK_MODULES(LIBLUA, lua53, [ + WITH_LUA=1], [ + WITH_LUA=0]) +AC_SUBST([WITH_LUA]) +AM_CONDITIONAL([BUILD_LUA], test "x$WITH_LUA" = "x1") + dnl checks for header files AC_HEADER_STDC diff --git a/src/host/layer23/src/mobile/Makefile.am b/src/host/layer23/src/mobile/Makefile.am index 90468c04..47870e56 100644 --- a/src/host/layer23/src/mobile/Makefile.am +++ b/src/host/layer23/src/mobile/Makefile.am @@ -1,6 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBGPS_CFLAGS) -LDADD = ../common/liblayer23.a $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOCODEC_LIBS) $(LIBGPS_LIBS) +AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBGPS_CFLAGS) $(LIBLUA_CFLAGS) +LDADD = ../common/liblayer23.a $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOCODEC_LIBS) $(LIBGPS_LIBS) $(LIBLUA_LIBS) noinst_LIBRARIES = libmobile.a libmobile_a_SOURCES = gsm322.c gsm480_ss.c gsm411_sms.c gsm48_cc.c gsm48_mm.c \ |