From fbd6608072f09b9499b2829f418af82c67e1ae97 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 7 Feb 2005 16:45:27 +0000 Subject: (gl_FUNC_FTS): New file and macro. --- m4/fts.m4 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 m4/fts.m4 (limited to 'm4') diff --git a/m4/fts.m4 b/m4/fts.m4 new file mode 100644 index 000000000..65a872723 --- /dev/null +++ b/m4/fts.m4 @@ -0,0 +1,38 @@ +# closeout.m4 serial 1 +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, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_FTS], +[ + AC_LIBSOURCES([fts.c, fts_.h]) + + dnl Use this version of fts unconditionally, since the GNU libc and + dnl NetBSD versions have bugs and/or unnecessary limitations. + AC_LIBOBJ([fts]) + + dnl Prerequisites of lib/fts.c. + + # Checks for header files. + AC_HEADER_DIRENT + AC_HEADER_STDC + AC_CHECK_HEADERS([fcntl.h inttypes.h stddef.h stdint.h + stdlib.h string.h sys/param.h unistd.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AM_STDBOOL_H + AC_C_CONST + AC_TYPE_SIZE_T + AC_CHECK_TYPES([ptrdiff_t]) + gt_INTTYPES_PRI + + # Checks for library functions. + AC_FUNC_CLOSEDIR_VOID + AC_FUNC_LSTAT + AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK + AC_FUNC_MALLOC + AC_FUNC_REALLOC + AC_FUNC_STAT + AC_CHECK_FUNCS([fchdir memmove memset strrchr]) +]) -- cgit v1.2.3-70-g09d2