1.1 --- a/librazor/Makefile.am Thu Jan 08 17:12:28 2009 +0000
1.2 +++ b/librazor/Makefile.am Thu Feb 05 22:43:29 2009 +0000
1.3 @@ -12,6 +12,9 @@
1.4 -DPACKAGE_LIB_DIR=\""$(libdir)"\"
1.5
1.6 lib_LTLIBRARIES = librazor.la
1.7 +if HAVE_LUA
1.8 + check_PROGRAMS = test-lua
1.9 +endif
1.10
1.11 librazorincludedir = $(includedir)/razor
1.12
1.13 @@ -31,7 +34,22 @@
1.14 merger.c \
1.15 transaction.c
1.16
1.17 -librazor_la_LIBADD = $(ZLIB_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
1.18 +if HAVE_LUA
1.19 + librazor_la_SOURCES += lua.c
1.20 +endif
1.21 +
1.22 +librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
1.23 +
1.24 +if HAVE_LUA
1.25 + test_lua_SOURCES = test-lua.c
1.26 + test_lua_LDADD = lua.lo util.lo $(LUA_LIBS) ../gl/libgnu.la \
1.27 + $(EXTRA_LIBS)
1.28 +
1.29 + TESTS = test-lua
1.30 +endif
1.31 +
1.32 +EXTRA_DIST = \
1.33 + test.lua
1.34
1.35 clean-local :
1.36 rm -f *~