]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: invert the basic_nis_auth header check
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 23 Mar 2014 05:17:14 +0000 (23:17 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 23 Mar 2014 05:17:14 +0000 (23:17 -0600)
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.

helpers/basic_auth/NIS/required.m4

index 20215c3fd4b9f70923d079d538f80a5b150e856b..85eb06844fed38930569cd7c3ee8a96b2b1720ae 100755 (executable)
@@ -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 <rpc/rpc.h>
 #endif