~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/acl.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# acl.m4 - check for access control list (ACL) primitives
2
 
# serial 13
 
2
# serial 15
3
3
 
4
 
# Copyright (C) 2002, 2004-2011 Free Software Foundation, Inc.
 
4
# Copyright (C) 2002, 2004-2012 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
16
16
 
17
17
  LIB_ACL=
18
18
  use_acl=0
19
 
  AC_REQUIRE([AC_C_INLINE])
20
19
  if test "x$enable_acl" != "xno"; then
21
20
    dnl On all platforms, the ACL related API is declared in <sys/acl.h>.
22
21
    AC_CHECK_HEADERS([sys/acl.h])
23
22
    if test $ac_cv_header_sys_acl_h = yes; then
24
23
      ac_save_LIBS=$LIBS
25
24
 
26
 
      dnl Test for POSIX-draft-like API (Linux, FreeBSD, MacOS X, IRIX, Tru64).
 
25
      dnl Test for POSIX-draft-like API (Linux, FreeBSD, Mac OS X, IRIX, Tru64).
27
26
      dnl -lacl is needed on Linux, -lpacl is needed on OSF/1.
28
27
      if test $use_acl = 0; then
29
28
        AC_SEARCH_LIBS([acl_get_file], [acl pacl],
33
32
           AC_CHECK_FUNCS(
34
33
             [acl_get_file acl_get_fd acl_set_file acl_set_fd \
35
34
              acl_free acl_from_mode acl_from_text \
36
 
              acl_delete_def_file acl_extended_file acl_extended_file_nofollow \
 
35
              acl_delete_def_file acl_extended_file \
37
36
              acl_delete_fd_np acl_delete_file_np \
38
37
              acl_copy_ext_native acl_create_entry_np \
39
38
              acl_to_short_text acl_free_text])
55
54
               AC_DEFINE([HAVE_ACL_FIRST_ENTRY], [1],
56
55
                 [Define to 1 if the constant ACL_FIRST_ENTRY exists.])
57
56
             fi
58
 
             dnl On MacOS X, other types of ACLs are supported.
 
57
             dnl On Mac OS X, other types of ACLs are supported.
59
58
             AC_CACHE_CHECK([for ACL_TYPE_EXTENDED],
60
59
               [gl_cv_acl_ACL_TYPE_EXTENDED],
61
60
               [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
140
139
 
141
140
# gl_ACL_GET_FILE(IF-WORKS, IF-NOT)
142
141
# -------------------------------------
143
 
# If `acl_get_file' works (does not have a particular bug),
 
142
# If 'acl_get_file' works (does not have a particular bug),
144
143
# run IF-WORKS, otherwise, IF-NOT.
145
144
# This tests for a Darwin 8.7.0 bug, whereby acl_get_file returns NULL,
146
145
# but sets errno = ENOENT for an existing file or directory.