Make it possible to disable caps support since it breaks fully static
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 21:46:10 +0000 (21:46 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 21:46:10 +0000 (21:46 +0000)
builds.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@405 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac

index 941be8b..5f8da07 100644 (file)
@@ -210,7 +210,15 @@ fi
 
 #### Capabilities (optional) ####
 
-AC_CHECK_LIB(cap, cap_init, [CAP_LIBS='-lcap'], [CAP_LIBS=''])
+CAP_LIBS=''
+
+AC_ARG_WITH(
+        [caps],
+        AC_HELP_STRING([--without-caps],[Omit support for POSIX capabilities.]))
+
+if test "x${with_caps}" != "xno"; then
+    AC_CHECK_LIB(cap, cap_init, [CAP_LIBS='-lcap'], [CAP_LIBS=''])
+fi
 AC_SUBST(CAP_LIBS)
 
 #### Sample rate conversion ####