--mandir=DIR directory to install manual pages
--disable-dependency-tracking speed up one-time builds
- --enable-link-sh decrease the number of direct dependencies
+ --enable-asneeded decrease the number of direct dependencies
Program options:
--enable-debug include debugging symbols and code paths
--
-- Return true if a file exists, false otherwise.
-function file_exists(file)
- return os.execute("test -f "..file) == 0
+function file_exists(path)
+ return os.execute(string.format("test -f %q", path)) == 0
end
-- Print an error message and exit with an error.
function die(...)
- for _,value in ipairs(arg) do
+ for i,value in ipairs(arg) do
print("fatal: "..tostring(value))
end
if file_exists(config_log) then
-- code zero) given some arguments. Returns nil if none were successful.
function find_command(commands, args)
if not args then args = "" end
- for _,command in ipairs(commands) do
+ for i,command in ipairs(commands) do
if try_run(command.." "..args) then return command end
end
return nil
print("warning: unknown or incomplete argument "..arg)
end
- for _,arg in ipairs(arg) do
+ for i,arg in ipairs(arg) do
parse_arg(arg)
end
config.USE_THREADS = get_feature("threads")
config.PROFILING_ENABLED = get_feature("profile") and add_cflag("-pg")
-if get_feature("link-sh") then
- -- TODO
+if get_feature("asneeded") then
+ define.AS_NEEDED = true
end
if get_package("gtk") then