git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37da26a
)
s3:build: fix build on AIX - only test for splice on linux
author
Michael Adam
<obnox@samba.org>
Thu, 29 Jan 2009 23:16:41 +0000
(
00:16
+0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 29 Jan 2009 23:17:56 +0000
(
00:17
+0100)
Michael
source3/configure.in
patch
|
blob
|
history
diff --git
a/source3/configure.in
b/source3/configure.in
index f44fb9b8c436367cd733defdbca26921f21b7a7d..87707a2f7f7c9580f508c85d736da3a4ef285fba 100644
(file)
--- a/
source3/configure.in
+++ b/
source3/configure.in
@@
-5875,6
+5875,8
@@
fi
############################################
# See if we have the Linux splice syscall.
############################################
# See if we have the Linux splice syscall.
+case "$host_os" in
+*linux*)
AC_CACHE_CHECK([for Linux splice],
samba_cv_HAVE_LINUX_SPLICE,[
AC_TRY_LINK([
AC_CACHE_CHECK([for Linux splice],
samba_cv_HAVE_LINUX_SPLICE,[
AC_TRY_LINK([
@@
-5885,6
+5887,11
@@
AC_CACHE_CHECK([for Linux splice],
[long ret = splice(0,0,1,0,400,0);],
samba_cv_HAVE_LINUX_SPLICE=yes,
samba_cv_HAVE_LINUX_SPLICE=no)])
[long ret = splice(0,0,1,0,400,0);],
samba_cv_HAVE_LINUX_SPLICE=yes,
samba_cv_HAVE_LINUX_SPLICE=no)])
+;;
+*)
+samba_cv_HAVE_LINUX_SPLICE=no
+;;
+esac
if test x"$samba_cv_HAVE_LINUX_SPLICE" = x"yes"; then
AC_DEFINE(HAVE_LINUX_SPLICE,1,
if test x"$samba_cv_HAVE_LINUX_SPLICE" = x"yes"; then
AC_DEFINE(HAVE_LINUX_SPLICE,1,