diff options
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 7a20d0664..2958d48fa 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -26,8 +26,12 @@ function install(package, configs) -- generate configure file - if not os.isfile("configure") and os.isfile("configure.ac") then - os.vrun("autoreconf --install --symlink") + if not os.isfile("configure") then + if os.isfile("autogen.sh") then + os.vrun("./autogen.sh") + elseif os.isfile("configure.ac") then + os.vrun("autoreconf --install --symlink") + end end -- inherit require and option configs |
