summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-04-29 21:44:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:46 -0500
commite3aed5a809a62a14cb81c502bb0ab8be7bd1caea (patch)
treeca817a5dd2f94255005e77eeb0ec3c59ca0ce46e /source3
parent811d0279c1c194f1ac50b205fd7c3a59f27abd1b (diff)
downloadsamba-e3aed5a809a62a14cb81c502bb0ab8be7bd1caea.tar.gz
samba-e3aed5a809a62a14cb81c502bb0ab8be7bd1caea.tar.bz2
samba-e3aed5a809a62a14cb81c502bb0ab8be7bd1caea.zip
r22583: Support non-Linux GNU systems (such as Debians' GNU with FreeBSD kernel and
Hurd systems). Patch by the Samba packaging team for Debian. (This used to be commit 1aa64eb02c7eee174a4f9934cba1e5bde5fabfbb)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in22
1 files changed, 17 insertions, 5 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 5609270cb0..457e3c107c 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -820,6 +820,15 @@ exit(1);
fi
;;
+# Systems with LFS support.
+#
+ gnu* | k*bsd*-gnu)
+ CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
+ AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
+ AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])
+ AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
+ ;;
+
# Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
#
*linux*)
@@ -1443,7 +1452,7 @@ AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
#
#
case "$host_os" in
- *linux*)
+ linux*-gnu* | gnu* | k*bsd*-gnu)
# glibc <= 2.3.2 has a broken getgrouplist
AC_CACHE_CHECK([for a broken Linux getgrouplist API],
linux_getgrouplist_ok,
@@ -1756,7 +1765,10 @@ AC_MSG_CHECKING([ability to build shared libraries])
# and these are for particular systems
case "$host_os" in
- *linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux])
+ linux*-gnu* | gnu* | k*bsd*-gnu)
+ case "$host_os" in
+ linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
+ esac
BLDSHARED="true"
if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
LDSHFLAGS="-shared -Wl,-Bsymbolic -Wl,--allow-shlib-undefined"
@@ -5533,7 +5545,7 @@ AC_ARG_WITH(sendfile-support,
AC_MSG_RESULT(yes);
case "$host_os" in
- *linux*)
+ linux*-gnu* | gnu* | k*bsd*-gnu)
AC_CACHE_CHECK([for linux sendfile64 support],samba_cv_HAVE_SENDFILE64,[
AC_TRY_LINK([#include <sys/sendfile.h>],
[\
@@ -5838,11 +5850,11 @@ NSSSONAMEVERSIONSUFFIX=""
SMB_KRB5_LOCATOR="bin/smb_krb5_locator.$SHLIBEXT"
case "$host_os" in
- *linux*)
+ linux*-gnu* | gnu* | k*bsd*-gnu)
NSSSONAMEVERSIONSUFFIX=".2"
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
;;
- *freebsd[[5-9]]*)
+ freebsd5*|*freebsd[[6-9]]*)
# FreeBSD winbind client is implemented as a wrapper around
# the Linux version.
NSSSONAMEVERSIONSUFFIX=".1"