anchor.diff:  end
   f:write(S[=[
   site_config.LUAROCKS_UNAME_M=[[$UNAME_M]]
  -site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\config-$LUA_VERSION.lua]]
  +site_config.LUAROCKS_SYSCONFIG=[[$SYSCONFDIR\$SYSCONFFILENAME]]
   site_config.LUAROCKS_ROCKS_TREE=[[$TREE_ROOT]]
   site_config.LUAROCKS_PREFIX=[[$PREFIX]]
   site_config.LUAROCKS_DOWNLOADER=[[wget]]
  
positive.code: print(S[[Created LuaRocks site-config file: $LUADIR\luarocks\site_config.lua]])
  
  -- create config file
  vars.CONFIG_FILE = vars.SYSCONFDIR..S"\\config-$LUA_VERSION.lua"
  if not exists(vars.SYSCONFDIR) then
  	mkdir(vars.SYSCONFDIR)
  end
  
negative.code: vars.LUADIR = S"$FULL_PREFIX\\lua"
  vars.INCDIR = S"$FULL_PREFIX\\include"
  vars.LUA_SHORTV = vars.LUA_VERSION:gsub("%.", "")
  vars.SYSCONFFILENAME = S"config-$LUA_VERSION.lua"
  
  if INSTALL_LUA then
  	if vars.LUA_VERSION ~= "5.1" then
  