From 3da92ac16cd09289b302a8bef338e2226ef75be1 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Mon, 15 Feb 2016 09:42:33 -0800 Subject: [PATCH] bugfix: ./configure: use of relative paths like "./nginx" in --prefix=PATH led to compilation errors. thanks Tao Huang for the report in openresty/stream-lua-nginx-module#11. --- util/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/configure b/util/configure index 1fa0018..ea0cc36 100755 --- a/util/configure +++ b/util/configure @@ -767,8 +767,8 @@ _END_ print $in <<"_EOC_"; ngx_lua_dquote='"' -CFLAGS="\$CFLAGS -DLUA_DEFAULT_PATH='\$ngx_lua_dquote$path_prefix/?.lua;$path_prefix/?/init.lua\$ngx_lua_dquote'" -CFLAGS="\$CFLAGS -DLUA_DEFAULT_CPATH='\$ngx_lua_dquote$path_prefix/?.so\$ngx_lua_dquote'" +CFLAGS="\$CFLAGS -DLUA_DEFAULT_PATH='\${ngx_lua_dquote}$path_prefix/?.lua;$path_prefix/?/init.lua\$ngx_lua_dquote'" +CFLAGS="\$CFLAGS -DLUA_DEFAULT_CPATH='\${ngx_lua_dquote}$path_prefix/?.so\$ngx_lua_dquote'" _EOC_ }