Use Gnulib's `getaddrinfo' module.
[bpt/guile.git] / m4 / lstat.m4
CommitLineData
8912421c
LC
1# serial 20
2
61cd9dc9 3# Copyright (C) 1997-2001, 2003-2010 Free Software Foundation, Inc.
8912421c
LC
4#
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9dnl From Jim Meyering.
10
11AC_DEFUN([gl_FUNC_LSTAT],
12[
13 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
14 dnl If lstat does not exist, the replacement <sys/stat.h> does
15 dnl "#define lstat stat", and lstat.c is a no-op.
16 AC_CHECK_FUNCS_ONCE([lstat])
17 if test $ac_cv_func_lstat = yes; then
18 AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
19 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20 dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]).
21 REPLACE_LSTAT=1
22 fi
23 # Prerequisites of lib/lstat.c.
24 AC_REQUIRE([AC_C_INLINE])
25 else
26 HAVE_LSTAT=0
27 fi
28])