From e0c4d0273d1a433d70d4bc107905292993f45f2e Mon Sep 17 00:00:00 2001 From: Michał Łyszczek Date: Mon, 24 May 2021 19:01:22 +0200 Subject: configure.ac: add -lz optional to libmagic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes libmagic cannot be found because it also needs libz, which is not always linked directly with libmagic giving undefined reference errors to configure. Signed-off-by: Michał Łyszczek --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 68da427..5a075e6 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,7 @@ AM_CONDITIONAL([ENABLE_ANALYZER], [test "x$enable_analyzer" = "xyes"]) AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([gethostent], [nsl]) AC_SEARCH_LIBS([el_init], [embedlog]) -AC_SEARCH_LIBS([magic_open], [magic]) +AC_SEARCH_LIBS([magic_open], [magic], [], [], -lz) AX_PTHREAD -- cgit v1.2.3-8-gadcc