Bump serial number, for last change.
[gnulib.git] / m4 / lstat.m4
1 #serial 9
2
3 dnl From Jim Meyering.
4 dnl Determine whether lstat has the bug that it succeeds when given the
5 dnl zero-length file name argument.  The lstat from SunOS 4.1.4 and the Hurd
6 dnl (as of 1998-11-01) do this.
7 dnl
8 dnl If it does, then define HAVE_LSTAT_EMPTY_STRING_BUG and arrange to
9 dnl compile the wrapper function.
10 dnl
11
12 AC_DEFUN([jm_FUNC_LSTAT],
13 [
14   AC_FUNC_LSTAT
15   dnl Note: AC_FUNC_LSTAT does AC_LIBOBJ(lstat).
16   if test $ac_cv_func_lstat_empty_string_bug = yes; then
17     gl_PREREQ_LSTAT
18   fi
19 ])
20
21 # Prerequisites of lib/lstat.c.
22 AC_DEFUN([gl_PREREQ_LSTAT],
23 [
24   AC_REQUIRE([AC_HEADER_STAT])
25   AC_CHECK_HEADERS_ONCE(stdlib.h)
26   AC_CHECK_DECLS_ONCE(free)
27 ])