diff --git a/configure.ac b/configure.ac index 609db45..fe0ad42 100644 --- a/configure.ac +++ b/configure.ac @@ -666,34 +666,6 @@ AC_SUBST([TCL_LIBS]) AC_SUBST([TCL_CFLAGS]) -dnl Check for lua availability, so we can enable HamlibLua -# Lua bindings -AC_MSG_CHECKING([whether to build lua binding]) -AC_ARG_WITH([lua-binding], - [AS_HELP_STRING([--with-lua-binding], - [build lua binding @<:@default=no@:>@])], - [cf_with_lua_binding=$withval], - [cf_with_lua_binding=no]) -AC_MSG_RESULT([$cf_with_lua_binding]) - -dnl AX_LUA_DEVEL from macros/ax_lua_devel.m4 -AS_IF([test x"${cf_with_lua_binding}" = "xyes"],[ - - AX_PROG_LUA([5.2], [5.5]) - AX_LUA_HEADERS - AX_LUA_LIBS - - BINDING_LIST="${BINDING_LIST} lua" - BINDING_ALL="${BINDING_ALL} all-lua" - BINDING_CHECK="${BINDING_CHECK} check-lua" - BINDING_CLEAN="${BINDING_CLEAN} clean-lua" - BINDING_DISTCLEAN="${BINDING_DISTCLEAN} distclean-lua" - BINDING_INSTALL_EXEC="${BINDING_INSTALL_EXEC} install-lua" - BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-lua" - BINDING_LIB_TARGETS="${BINDING_LIB_TARGETS} \$(lua_ltlib)"]) - -AM_CONDITIONAL([ENABLE_LUA], [test x"${cf_with_lua_binding}" = "xyes"]) - dnl Only search for Swig if one or more bindings are enabled. AS_IF([test "x${BINDING_ALL}" != "x"], diff --git a/bindings/Makefile.am b/bindings/Makefile.am index fa75abc..75319ff 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -191,44 +191,7 @@ uninstall-tcl: endif # TCL -if ENABLE_LUA -########################################## -# Lua binding - -luaexec_ltlib = Hamliblua.la - -MOSTLYCLEANFILES += hamliblua_wrap.c -BUILT_SOURCES += hamliblua_wrap.c -example_DATA += luatest.lua - -nodist_luaexec_LUA = Hamlib.lua -nodist_Hamliblua_la_SOURCES = hamliblua_wrap.c - -Hamliblua_la_CPPFLAGS = $(LUA_INCLUDE) -I$(top_srcdir)/include -I$(top_srcdir)/src -Hamliblua_la_LDFLAGS = -no-undefined -module -avoid-version -Hamliblua_la_LIBADD = $(top_builddir)/src/libhamlib.la -Hamliblua_ladir = $(luaexecdir) -Hamliblua_la_LTLIBRARIES = $(luaexec_ltlib) - -all-lua: $(luaexec_ltlib) -check-lua: all-lua - $(AM_V_at)LUA_CPATH="$(abs_builddir)/.libs/?.so" $(LUA) $(srcdir)/luatest.lua \ - || echo "Lua test failed" 1>&2 - -Hamlib.lua: hamliblua_wrap.c - -hamliblua_wrap.c: hamlib.swg $(SWGDEP) - $(AM_V_GEN)$(SWIG) -lua $(AM_CPPFLAGS) -I$(top_srcdir)/bindings \ - -o $@ $$(test -f hamlib.swg || echo '$(srcdir)/')hamlib.swg - -install-lua: -clean-lua: -distclean-lua: -uninstall-lua: - -endif -# Lua all-local: @BINDING_ALL@