summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-01-11 10:21:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:04 -0500
commit5bad6e3a4abe332fb33fa0bb76d48dc5431c878d (patch)
tree25ad136165a8902a58c7b64d21de21c37baaac4d /source3
parent0b192df2ea7c5d5a31b9a7c916fda7e3e39b894d (diff)
downloadsamba-5bad6e3a4abe332fb33fa0bb76d48dc5431c878d.tar.gz
samba-5bad6e3a4abe332fb33fa0bb76d48dc5431c878d.tar.bz2
samba-5bad6e3a4abe332fb33fa0bb76d48dc5431c878d.zip
r12837: - configure check for Tru64 EA functions (not yet implemented)
- find Tru64 AIO lib in configure Thanks to Björn Jacke <bj@sernet.de> Volker (This used to be commit 044dc331739d4a1678bbf6347df9725f709f5be3)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in34
1 files changed, 23 insertions, 11 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 40cb420825..89891cf412 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -795,7 +795,7 @@ AC_CHECK_HEADERS(shadow.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h)
AC_CHECK_HEADERS(stropts.h poll.h)
AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
-AC_CHECK_HEADERS(sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h)
+AC_CHECK_HEADERS(sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/proplist.h)
AC_CHECK_HEADERS(sys/cdefs.h glob.h)
AC_CHECK_HEADERS(netinet/ip.h,,,[[
@@ -1345,12 +1345,23 @@ AC_LIBTESTFUNC(sec, getprpwnam)
############################################
# Check if we have libattr
-AC_SEARCH_LIBS(getxattr, [attr])
-AC_CHECK_FUNCS(getxattr lgetxattr fgetxattr listxattr llistxattr)
-AC_CHECK_FUNCS(flistxattr removexattr lremovexattr fremovexattr)
-AC_CHECK_FUNCS(setxattr lsetxattr fsetxattr)
-AC_CHECK_FUNCS(attr_get attr_list attr_set attr_remove)
-AC_CHECK_FUNCS(attr_getf attr_listf attr_setf attr_removef)
+case "$host_os" in
+ *osf*)
+ AC_SEARCH_LIBS(getproplist, [proplist])
+ AC_CHECK_FUNCS(getproplist fgetproplist setproplist fsetproplist)
+ AC_CHECK_FUNCS(delproplist fdelproplist add_proplist_entry get_proplist_entry)
+ AC_CHECK_FUNCS(sizeof_proplist_entry)
+ ;;
+ *)
+ AC_SEARCH_LIBS(getxattr, [attr])
+ AC_CHECK_FUNCS(getxattr lgetxattr fgetxattr listxattr llistxattr)
+ AC_CHECK_FUNCS(flistxattr removexattr lremovexattr fremovexattr)
+ AC_CHECK_FUNCS(setxattr lsetxattr fsetxattr)
+ AC_CHECK_FUNCS(attr_get attr_list attr_set attr_remove)
+ AC_CHECK_FUNCS(attr_getf attr_listf attr_setf attr_removef)
+ ;;
+esac
+
# Check if we have extattr
case "$host_os" in
*freebsd4* | *dragonfly* )
@@ -4478,9 +4489,10 @@ AC_ARG_WITH(aio-support,
case "$host_os" in
*)
AC_CHECK_LIB(rt,aio_read,[AIO_LIBS="$ACL_LIBS -lrt"])
+ AC_CHECK_LIB(aio,aio_read,[AIO_LIBS="$ACL_LIBS -laio"])
AC_CACHE_CHECK([for asynchronous io support],samba_cv_HAVE_AIO,[
aio_LIBS=$LIBS
- LIBS="$LIBS -lrt"
+ LIBS=$AIO_LIBS
AC_TRY_LINK([#include <sys/types.h>
#include <aio.h>],
[ struct aiocb a; return aio_read(&a);],
@@ -4488,7 +4500,7 @@ samba_cv_HAVE_AIO=yes,samba_cv_HAVE_AIO=no)
LIBS=$aio_LIBS])
AC_CACHE_CHECK([for 64-bit asynchronous io support],samba_cv_HAVE_AIO64,[
aio_LIBS=$LIBS
- LIBS="$LIBS -lrt"
+ LIBS=$AIO_LIBS
AC_TRY_LINK([#include <sys/types.h>
#include <aio.h>],
[ struct aiocb64 a; return aio_read64(&a);],
@@ -4497,10 +4509,10 @@ samba_cv_HAVE_AIO64=yes,samba_cv_HAVE_AIO64=no)
if test x"$samba_cv_HAVE_AIO64" = x"yes"; then
AC_DEFINE(HAVE_AIOCB64,1,[Whether 64 bit aio is available])
AC_DEFINE(WITH_AIO, 1, [Using asynchronous io])
- LIBS="$LIBS -lrt"
+ LIBS=$AIO_LIBS
elif test x"$samba_cv_HAVE_AIO" = x"yes"; then
AC_DEFINE(WITH_AIO, 1, [Using asynchronous io])
- LIBS="$LIBS -lrt"
+ LIBS=$AIO_LIBS
fi
if test x"$samba_cv_HAVE_AIO" = x"yes"; then