mirror of
https://github.com/aria2/aria2.git
synced 2024-11-27 12:04:46 +08:00
02985711df
Use pkg-config to find cppunit, libxml2 and expat. All those libraries provide pkg-config files, and in all of those cases the pkg-config macro is superior to the custom macros used currently. The advantages of pkg-config files include: - Explicit static linking support via --static. Currently, e.g. 'xml2-config --libs' prints all libraries needed for static linking when doing dynamic linking unnecessary, resulting in unnecessary direct deps. - Better cross-build support. You don't have to build the additional *-config tools for target. - Better multilib support. Per-ABI pkgconfig directories are commonly supported while packages usually fail to look for per-CHOST *-config variants. - Better override support. The current macros allow little to no result overrides, the pkg-config macros let you pass FOO_CFLAGS and FOO_LIBS manually. - Cleaner version checks. The code used in libxml.m4 is really creepy. |
||
---|---|---|
.. | ||
aria2_arg.m4 | ||
ax_check_compile_flag.m4 | ||
ax_cxx_compile_stdcxx_11.m4 | ||
fallocate.m4 |