view m4/readlinkat.m4 @ 17296:761b63594339

readlinkat: don't depend on gl_FUNC_OPENAT * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT. Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4, renameat.m4, symlinkat.m4; but one thing at a time.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 23 Jan 2013 23:57:57 -0800
parents e542fd46ad6f
children 344018b6e5d7
line wrap: on
line source

# serial 3
# See if we need to provide readlinkat replacement.

dnl Copyright (C) 2009-2013 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.

# Written by Eric Blake.

AC_DEFUN([gl_FUNC_READLINKAT],
[
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  AC_CHECK_FUNCS_ONCE([readlinkat])
  if test $ac_cv_func_readlinkat = no; then
    HAVE_READLINKAT=0
  fi
])