From ec304affa20abc18ba0a6481d760d2714597318f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 14 Apr 2013 14:40:11 -0300 Subject: Fix detection of existing configuration. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 42ecf03b..4f4a7c3e 100755 --- a/configure +++ b/configure @@ -385,8 +385,8 @@ then elif [ -e "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" ] then echo "Existing installation detected." - LUAROCKS_ROCKS_SUBDIR=`grep "LUAROCKS_ROCKS_SUBDIR" "$PREFIX/lib/lua/$LUA_VERSION/luarocks/site_config.lua" | sed 's,.*=\[\[(.*)\]\],\1,'` - echo "Using previously configured rocks dir: $LUAROCKS_ROCKS_DIR" + LUAROCKS_ROCKS_SUBDIR=`grep "LUAROCKS_ROCKS_SUBDIR" "$PREFIX/share/lua/$LUA_VERSION/luarocks/site_config.lua" | sed 's,.*=\[\[\(.*\)\]\],\1,'` + echo "Using previously configured rocks dir: $PREFIX$LUAROCKS_ROCKS_SUBDIR" elif [ -e "$PREFIX/share/lua/$LUA_OTHER_VERSION/luarocks/site_config.lua" ] then echo "Existing installation detected for other Lua version ($LUA_OTHER_VERSION)." -- cgit v1.2.3-55-g6feb