Skip to content

Commit

Permalink
s3:waf: Move HAVE_NETGROUP to wscript
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238

Pair-Programmed-With: Guenther Deschner <[email protected]>

Signed-off-by: Andreas Schneider <[email protected]>
Signed-off-by: Guenther Deschner <[email protected]>
Reviewed-by: Alexander Bokovoy <[email protected]>
  • Loading branch information
cryptomilk committed Jan 22, 2018
1 parent 850a802 commit ca5eaf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source3/include/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/*
Expand Down
5 changes: 5 additions & 0 deletions source3/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,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:
Expand Down

0 comments on commit ca5eaf0

Please sign in to comment.