diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-10-15 08:32:25 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2006-10-15 08:32:25 +0000 |
commit | d105d6a7b8040bb61c110625394b94b83bc2fcf2 (patch) | |
tree | 6ef1d6dca7e73927387897eaa2def63ff5726221 /source/configure.in | |
parent | 00d07922934b912dc6cf01d4107abb175e7b6d38 (diff) | |
download | samba-d105d6a7b8040bb61c110625394b94b83bc2fcf2.tar.gz samba-d105d6a7b8040bb61c110625394b94b83bc2fcf2.tar.xz samba-d105d6a7b8040bb61c110625394b94b83bc2fcf2.zip |
r19287: As requested by Bjoern Jacke <bjoern@j3e.de>: Check in the NetBSD winbind module by Luke
Mewburn.
Volker
Diffstat (limited to 'source/configure.in')
-rw-r--r-- | source/configure.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/configure.in b/source/configure.in index 8531738ec0a..d01dc43314f 100644 --- a/source/configure.in +++ b/source/configure.in @@ -1234,6 +1234,7 @@ AC_CHECK_FUNCS(setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate AC_CHECK_FUNCS(lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64) AC_CHECK_FUNCS(fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf) AC_CHECK_FUNCS(opendir64 readdir64 seekdir64 telldir64 rewinddir64 closedir64) +AC_CHECK_FUNCS(getpwent_r) AC_CHECK_FUNCS(getdents getdents64) AC_CHECK_FUNCS(srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink) AC_CHECK_FUNCS(syslog vsyslog timegm) @@ -5550,6 +5551,23 @@ case "$host_os" in WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT" WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT" ;; + + *netbsd*[[3-9]]*) + # NetBSD winbind client is implemented as a wrapper + # around the Linux version. It needs getpwent_r() to + # indicate libc's use of the correct nsdispatch API. + # + if test x"$ac_cv_func_getpwent_r" = x"yes"; then + WINBIND_NSS_EXTRA_OBJS="\ + nsswitch/winbind_nss_netbsd.o \ + nsswitch/winbind_nss_linux.o" + WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT" + WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT" + else + HAVE_WINBIND=no + winbind_no_reason=", getpwent_r is missing on $host_os so winbind is unsupported" + fi + ;; *irix*) # IRIX has differently named shared libraries WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_irix.o" @@ -5613,6 +5631,11 @@ fi # Display test results +if test x"$HAVE_WINBIND" = x"no"; then + WINBIND_NSS="" + WINBIND_WINS_NSS="" +fi + if test x"$HAVE_WINBIND" = x"yes"; then AC_MSG_RESULT(yes) AC_DEFINE(WITH_WINBIND,1,[Whether to build winbind]) |