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

            Bug ID: 33521
           Summary: elfutils configure check for libarchive is automagic
                    (no configure option to override)
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: sam at gentoo dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

elfutils currently has this in configure.ac:
```
PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd >=
0.9.33],[],[enable_debuginfod=no])
PKG_CHECK_MODULES([oldlibmicrohttpd],[libmicrohttpd <
0.9.51],[old_libmicrohttpd=yes],[old_libmicrohttpd=no])
PKG_CHECK_MODULES([sqlite3],[sqlite3 >=
3.7.17],[have_sqlite3=yes],[have_sqlite3=no])
PKG_CHECK_MODULES([libarchive],[libarchive >=
3.1.2],[have_libarchive=yes],[have_libarchive=no])
#
# pronounce judgement on ability to build server, overridden by =yes/=no
if test "x$enable_debuginfod" = "xno"; then
   true
elif test "x$have_jsonc$HAVE_CXX11$have_libarchive$have_sqlite3" =
"xyesyesyesyes"; then
   enable_debuginfod=yes
elif test "x$enable_debuginfod" = "xyes"; then
   AC_MSG_ERROR([unable to build debuginfod, missing libmicrohttpd, sqlite3 or
libarchive])
else
   enable_debuginfod=no
fi
```

This will automagically use libarchive if it is installed on the system without
a way to override it, which is problematic if we don't want to depend on
libarchive unconditionally in our packaging (https://bugs.gentoo.org/957989).

Note that even with --disable-debuginfod, we do..
```
AS_IF([test "x$have_libarchive" =
"xyes"],AC_DEFINE([HAVE_LIBARCHIVE],[1],[Define to 1 if libarchive is
available]))
```

and use libarchive_LIBS if it is available.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to