summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-07-02 09:58:35 +0000
committerJim Meyering <jim@meyering.net>2005-07-02 09:58:35 +0000
commite74d04a8682cb37afd40f7f7d55580e3e97b48ce (patch)
tree8baf2d2e3611513bd7543c0129e7534b6babd750 /m4
parentd1eb42bdbbaf00d38b2a479e9aa40207b79bd090 (diff)
downloadgnulib-e74d04a8682cb37afd40f7f7d55580e3e97b48ce.tar.gz
Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog7
-rw-r--r--m4/chown.m44
-rw-r--r--m4/cloexec.m44
-rw-r--r--m4/dup2.m46
-rw-r--r--m4/fsusage.m43
-rw-r--r--m4/getcwd-path-max.m47
-rw-r--r--m4/getcwd.m41
-rw-r--r--m4/mkstemp.m44
-rw-r--r--m4/mountlist.m44
-rw-r--r--m4/pagealign_alloc.m44
-rw-r--r--m4/save-cwd.m44
-rw-r--r--m4/unistd-safer.m44
12 files changed, 27 insertions, 25 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 28757bfbfc..9dcd968e3e 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-02 Jim Meyering <jim@meyering.net>
+
+ * chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
+ * getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
+ * pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
+ Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
+
2005-06-28 Simon Josefsson <jas@extundo.com>
* check-version.m4: New file, suggested by Jim Meyering
diff --git a/m4/chown.m4 b/m4/chown.m4
index ccdfae9926..39f6bb6a3c 100644
--- a/m4/chown.m4
+++ b/m4/chown.m4
@@ -1,4 +1,4 @@
-#serial 13
+#serial 14
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
@@ -81,6 +81,6 @@ AC_DEFUN([gl_FUNC_CHOWN_FOLLOWS_SYMLINK],
# Prerequisites of lib/chown.c.
AC_DEFUN([gl_PREREQ_CHOWN],
[
- AC_CHECK_HEADERS_ONCE(unistd.h fcntl.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_FUNC([fchown], , [AC_LIBOBJ(fchown-stub)])
])
diff --git a/m4/cloexec.m4 b/m4/cloexec.m4
index f95320cc69..08b68fc1ec 100644
--- a/m4/cloexec.m4
+++ b/m4/cloexec.m4
@@ -1,4 +1,4 @@
-# cloexec.m4 serial 3
+#serial 4
dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -10,5 +10,5 @@ AC_DEFUN([gl_CLOEXEC],
AC_LIBOBJ([cloexec])
dnl Prerequisites of lib/cloexec.c.
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
diff --git a/m4/dup2.m4 b/m4/dup2.m4
index ba9147da75..31af8044d6 100644
--- a/m4/dup2.m4
+++ b/m4/dup2.m4
@@ -1,5 +1,5 @@
-# dup2.m4 serial 2
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+#serial 3
+dnl Copyright (C) 2002, 2005 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.
@@ -14,5 +14,5 @@ AC_DEFUN([gl_FUNC_DUP2],
# Prerequisites of lib/dup2.c.
AC_DEFUN([gl_PREREQ_DUP2], [
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
diff --git a/m4/fsusage.m4 b/m4/fsusage.m4
index 2406a146a0..dd10f7997f 100644
--- a/m4/fsusage.m4
+++ b/m4/fsusage.m4
@@ -1,4 +1,4 @@
-# fsusage.m4 serial 15
+#serial 16
# Obtaining file system usage information.
# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005 Free Software
@@ -255,7 +255,6 @@ choke -- this is a workaround for a Sun-specific problem
AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA],
[
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
- AC_CHECK_HEADERS_ONCE(fcntl.h)
AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h)
gl_STATFS_TRUNCATES
])
diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4
index 74570dfffa..5a6c43a44f 100644
--- a/m4/getcwd-path-max.m4
+++ b/m4/getcwd-path-max.m4
@@ -1,4 +1,4 @@
-#serial 9
+#serial 10
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
@@ -16,7 +16,6 @@
AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
[
AC_CHECK_DECLS_ONCE(getcwd)
- AC_CHECK_HEADERS_ONCE(fcntl.h)
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_CACHE_CHECK([whether getcwd handles long file names properly],
gl_cv_func_getcwd_path_max,
@@ -32,9 +31,7 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
-#if HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
+#include <fcntl.h>
#ifndef AT_FDCWD
# define AT_FDCWD 0
diff --git a/m4/getcwd.m4 b/m4/getcwd.m4
index 3e7e5dcba9..2e85475116 100644
--- a/m4/getcwd.m4
+++ b/m4/getcwd.m4
@@ -63,6 +63,5 @@ AC_DEFUN([gl_PREREQ_GETCWD],
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([AC_HEADER_DIRENT])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO])
- AC_CHECK_HEADERS_ONCE(fcntl.h)
:
])
diff --git a/m4/mkstemp.m4 b/m4/mkstemp.m4
index 13dec1f1c6..fb6cfcdf7b 100644
--- a/m4/mkstemp.m4
+++ b/m4/mkstemp.m4
@@ -1,4 +1,4 @@
-#serial 10
+#serial 11
# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -65,7 +65,7 @@ AC_DEFUN([gl_PREREQ_MKSTEMP],
# Prerequisites of lib/tempname.c.
AC_DEFUN([gl_PREREQ_TEMPNAME],
[
- AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h stdint.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(sys/time.h stdint.h unistd.h)
AC_CHECK_FUNCS(__secure_getenv gettimeofday)
AC_CHECK_DECLS_ONCE(getenv)
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
diff --git a/m4/mountlist.m4 b/m4/mountlist.m4
index d5d62a458e..db06f8f187 100644
--- a/m4/mountlist.m4
+++ b/m4/mountlist.m4
@@ -1,4 +1,4 @@
-# mountlist.m4 serial 6
+#serial 7
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ AC_DEFUN([gl_MOUNTLIST],
AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
[
dnl Note gl_LIST_MOUNTED_FILE_SYSTEMS checks for mntent.h, not sys/mntent.h.
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_HEADERS(sys/mntent.h)
gl_FSTYPENAME
])
diff --git a/m4/pagealign_alloc.m4 b/m4/pagealign_alloc.m4
index 02ea3608ed..b8cdfa96c1 100644
--- a/m4/pagealign_alloc.m4
+++ b/m4/pagealign_alloc.m4
@@ -1,4 +1,4 @@
-# pagealign_alloc.m4 serial 1
+#serial 2
dnl Copyright (C) 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -20,5 +20,5 @@ AC_DEFUN([gl_PREREQ_PAGEALIGN_ALLOC],
AC_REQUIRE([gl_FUNC_MMAP_ANON])
AC_REQUIRE([gl_GETPAGESIZE])
AC_CHECK_FUNCS_ONCE([posix_memalign])
- AC_CHECK_HEADERS_ONCE([fcntl.h unistd.h])
+ AC_CHECK_HEADERS_ONCE([unistd.h])
])
diff --git a/m4/save-cwd.m4 b/m4/save-cwd.m4
index fbe3279fa8..7acdfeb853 100644
--- a/m4/save-cwd.m4
+++ b/m4/save-cwd.m4
@@ -1,4 +1,4 @@
-#serial 5
+#serial 6
dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -10,5 +10,5 @@ AC_DEFUN([gl_SAVE_CWD],
AC_LIBOBJ([save-cwd])
dnl Prerequisites for lib/save-cwd.c.
AC_CHECK_FUNCS_ONCE(fchdir)
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
diff --git a/m4/unistd-safer.m4 b/m4/unistd-safer.m4
index f672c876f9..a1dc2b753b 100644
--- a/m4/unistd-safer.m4
+++ b/m4/unistd-safer.m4
@@ -1,4 +1,4 @@
-# unistd-safer.m4 serial 3
+#serial 4
dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,7 @@ AC_DEFUN([gl_UNISTD_SAFER],
# Prerequisites of lib/dup-safer.c.
AC_DEFUN([gl_PREREQ_DUP_SAFER], [
- AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(unistd.h)
])
# Prerequisites of lib/fd-safer.c.