summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-02 22:41:32 +0800
committerruki <[email protected]>2023-08-02 22:41:32 +0800
commit0ffb589fb816c4d886cf88d322df45f7ebe5434e (patch)
treefa1790db80813ebcde04fe7551feaa14d1238bab /xmake/modules/package/tools/autoconf.lua
parenta27745121cc4ce14d3c4523086a0cb5a4f1a86a8 (diff)
fix aclocal path
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 258a31bd3..1512173dd 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -371,6 +371,9 @@ function buildenvs(package, opt)
if os.isdir(pkgconfig) then
table.insert(PKG_CONFIG_PATH, pkgconfig)
end
+ end
+ -- some binary packages contain it too. e.g. libtool
+ for _, dep in ipairs(package:orderdeps()) do
local aclocal = path.join(dep:installdir(), "share", "aclocal")
if os.isdir(aclocal) then
table.insert(ACLOCAL_PATH, aclocal)
@@ -396,6 +399,9 @@ function autogen_envs(package, opt)
if os.isdir(pkgconfig) then
table.insert(PKG_CONFIG_PATH, pkgconfig)
end
+ end
+ -- some binary packages contain it too. e.g. libtool
+ for _, dep in ipairs(package:orderdeps()) do
local aclocal = path.join(dep:installdir(), "share", "aclocal")
if os.isdir(aclocal) then
table.insert(ACLOCAL_PATH, aclocal)