mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 19:29:15 +00:00
configure.ac: don't let -lcgmanager end up in LIBS
AC_SEARCH_LIBS always places the library being queried into LIBS. We don't want that - we were only checking whether a function is available. Not everything (notably not init.lxc.static) needs to link against -lcgmanager. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
9d9c111c61
commit
07ffb1303e
@ -257,7 +257,9 @@ AM_COND_IF([ENABLE_CGMANAGER],
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_MSG_CHECKING(for get_pid_cgroup_abs_sync)
|
AC_MSG_CHECKING(for get_pid_cgroup_abs_sync)
|
||||||
|
save_LIBS=$LIBS
|
||||||
AC_SEARCH_LIBS([cgmanager_get_pid_cgroup_abs_sync], [cgmanager], [have_abs_cgroups=yes], [have_abs_cgroups=no], [-lnih -lnih-dbus -ldbus-1])
|
AC_SEARCH_LIBS([cgmanager_get_pid_cgroup_abs_sync], [cgmanager], [have_abs_cgroups=yes], [have_abs_cgroups=no], [-lnih -lnih-dbus -ldbus-1])
|
||||||
|
LIBS=$save_LIBS
|
||||||
if test "x$have_abs_cgroups" = "xyes"; then
|
if test "x$have_abs_cgroups" = "xyes"; then
|
||||||
AC_DEFINE([HAVE_CGMANAGER_GET_PID_CGROUP_ABS_SYNC], 1, [Have cgmanager_get_pid_cgroup_abs_sync])
|
AC_DEFINE([HAVE_CGMANAGER_GET_PID_CGROUP_ABS_SYNC], 1, [Have cgmanager_get_pid_cgroup_abs_sync])
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
Loading…
Reference in New Issue
Block a user