summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-07-11 10:28:06 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2013-07-11 10:28:06 +0200
commit2fdc6ef88ad267284fb408bdc2a44dbc85a4f1d2 (patch)
tree1e54b3ff054e52ab78c764491d824313ba8a3ed8 /configure.ac
parent5c6bb3052fa79f2359fa9f712917086a016f4775 (diff)
configure: compile cgroup example conditionally
Only compile the cgroup example when we have libcgroup
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index aafa57f..0c2ad62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,7 @@ AC_SUBST([GST_OBJ_LIBS])
PKG_CHECK_MODULES(LIBCGROUP, libcgroup >= 0.26, HAVE_LIBCGROUP="yes", HAVE_LIBCGROUP="no")
AC_SUBST(LIBCGROUP_CFLAGS)
AC_SUBST(LIBCGROUP_LIBS)
+AM_CONDITIONAL(HAVE_LIBCGROUP, test "x$HAVE_LIBCGROUP" = "xyes")
dnl this really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
@@ -265,6 +266,7 @@ Configuration
Source code location : ${srcdir}
Prefix : ${prefix}
Compiler : ${CC}
+ CGroups example : ${HAVE_LIBCGROUP}
gst-rtsp-server configured. Type 'make' to build.
"