* m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
* lib/fts_.h (_LGPL_PACKAGE): Remove macro.
Use !GNULIB_FTS instead of _LGPL_PACKAGE.
* lib/fts.c: Likewise.
* modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
+2007-01-08 Bruno Haible <bruno@clisp.org>
+
+ * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
+ * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
+ Use !GNULIB_FTS instead of _LGPL_PACKAGE.
+ * lib/fts.c: Likewise.
+ * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
+
2006-12-25 Bruno Haible <bruno@clisp.org>
* modules/utf8-ucs4-safe: New file.
static int fts_safe_changedir (FTS *, FTSENT *, int, const char *)
internal_function;
-#if _LGPL_PACKAGE
+#if GNULIB_FTS
+# include "fts-cycle.c"
+#else
static bool enter_dir (FTS *fts, FTSENT *ent) { return true; }
static void leave_dir (FTS *fts, FTSENT *ent) {}
static bool setup_dir (FTS *fts) { return true; }
static void free_dir (FTS *fts) {}
-#else
-# include "fts-cycle.c"
#endif
#ifndef MAX
return (p->fts_level == FTS_ROOTLEVEL ? FTS_D : FTS_DOT);
}
-#if _LGPL_PACKAGE
+#if !GNULIB_FTS
{
/*
* Cycle detection is done by brute force when the directory
/* Traverse a file hierarchy.
- Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
# ifdef _LIBC
# include <features.h>
-# define _LGPL_PACKAGE 1
# else
# undef __THROW
# define __THROW
# define FTS_STOP 0x2000 /* (private) unrecoverable error */
int fts_options; /* fts_open options, global flags */
-# if !_LGPL_PACKAGE
+# if GNULIB_FTS
union {
/* This data structure is used if FTS_TIGHT_CYCLE_CHECK is
specified. It records the directories between a starting
-#serial 11
-dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+#serial 12
+dnl Copyright (C) 2005-2007 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.
AC_DEFUN([gl_FUNC_FTS_LGPL],
[
AC_REQUIRE([gl_FUNC_FTS_CORE])
- AC_DEFINE([_LGPL_PACKAGE], 1,
- [Define to 1 if compiling for a package to be distributed under the
- GNU Lesser Public License.])
])
AC_DEFUN([gl_FUNC_FTS_CORE],
configure.ac:
gl_FUNC_FTS
+gl_MODULE_INDICATOR([fts])
Makefile.am: