~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to m4/sys_stat_h.m4

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# sys_stat_h.m4 serial 24   -*- Autoconf -*-
2
 
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 
1
# sys_stat_h.m4 serial 28   -*- Autoconf -*-
 
2
dnl Copyright (C) 2006-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.
11
11
[
12
12
  AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
13
13
 
14
 
  dnl For the mkdir substitute.
15
 
  AC_REQUIRE([AC_C_INLINE])
16
 
 
17
14
  dnl Check for broken stat macros.
18
15
  AC_REQUIRE([AC_HEADER_STAT])
19
16
 
20
17
  gl_CHECK_NEXT_HEADERS([sys/stat.h])
21
18
 
 
19
  dnl Ensure the type mode_t gets defined.
 
20
  AC_REQUIRE([AC_TYPE_MODE_T])
 
21
 
 
22
  dnl Whether to override 'struct stat'.
 
23
  m4_ifdef([gl_LARGEFILE], [
 
24
    AC_REQUIRE([gl_LARGEFILE])
 
25
  ], [
 
26
    WINDOWS_64_BIT_ST_SIZE=0
 
27
  ])
 
28
  AC_SUBST([WINDOWS_64_BIT_ST_SIZE])
 
29
  if test $WINDOWS_64_BIT_ST_SIZE = 1; then
 
30
    AC_DEFINE([_GL_WINDOWS_64_BIT_ST_SIZE], [1],
 
31
      [Define to 1 if Gnulib overrides 'struct stat' on Windows so that
 
32
       struct stat.st_size becomes 64-bit.])
 
33
  fi
 
34
 
22
35
  dnl Define types that are supposed to be defined in <sys/types.h> or
23
36
  dnl <sys/stat.h>.
24
37
  AC_CHECK_TYPE([nlink_t], [],
30
43
  dnl Check for declarations of anything we want to poison if the
31
44
  dnl corresponding gnulib module is not in use.
32
45
  gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
33
 
    ]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
 
46
    ]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
34
47
    mknod mknodat stat utimensat])
35
48
]) # gl_HEADER_SYS_STAT_H
36
49
 
47
60
[
48
61
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
49
62
  GNULIB_FCHMODAT=0;    AC_SUBST([GNULIB_FCHMODAT])
 
63
  GNULIB_FSTAT=0;       AC_SUBST([GNULIB_FSTAT])
50
64
  GNULIB_FSTATAT=0;     AC_SUBST([GNULIB_FSTATAT])
51
65
  GNULIB_FUTIMENS=0;    AC_SUBST([GNULIB_FUTIMENS])
52
66
  GNULIB_LCHMOD=0;      AC_SUBST([GNULIB_LCHMOD])