diff -r 636f120d1b5e -r 4866573c6944 librazor/Makefile.am --- a/librazor/Makefile.am Thu Jan 08 17:12:28 2009 +0000 +++ b/librazor/Makefile.am Thu Feb 05 22:43:29 2009 +0000 @@ -12,6 +12,9 @@ -DPACKAGE_LIB_DIR=\""$(libdir)"\" lib_LTLIBRARIES = librazor.la +if HAVE_LUA + check_PROGRAMS = test-lua +endif librazorincludedir = $(includedir)/razor @@ -31,7 +34,22 @@ merger.c \ transaction.c -librazor_la_LIBADD = $(ZLIB_LIBS) ../gl/libgnu.la $(EXTRA_LIBS) +if HAVE_LUA + librazor_la_SOURCES += lua.c +endif + +librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS) + +if HAVE_LUA + test_lua_SOURCES = test-lua.c + test_lua_LDADD = lua.lo util.lo $(LUA_LIBS) ../gl/libgnu.la \ + $(EXTRA_LIBS) + + TESTS = test-lua +endif + +EXTRA_DIST = \ + test.lua clean-local : rm -f *~