]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: Link witch -lacl only on linux
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Dec 2016 15:06:13 +0000 (16:06 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 16 Dec 2016 11:51:06 +0000 (11:51 +0000)
There's no -lacl on FreeBSD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
configure.ac

index cb96df73bba94b06fe078ec8fa17a37d84944c14..de174be02681cc756c4bd94d77a9dd27a6c20dc8 100644 (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])