ref: 72bcef603c6b6ddc54ba2a33556390286c332b7c
parent: a13171633d5a5a3a02c61ba142dc41742f0e195a
author: cbagwell <cbagwell>
date: Fri Jan 19 20:41:17 EST 2007
Fix compiles when build directory is different then source directory. Needed by package mantainers and "make distcheck".
--- a/configure.ac
+++ b/configure.ac
@@ -169,11 +169,11 @@
if test "x$with_lua_prefix" = x && test "x$with_lua_includes" = x && \
test "x$with_lua_libraries" = x && test "x$with_lua_suffix" = x; then
AC_MSG_NOTICE("Using built-in Lua")
- with_lua_prefix=../lua
+ with_lua_prefix="\$(top_srcdir)/lua"
want_internal_lua=yes
LUA="$with_lua_prefix/lua"
- LUA_INCLUDES="-I$with_lua_prefix/src"
- LUA_LIBS="-L$with_lua_prefix/src -llua"
+ LUA_INCLUDES="-I$with_lua_prefix/src -I\$(top_builddir)/lua/src"
+ LUA_LIBS="-L\$(top_builddir)/lua/src -llua"
else
want_internal_lua=no