1diff -uNr samba-3.0.11.orig/source/configure.in samba-3.0.11/source/configure.in 2--- samba-3.0.11.orig/source/configure.in 2005-03-23 02:39:11.000000000 -0800 3+++ samba-3.0.11/source/configure.in 2005-03-23 02:43:01.000000000 -0800 4@@ -573,6 +573,15 @@ 5 fi 6 ;; 7 8+# Systems with LFS support. 9+# 10+ gnu* | k*bsd*-gnu) 11+ CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" 12+ AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) 13+ AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) 14+ AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions]) 15+ ;; 16+ 17 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support. 18 # 19 *linux*) 20@@ -1040,7 +1049,7 @@ 21 # 22 # 23 case "$host_os" in 24- *linux*) 25+ linux*-gnu* | gnu* | k*bsd*-gnu) 26 # glibc <= 2.3.2 has a broken getgrouplist 27 AC_TRY_RUN([ 28 #include <unistd.h> 29@@ -1172,7 +1181,10 @@ 30 31 # and these are for particular systems 32 case "$host_os" in 33- *linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux]) 34+ linux*-gnu* | gnu* | k*bsd*-gnu) 35+ case "$host_os" in linux*) 36+ AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;; 37+ esac 38 BLDSHARED="true" 39 if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then 40 LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined" 41@@ -4044,7 +4056,7 @@ 42 AC_MSG_RESULT(yes); 43 44 case "$host_os" in 45- *linux*) 46+ linux*-gnu* | gnu* | k*bsd*-gnu) 47 AC_CACHE_CHECK([for linux sendfile64 support],samba_cv_HAVE_SENDFILE64,[ 48 AC_TRY_LINK([#include <sys/sendfile.h>], 49 [\ 50@@ -4722,10 +4722,10 @@ 51 WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS 52 53 case "$host_os" in 54- *linux*) 55+ linux*-gnu* | gnu* | k*bsd*-gnu) 56 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o" 57 ;; 58- *freebsd[[5-9]]*) 59+ freebsd5*|*freebsd[[6-9]]*) 60 # FreeBSD winbind client is implemented as a wrapper around 61 # the Linux version. 62 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \ 63