[SCM] Samba Shared Repository - branch master updated

Kai Blin kai at samba.org
Wed Jul 7 01:31:42 MDT 2010


The branch, master has been updated
       via  0b6cebd... s3 build: Fix *netgrent prototype detection on opensolaris
      from  9c3a982... s4-ldb: added support for simple binds on ldb_ldap backend

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 0b6cebd60288b37f28176e24abeb20109dfd70e5
Author: Kai Blin <kai at samba.org>
Date:   Fri Jul 2 22:35:28 2010 +0200

    s3 build: Fix *netgrent prototype detection on opensolaris

-----------------------------------------------------------------------

Summary of changes:
 source3/configure.in |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index 424c320..4c17e4c 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -6424,21 +6424,27 @@ CFLAGS_SAVE=$CFLAGS
 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
 AC_CACHE_CHECK([for setnetgrent prototype],samba_cv_setnetgrent_prototype, [
     AC_TRY_COMPILE([#include<netdb.h>
-                    #include<netgroup.h>],[setnetgrent("foo")],
+                    #ifdef HAVE_NETGROUP_H
+                    #include<netgroup.h>
+                    #endif],[setnetgrent("foo")],
                     samba_cv_setnetgrent_prototype=yes, samba_cv_setnetgrent_prototype=no)])
 if test x"$samba_cv_setnetgrent_prototype" = x"yes"; then
     AC_DEFINE(HAVE_SETNETGRENT_PROTOTYPE, 1, [If setnetgrent prototype is defined])
 fi
 AC_CACHE_CHECK([for getnetgrent prototype],samba_cv_getnetgrent_prototype, [
     AC_TRY_COMPILE([#include<netdb.h>
-                    #include<netgroup.h>],[char *dom, *user,*host; getnetgrent(&dom,&user,&host)],
+                    #ifdef HAVE_NETGROUP_H
+                    #include<netgroup.h>
+                    #endif],[char *dom, *user,*host; getnetgrent(&dom,&user,&host)],
                     samba_cv_getnetgrent_prototype=yes, samba_cv_getnetgrent_prototype=no)])
 if test x"$samba_cv_getnetgrent_prototype" = x"yes"; then
     AC_DEFINE(HAVE_GETNETGRENT_PROTOTYPE, 1, [If getnetgrent prototype is defined])
 fi
 AC_CACHE_CHECK([for endnetgrent prototype],samba_cv_endnetgrent_prototype, [
     AC_TRY_COMPILE([#include<netdb.h>
-                    #include<netgroup.h>],[endnetgrent()],
+                    #ifdef HAVE_NETGROUP_H
+                    #include<netgroup.h>
+                    #endif],[endnetgrent()],
                     samba_cv_endnetgrent_prototype=yes, samba_cv_endnetgrent_prototype=no)])
 if test x"$samba_cv_endnetgrent_prototype" = x"yes"; then
     AC_DEFINE(HAVE_ENDNETGRENT_PROTOTYPE, 1, [If endnetgrent prototype is defined])


-- 
Samba Shared Repository


More information about the samba-cvs mailing list