build: Remove test for libmagic

libmagic (part of the "file" command) was required in earlier versions
of libguestfs, but this requirement was effectively removed in
commit b48da89dd6 ("daemon: Reimplement ‘file_architecture’ API in
OCaml") back in 2017.  Or to be more precise, we now use the "file"
command inside the daemon, which may or may not use libmagic but we
no longer link to the library directly.

Reported-by: Mohamed Akram
Fixes: commit b48da89dd6
Related: https://github.com/libguestfs/libguestfs/issues/184
This commit is contained in:
Richard W.M. Jones
2025-04-22 11:59:25 +01:00
parent 632937d8fb
commit 2b2be31af0
2 changed files with 0 additions and 14 deletions

View File

@@ -260,16 +260,6 @@ LIBS="$AUGEAS_LIBS"
AC_CHECK_FUNCS([aug_source])
LIBS="$old_LIBS"
dnl libmagic (required)
AC_CHECK_LIB([magic],[magic_file],[
AC_CHECK_HEADER([magic.h],[
AC_SUBST([MAGIC_LIBS], ["-lmagic"])
], [])
],[])
AS_IF([test -z "$MAGIC_LIBS"],
[AC_MSG_ERROR([libmagic (part of the "file" command) is required.
Please install the file devel package])])
dnl libvirt (highly recommended)
AC_ARG_WITH([libvirt],[
AS_HELP_STRING([--without-libvirt],