summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorChen Yufei <[email protected]>2022-01-12 17:49:53 +0800
committerChen Yufei <[email protected]>2022-01-12 17:55:31 +0800
commit9f9ef89aa3bbc51e364908469d5aabd351aa1c7c (patch)
treec43c8fac7565f81fbe56d9508b5bdc55f3f5f706 /xmake/modules/package/tools/autoconf.lua
parentff09778ea6494e39e3375e83fe5673cc7735b25e (diff)
autoconf: run autoreconf for configure.in
configure.in is the old name for autoconf input.
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 12b94d64f..ed5157f8a 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -325,8 +325,10 @@ function configure(package, configs, opt)
if not os.isfile("configure") then
if os.isfile("autogen.sh") then
os.vrunv("sh", {"./autogen.sh"}, {envs = autogen_envs(package, opt)})
- elseif os.isfile("configure.ac") then
- os.vrunv("sh", {"autoreconf", "--install", "--symlink"}, {envs = autogen_envs(package, opt)})
+ elseif os.isfile("configure.ac") or os.isfile("configure.in") then
+ local autoreconf = find_tool("autoreconf")
+ assert(autoreconf, "autoreconf not found!")
+ os.vrunv("sh", {autoreconf.program, "--install", "--symlink"}, {envs = autogen_envs(package, opt)})
end
end