Use AC_CHECK_LIB instead of AC_SEARCH_LIBS, to prevent adding -larchive to global LIBS variable. This gets rid of superfluous dynamic link against libarchive in all built executables (claws-mail and plugins).

This commit is contained in:
Andrej Kacian 2014-12-22 19:42:55 +01:00
parent b018455356
commit 22e05b492f

View file

@ -1096,7 +1096,7 @@ AC_SUBST(LIBSOUP_GNOME_CFLAGS)
AC_SUBST(LIBSOUP_GNOME_LIBS)
dnl libarchive *****************************************************************
AC_SEARCH_LIBS([archive_read_new], [archive],
AC_CHECK_LIB([archive], [archive_read_new],
ARCHIVE_LIBS=-larchive
HAVE_ARCHIVE=yes
AC_SUBST(ARCHIVE_LIBS),