diff options
| author | ruki <[email protected]> | 2018-09-29 22:08:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-29 22:08:43 +0800 |
| commit | 12d62a3b18d65fb65b20381ba360f8686ee002d3 (patch) | |
| tree | 194c5bf79c5fe89934656d938860d7d07cfab7b3 /xmake/modules/package/tools | |
| parent | 1bc9bfbc31c3004457261351ceb96677b2c81fcc (diff) | |
remove repeat packages when installing
Diffstat (limited to 'xmake/modules/package/tools')
| -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 |
