aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-24 19:01:22 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-24 19:01:22 +0200
commite0c4d0273d1a433d70d4bc107905292993f45f2e (patch)
tree58ef01292d18806f29a966ea4d31cfbca061ed4e
parent41b943f6af336ff69faae3dcb52098b5321e150d (diff)
downloadtermsend-e0c4d0273d1a433d70d4bc107905292993f45f2e.tar.gz
termsend-e0c4d0273d1a433d70d4bc107905292993f45f2e.tar.bz2
termsend-e0c4d0273d1a433d70d4bc107905292993f45f2e.zip
configure.ac: add -lz optional to libmagic
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 <michal.lyszczek@bofc.pl>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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