mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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 commitb48da89dd6("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: commitb48da89dd6Related: https://github.com/libguestfs/libguestfs/issues/184
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user