* modules/fts (Files): Remove m4/inttypes-pri.m4.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 23:59:20 +0000 (23:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 May 2005 23:59:20 +0000 (23:59 +0000)
* modules/fts-lgpl (Depends-on): Remove gettext.
* lib/fts.c: Don't worry about debugging on pre-C99-comopatible hosts;
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.

ChangeLog
lib/ChangeLog
lib/fts.c
m4/ChangeLog
m4/fts.m4
modules/fts
modules/fts-lgpl

index b668e7d..d889923 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * modules/fts (Files): Remove m4/inttypes-pri.m4.
+       * modules/fts-lgpl (Depends-on): Remove gettext.
+
 2005-05-25  Derek Price  <derek@ximbiot.com>
 
        * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
index 095cd39..3c99eb4 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fts.c: Don't worry about debugging on pre-C99-comopatible hosts;
+       the configuration hassle isn't worth it.
+       Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
+       (LONGEST_MODIFIER, PRIuMAX): Remove.
+
 2005-05-27  Bruno Haible  <bruno@clisp.org>
 
        * getlogin_r.h: Remove second include of <stddef.h>.
index 418e75b..a9abe0f 100644 (file)
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -70,23 +70,6 @@ static char sccsid[] = "@(#)fts.c    8.6 (Berkeley) 8/14/94";
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#if HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#if ULONG_MAX < ULLONG_MAX
-# define LONGEST_MODIFIER "ll"
-#else
-# define LONGEST_MODIFIER "l"
-#endif
-#if PRI_MACROS_BROKEN
-# undef PRIuMAX
-#endif
-#ifndef PRIuMAX
-# define PRIuMAX LONGEST_MODIFIER "u"
-#endif
 
 #if defined _LIBC
 # include <dirent.h>
@@ -201,8 +184,10 @@ static int fd_safer (int fd) { return fd; }
 #define BREAD          3               /* fts_read */
 
 #if FTS_DEBUG
-bool fts_debug = false;
+# include <inttypes.h>
+# include <stdint.h>
 # include <stdio.h>
+bool fts_debug = false;
 # define Dprintf(x) do { if (fts_debug) printf x; } while (0)
 #else
 # define Dprintf(x)
index 53849a9..c7d805e 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
+       and don't require gt_INTTYPES_PRI.
+
 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
index 94f5e84..1c9703a 100644 (file)
--- a/m4/fts.m4
+++ b/m4/fts.m4
@@ -1,4 +1,4 @@
-#serial 4
+#serial 5
 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,
@@ -30,12 +30,8 @@ AC_DEFUN([gl_FUNC_FTS_CORE],
 
   # Checks for header files.
   AC_REQUIRE([AC_HEADER_DIRENT])
-  AC_CHECK_HEADERS_ONCE([inttypes.h stdint.h])
   AC_CHECK_HEADERS_ONCE([sys/param.h])
 
-  # Checks for typedefs, structures, and compiler characteristics.
-  AC_REQUIRE([gt_INTTYPES_PRI])
-
   # Checks for library functions.
   AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 ])
index 75f6fe2..434ce1f 100644 (file)
@@ -6,7 +6,6 @@ lib/fts_.h
 lib/fts.c
 lib/fts-cycle.c
 m4/fts.m4
-m4/inttypes-pri.m4
 
 Depends-on:
 cycle-check
index ed68cd3..215359c 100644 (file)
@@ -9,7 +9,6 @@ m4/fts.m4
 Depends-on:
 dirfd
 stdbool
-gettext
 
 configure.ac:
 gl_FUNC_FTS_LGPL