summaryrefslogtreecommitdiff
path: root/m4/chdir-long.m4
blob: 73c60e935d0bced6a7228e4f3c66f00ef37b8954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#serial 2

# Written by Jim Meyering.
# Use Gnulib's robust chdir function.
# It can handle arbitrarily long directory names, which means
# that when it is given the name of an existing directory, it
# never fails with ENAMETOOLONG.

AC_DEFUN([gl_FUNC_CHDIR_LONG],
[
  AC_LIBSOURCES([chdir-long.c, chdir-long.h])
  AC_LIBOBJ([chdir-long])
  gl_PREREQ_CHDIR_LONG
])

AC_DEFUN([gl_PREREQ_CHDIR_LONG],
[
  AM_STDBOOL_H
  gl_FUNC_MEMPCPY
  gl_FUNC_OPENAT
])