summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-01-19 09:32:49 +0100
committerKarolin Seeger <kseeger@samba.org>2018-01-25 21:05:22 +0100
commit3bc0a57a81407cd265780cd6ecb2f12e0d5afb1b (patch)
tree0c0daf69e698e9c1dd2798b0382ca600ac4d8f02 /source3
parentbde3d6402e6424015089fe3a2887c72eee45144f (diff)
downloadsamba-3bc0a57a81407cd265780cd6ecb2f12e0d5afb1b.tar.gz
s3:waf: Move HAVE_NETGROUP to wscript
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238 Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> (cherry picked from commit ca5eaf0cdcf8257ac52786aa7439c8f081a2fe0d)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/includes.h4
-rw-r--r--source3/wscript5
2 files changed, 5 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 58bfaa719a1..0a850ff3c57 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -91,10 +91,6 @@
#include <rpc/rpc.h>
#endif
-#if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined(HAVE_SETNETGRENT) && defined(HAVE_ENDNETGRENT) && defined(HAVE_GETNETGRENT)
-#define HAVE_NETGROUP 1
-#endif
-
#if defined (HAVE_NETGROUP)
#if defined(HAVE_RPCSVC_YP_PROT_H)
/*
diff --git a/source3/wscript b/source3/wscript
index 6ddb49ae650..02a33c61bb2 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -634,6 +634,11 @@ msg.msg_accrightslen = sizeof(fd);
headers='netdb.h netgroup.h',
cflags=netgrent_cflags)
+ if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN') and
+ conf.CONFIG_SET('HAVE_SETNETGRENT') and
+ conf.CONFIG_SET('HAVE_ENDNETGRENT') and
+ conf.CONFIG_SET('HAVE_GETNETGRENT')):
+ conf.DEFINE('HAVE_NETGROUP', '1')
# Look for CUPS
if Options.options.with_cups: