From 4a4a5152f45ccc307df2dad29f4286f47599807d Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 15 Dec 2016 16:06:13 +0100 Subject: [PATCH] configure: Link witch -lacl only on linux There's no -lacl on FreeBSD. Signed-off-by: Michal Privoznik --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cb96df73bb..de174be026 100644 --- a/configure.ac +++ b/configure.ac @@ -320,7 +320,7 @@ AC_CHECK_FUNCS([stat stat64 __xstat __xstat64 lstat lstat64 __lxstat __lxstat64] ACL_CFLAGS="" ACL_LIBS="" -if test "x$ac_cv_header_sys_acl_h" = "xyes" ; then +if test "x$ac_cv_header_sys_acl_h:x$with_linux" = "xyes:xyes" ; then ACL_LIBS="-lacl" fi AC_SUBST([ACL_CFLAGS])