From: Amos Jeffries Date: Sun, 23 Mar 2014 05:17:14 +0000 (-0600) Subject: Portability: invert the basic_nis_auth header check X-Git-Tag: SQUID_3_5_0_1~323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebfc5b5ab8618ef80978ae8311ca370616024001;p=thirdparty%2Fsquid.git Portability: invert the basic_nis_auth header check autoconf macro will set its action-if-found if *any* of the headers is found. Since these are mandatory headers being tested for we need to disable if any are missing rather than enable on finding one works. --- diff --git a/helpers/basic_auth/NIS/required.m4 b/helpers/basic_auth/NIS/required.m4 index 20215c3fd4..85eb06844f 100755 --- a/helpers/basic_auth/NIS/required.m4 +++ b/helpers/basic_auth/NIS/required.m4 @@ -1,4 +1,5 @@ -AC_CHECK_HEADERS([sys/types.h rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h crypt.h],[BUILD_HELPER="NIS"],,AC_INCLUDES_DEFAULT([ +BUILD_HELPER="NIS" +AC_CHECK_HEADERS([sys/types.h rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h crypt.h],[],[BUILD_HELPER=""],AC_INCLUDES_DEFAULT([ #if HAVE_RPC_RPC_H #include #endif