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

« back to all changes in this revision

Viewing changes to m4/euidaccess.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
 
# euidaccess.m4 serial 13
2
 
dnl Copyright (C) 2002-2011 Free Software Foundation, Inc.
 
1
# euidaccess.m4 serial 15
 
2
dnl Copyright (C) 2002-2012 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
7
7
AC_DEFUN([gl_FUNC_NONREENTRANT_EUIDACCESS],
8
8
[
9
9
  AC_REQUIRE([gl_FUNC_EUIDACCESS])
 
10
  AC_CHECK_DECLS([setregid])
10
11
  AC_DEFINE([PREFER_NONREENTRANT_EUIDACCESS], [1],
11
12
    [Define this if you prefer euidaccess to return the correct result
12
13
     even if this would make it nonreentrant.  Define this only if your
33
34
  dnl Prefer POSIX faccessat over non-standard euidaccess.
34
35
  AC_CHECK_FUNCS_ONCE([faccessat])
35
36
  dnl Try various other non-standard fallbacks.
36
 
  AC_CHECK_HEADERS_ONCE([libgen.h])
37
 
  AC_CHECK_DECLS_ONCE([setregid])
38
 
  AC_REQUIRE([AC_FUNC_GETGROUPS])
 
37
  AC_CHECK_HEADERS([libgen.h])
 
38
  AC_FUNC_GETGROUPS
39
39
 
40
 
  # Solaris 9 needs -lgen to get the eaccess function.
 
40
  # Solaris 9 and 10 need -lgen to get the eaccess function.
41
41
  # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
42
42
  # programs in the package would end up linked with that potentially-shared
43
43
  # library, inducing unnecessary run-time overhead.