* lib/getloadavg.c: Use __VMS, not VMS.
[gnulib.git] / m4 / fts.m4
1 #serial 7
2 dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_FTS],
8 [
9   AC_REQUIRE([gl_FUNC_FTS_CORE])
10   AC_LIBSOURCES([fts-cycle.c])
11 ])
12
13 AC_DEFUN([gl_FUNC_FTS_LGPL],
14 [
15   AC_REQUIRE([gl_FUNC_FTS_CORE])
16   AC_DEFINE([_LGPL_PACKAGE], 1,
17     [Define to 1 if compiling for a package to be distributed under the
18      GNU Lesser Public License.])
19 ])
20
21 AC_DEFUN([gl_FUNC_FTS_CORE],
22 [
23   AC_LIBSOURCES([fts.c, fts_.h])
24
25   dnl Use this version of fts unconditionally, since the GNU libc and
26   dnl NetBSD versions have bugs and/or unnecessary limitations.
27   AC_LIBOBJ([fts])
28
29   dnl Prerequisites of lib/fts.c.
30
31   # Checks for header files.
32   AC_CHECK_HEADERS_ONCE([dirent.h sys/param.h])dnl
33 ])