Mercurial > hg > octave-kai > gnulib-hg
view m4/sys_stat_h.m4 @ 7225:3307ae6ea2e5
* lib/fcntl_.h: New file.
* lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
the fcntl module.
* lib/dirchownmod.c: Likewise.
* lib/fts.c: Likewise.
* m4/fcntl_h.m4: New file.
* modules/fcntl: New file.
* modules/chdir-safer (Depends-on): Add fcntl.
* modules/fts: Likewise.
* modules/mkdir-p: Likewise.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 28 Aug 2006 22:59:17 +0000 |
parents | 9c46029b6970 |
children | 483757159eb6 |
line wrap: on
line source
# sys_stat_h.m4 serial 3 -*- Autoconf -*- dnl Copyright (C) 2006 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 Test whether <sys/stat.h> contains lstat and mkdir or must be substituted. AC_DEFUN([gl_HEADER_SYS_STAT_H], [ dnl Check for lstat. Systems that lack it (mingw) also lack symlinks, so dnl stat is a good replacement. AC_CHECK_FUNCS_ONCE([lstat]) dnl Check for mkdir. Mingw has _mkdir(name) in the nonstandard <io.h> dnl instead. AC_CHECK_DECLS([mkdir], [], [], [#include <sys/stat.h>]) SYS_STAT_H= if test $ac_cv_func_lstat:$ac_cv_have_decl_mkdir != yes:yes ; then gl_ABSOLUTE_HEADER([sys/stat.h]) ABSOLUTE_SYS_STAT_H=\"$gl_cv_absolute_sys_stat_h\" AC_CHECK_HEADERS([io.h]) AC_REQUIRE([AC_C_INLINE]) SYS_STAT_H='sys/stat.h' else ABSOLUTE_SYS_STAT_H=\"no/such/file/sys/stat.h\" fi AC_SUBST([ABSOLUTE_SYS_STAT_H]) AC_SUBST([SYS_STAT_H]) ]) # gl_HEADER_SYS_STAT_H