Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
authorJim Meyering <jim@meyering.net>
Sat, 2 Jul 2005 09:58:35 +0000 (09:58 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Jul 2005 09:58:35 +0000 (09:58 +0000)
12 files changed:
m4/ChangeLog
m4/chown.m4
m4/cloexec.m4
m4/dup2.m4
m4/fsusage.m4
m4/getcwd-path-max.m4
m4/getcwd.m4
m4/mkstemp.m4
m4/mountlist.m4
m4/pagealign_alloc.m4
m4/save-cwd.m4
m4/unistd-safer.m4

index 28757bfbfcd8b411a3eb41095be67b37801182a7..9dcd968e3eec6336c2a08db7a2682c760f8dfd8a 100644 (file)
@@ -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
index ccdfae9926df8ceb8b50f218baa92d1c188227c2..39f6bb6a3c7b34f883370f516a4bd932aba44312 100644 (file)
@@ -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)])
 ])
index f95320cc69bc3c452f8f527adc0ee509e118c62a..08b68fc1ecc9eff511f4040825b7015f28f9036e 100644 (file)
@@ -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)
 ])
index ba9147da756d043b3396a869daca8ba232e04479..31af8044d6424694fb6f7f3f751dfe78a29da062 100644 (file)
@@ -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)
 ])
index 2406a146a0dc44ade18e4b565150b6e8189f6bdb..dd10f7997f15e482fcf0c7d7794023854e287d05 100644 (file)
@@ -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
 ])
index 74570dfffa6ca9c56fba4e14ca8019e0a79ba969..5a6c43a44f3b5f63b30aa2708c89942951071a9b 100644 (file)
@@ -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
index 3e7e5dcba9c063f7afd9e6ef8475e00247f0dd0c..2e854751169baf7929b7a67fa144617fc30b0616 100644 (file)
@@ -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)
   :
 ])
index 13dec1f1c6cbc6b4cfc84a953e49be1157a0fffd..fb6cfcdf7b5773d50ad16c0905cd6678ba129a66 100644 (file)
@@ -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])
index d5d62a458e47d30695e1b84211048344dba791b3..db06f8f1876c82912db7d0c90498659f3c677ffd 100644 (file)
@@ -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
 ])
index 02ea3608ede33f52f7aeb7258914baf57990cee6..b8cdfa96c107aa28441b0c8dc813624c5a409af5 100644 (file)
@@ -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])
 ])
index fbe3279fa8896bc71177149c213ae46dd7ac9dd1..7acdfeb8538c549b017062a25159664e94f4cdef 100644 (file)
@@ -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)
 ])
index f672c876f9e9dbb87c7ab26e1b57f69cd352fc29..a1dc2b753b61ada88d71ae95b7c5c8c261071c39 100644 (file)
@@ -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.