configure: Link witch -lacl only on linux

There's no -lacl on FreeBSD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2016-12-15 16:06:13 +01:00 committed by Daniel P. Berrange
parent 1d29c889ad
commit 4a4a5152f4

View File

@ -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])