From ac642780808d14e921b089df40f9fca273fba31e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 27 Jan 2005 11:30:21 +0000 Subject: [PATCH] fixes for older luabind versions --- src/Jamrules | 6 +++++- src/eressea/Jamfile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Jamrules b/src/Jamrules index aec57ee48..9fe07c9d2 100644 --- a/src/Jamrules +++ b/src/Jamrules @@ -44,7 +44,7 @@ if $(HOST) = "hamunaptra" { } else { XMLHDRS = /usr/include/libxml2 ; } -C++FLAGS += -DHAVE_LUABIND_B7 ; +C++FLAGS += -DHAVE_LUABIND_$(LUABIND) ; rule iconv { @@ -106,6 +106,10 @@ if ! $(DEBUG) { DEBUG = 1 ; } +if $(WITHOUT_LUA) { + ECHO Compiling without LUA ; +} + if $(PROFILE) = 1 { TARGET_PREFIX = Profile ; } diff --git a/src/eressea/Jamfile b/src/eressea/Jamfile index 877dc7a70..f6ef0b74c 100644 --- a/src/eressea/Jamfile +++ b/src/eressea/Jamfile @@ -44,7 +44,7 @@ iconv $(LUASERVER) ; libxml2 $(LUASERVER) ; LINKLIBS on $(LUASERVER) += -lm -ldl -lstdc++ ; -if $(HAVE_LUA) { +if ! $(WITHOUT_LUA) { SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ; SubDirC++Flags -DHAVE_LUA ; UsingLua ;