]> git.ipfire.org Git - thirdparty/elfutils.git/commit
configure.ac: Add option --with-libarchive
authorAaron Merey <amerey@redhat.com>
Thu, 9 Oct 2025 00:31:20 +0000 (20:31 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 14 Oct 2025 13:57:27 +0000 (09:57 -0400)
commitc5fa0eb29c1d8b818ee48796042f292c3a80e288
tree30c6da685dd1653b65bc8141a0ec21d004083e27
parentda66afc5162502a22c7a00f07c4e81734f86ccb2
configure.ac: Add option --with-libarchive

libarchive is required to build debuginfod server and optional for
eu-srcfiles (it enables the --zip option). If neither debuginfod server
nor eu-srcfiles --zip are needed, libarchive can be excluded from the
build.

Currently there is no way to exclude libarchive from the build if
PKG_CHECK_MODULES finds it at configure time.  While debuginfod server
can be disabled with --disable-debuginfod, eu-srcfiles is
unconditionally built with libarchive if it is found.

Add configure option --with-libarchive so that this behavior can be
overridden.

--without-libarchive and --enable-debuginfod cannot be used together.

https://sourceware.org/bugzilla/show_bug.cgi?id=33521

Signed-off-by: Aaron Merey <amerey@redhat.com>
configure.ac