diff --git a/configure.ac b/configure.ac index 6a0936a9ba..5753c08577 100644 --- a/configure.ac +++ b/configure.ac @@ -687,8 +687,9 @@ fi if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then AC_TRY_LINK([ #include + #include ], [ - unshare (1); + unshare (!LO_FLAGS_AUTOCLEAR); ], [ with_lxc=yes ], [