From 57ccf44dca2905aa85d852177ffa4ad28ccfb9da Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 28 Oct 2010 16:35:36 +0000 Subject: Transparent proxying without running as root. Using linux capabilitiy CAP_NET_ADMIN --- configure.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 321c0a3..48ca230 100644 --- a/configure.in +++ b/configure.in @@ -108,6 +108,13 @@ AC_CHECK_FUNCS([memset strerror malloc realloc getopt strchr tolower getaddrinfo AC_CHECK_FUNCS([strlwr strlcat strlcpy strncat strncpy strcasestr setenv daemon]) AC_CHECK_FUNCS([getline getdelim]) +# libcap2 +AC_CHECK_LIB([cap], [cap_get_proc], have_libcap="yes", have_libcap="no") +if test $have_libcap = yes; then + AC_DEFINE(HAVE_LIBCAP, 1, [Have libcap2 package, libcap library]) + LIBS="$LIBS -lcap" +fi + # Have to resolve this for the path below if test "${prefix}" = "NONE"; then prefix=$ac_default_prefix -- cgit v1.2.3