3712c48039
- Portability changes for 4.x. Submitted by: maintainer
50 lines
2 KiB
Text
50 lines
2 KiB
Text
--- configure.in.orig Thu Apr 14 08:14:26 2005
|
|
+++ configure.in Wed Jul 20 02:42:57 2005
|
|
@@ -727,7 +727,9 @@
|
|
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/cdefs.h glob.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/cdefs.h glob.h)
|
|
+
|
|
# These faile to compile on Solaris so just check for their presence
|
|
AC_CHECK_HEADERS(security/pam_modules.h net/if.h netinet/ip.h, [], [], -)
|
|
|
|
@@ -1162,6 +1164,18 @@
|
|
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)
|
|
+# Check if we have extattr
|
|
+case "$host_os" in
|
|
+ *freebsd4* | *DragonFly* )
|
|
+ AC_DEFINE(BROKEN_EXTATTR, 1, [Does extattr API work])
|
|
+ ;;
|
|
+ *)
|
|
+ AC_CHECK_FUNCS(extattr_delete_fd extattr_delete_file extattr_delete_link)
|
|
+ AC_CHECK_FUNCS(extattr_get_fd extattr_get_file extattr_get_link)
|
|
+ AC_CHECK_FUNCS(extattr_list_fd extattr_list_file extattr_list_link)
|
|
+ AC_CHECK_FUNCS(extattr_set_fd extattr_set_file extattr_set_link)
|
|
+ ;;
|
|
+esac
|
|
|
|
# Assume non-shared by default and override below
|
|
BLDSHARED="false"
|
|
@@ -3974,7 +3988,7 @@
|
|
AC_DEFINE(HAVE_TRU64_ACLS,1,[Whether Tru64 ACLs are available])
|
|
ACL_LIBS="$ACL_LIBS -lpacl"
|
|
;;
|
|
- *freebsd5*|*freebsd6*)
|
|
+ *freebsd[[5-9]]*)
|
|
AC_MSG_RESULT(Using FreeBSD posix ACLs)
|
|
AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether FreeBSD POSIX ACLs are available])
|
|
AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np() is available])
|
|
@@ -4322,7 +4336,7 @@
|
|
*linux*)
|
|
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_linux.o"
|
|
;;
|
|
- *freebsd5*|*freebsd6*)
|
|
+ *freebsd[[5-9]]*)
|
|
# FreeBSD winbind client is implemented as a wrapper around
|
|
# the Linux version.
|
|
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \
|