summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 21:46:10 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 21:46:10 +0000
commit08bbfd2169ff81e37f0e5bd911490fc07b8f05f9 (patch)
tree390bec6981f37bdcb63b40bf3bde516f1ad76f64
parentbe2ba901751755f1673b0559a29fdcb9ca651405 (diff)
Make it possible to disable caps support since it breaks fully static
builds. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@405 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 941be8b7..5f8da071 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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 ####