mirror of
https://git.zap.org.au/git/trader.git
synced 2024-10-27 18:20:13 -04:00
f265336d3b
All auto-generated files are created by running ./build-aux/bootstrap with Gnulib as at commit a7967a2cf0998b6c157c7cf8e1d8d9d11dab30b0 (with a date stamp of Thu Mar 15 08:46:29 2012 -0700), Autoconf 2.68, Automake 1.11.3 and Gettext 0.18.1.1.
87 lines
3.3 KiB
Plaintext
87 lines
3.3 KiB
Plaintext
# sys_stat_h.m4 serial 26 -*- Autoconf -*-
|
|
dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
|
|
dnl This file is free software; the Free Software Foundation
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
dnl From Eric Blake.
|
|
dnl Provide a GNU-like <sys/stat.h>.
|
|
|
|
AC_DEFUN([gl_HEADER_SYS_STAT_H],
|
|
[
|
|
AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
|
|
|
|
dnl For the mkdir substitute.
|
|
AC_REQUIRE([AC_C_INLINE])
|
|
|
|
dnl Check for broken stat macros.
|
|
AC_REQUIRE([AC_HEADER_STAT])
|
|
|
|
gl_CHECK_NEXT_HEADERS([sys/stat.h])
|
|
|
|
dnl Ensure the type mode_t gets defined.
|
|
AC_REQUIRE([AC_TYPE_MODE_T])
|
|
|
|
dnl Define types that are supposed to be defined in <sys/types.h> or
|
|
dnl <sys/stat.h>.
|
|
AC_CHECK_TYPE([nlink_t], [],
|
|
[AC_DEFINE([nlink_t], [int],
|
|
[Define to the type of st_nlink in struct stat, or a supertype.])],
|
|
[#include <sys/types.h>
|
|
#include <sys/stat.h>])
|
|
|
|
dnl Check for declarations of anything we want to poison if the
|
|
dnl corresponding gnulib module is not in use.
|
|
gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
|
|
]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
|
|
mknod mknodat stat utimensat])
|
|
]) # gl_HEADER_SYS_STAT_H
|
|
|
|
AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR],
|
|
[
|
|
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
|
|
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
|
|
dnl Define it also as a C macro, for the benefit of the unit tests.
|
|
gl_MODULE_INDICATOR_FOR_TESTS([$1])
|
|
])
|
|
|
|
AC_DEFUN([gl_SYS_STAT_H_DEFAULTS],
|
|
[
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
|
|
GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT])
|
|
GNULIB_FSTAT=0; AC_SUBST([GNULIB_FSTAT])
|
|
GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT])
|
|
GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS])
|
|
GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD])
|
|
GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT])
|
|
GNULIB_MKDIRAT=0; AC_SUBST([GNULIB_MKDIRAT])
|
|
GNULIB_MKFIFO=0; AC_SUBST([GNULIB_MKFIFO])
|
|
GNULIB_MKFIFOAT=0; AC_SUBST([GNULIB_MKFIFOAT])
|
|
GNULIB_MKNOD=0; AC_SUBST([GNULIB_MKNOD])
|
|
GNULIB_MKNODAT=0; AC_SUBST([GNULIB_MKNODAT])
|
|
GNULIB_STAT=0; AC_SUBST([GNULIB_STAT])
|
|
GNULIB_UTIMENSAT=0; AC_SUBST([GNULIB_UTIMENSAT])
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT])
|
|
HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT])
|
|
HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS])
|
|
HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD])
|
|
HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT])
|
|
HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT])
|
|
HAVE_MKFIFO=1; AC_SUBST([HAVE_MKFIFO])
|
|
HAVE_MKFIFOAT=1; AC_SUBST([HAVE_MKFIFOAT])
|
|
HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD])
|
|
HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT])
|
|
HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT])
|
|
REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT])
|
|
REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT])
|
|
REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS])
|
|
REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT])
|
|
REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR])
|
|
REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO])
|
|
REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD])
|
|
REPLACE_STAT=0; AC_SUBST([REPLACE_STAT])
|
|
REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT])
|
|
])
|