From: Henrik Nordstrom Date: Tue, 27 Oct 2009 21:55:06 +0000 (+0100) Subject: Correct use_libcap internal variable setting when auto detected X-Git-Tag: SQUID_3_2_0_1~647^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a4d3ec8a81a29928861044ef9c01ec021d8a978;p=thirdparty%2Fsquid.git Correct use_libcap internal variable setting when auto detected --- diff --git a/configure.in b/configure.in index 7329ce8947..c818018fc3 100644 --- a/configure.in +++ b/configure.in @@ -2771,7 +2771,9 @@ AC_ARG_WITH(libcap, AS_HELP_STRING([--without-libcap],[disable usage of Linux ca if test "x$use_libcap" != "xno"; then # cap_clear_flag is the most recent libcap function we require AC_CHECK_LIB(cap, cap_clear_flag) - if test "x$ac_cv_lib_cap_cap_clear_flag" != xyes; then + if test "x$ac_cv_lib_cap_cap_clear_flag" = xyes; then + use_libcap=yes + else if test "x$use_libcap" = "xyes"; then AC_MSG_ERROR([libcap forced enabled but not available or not usable, requires libcap-2.09 or later]) fi @@ -2779,7 +2781,7 @@ if test "x$use_libcap" != "xno"; then fi fi -if test "x$use_libcap" != "xno"; then +if test "x$use_libcap" = "xyes"; then AC_DEFINE(USE_LIBCAP, 1, [use libcap to set capabilities required for TPROXY]) dnl Check for libcap headader breakage. AC_CHECK_HEADERS(sys/capability.h)