From de5e5e25dec8a5352c4adf4b0eee3de6658eaf73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Wed, 18 Apr 2012 15:29:10 +0800 Subject: [PATCH] bugfix: now we also add /lualib/?/init.lua to the default LUA_PATH. thanks bigplum for reporting this issue. --- util/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/configure b/util/configure index 538c117..70d08f2 100755 --- a/util/configure +++ b/util/configure @@ -615,7 +615,7 @@ _END_ print $in <<"_EOC_"; ngx_lua_dquote='"' -CFLAGS="\$CFLAGS -DLUA_DEFAULT_PATH='\$ngx_lua_dquote$lualib_prefix/?.lua\$ngx_lua_dquote'" +CFLAGS="\$CFLAGS -DLUA_DEFAULT_PATH='\$ngx_lua_dquote$lualib_prefix/?.lua;$lualib_prefix/?/init.lua\$ngx_lua_dquote'" CFLAGS="\$CFLAGS -DLUA_DEFAULT_CPATH='\$ngx_lua_dquote$lualib_prefix/?.so\$ngx_lua_dquote'" _EOC_