view modules/link @ 15024:ff4e14f9c0be

link: Respect rules for use of AC_LIBOBJ. * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here... * modules/link (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 13:42:11 +0200
parents efab6978105e
children
line wrap: on
line source

Description:
link() function: create a new link for an existing file

Files:
lib/link.c
m4/link.m4

Depends-on:
unistd
stat            [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
strdup-posix    [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
sys_stat        [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]

configure.ac:
gl_FUNC_LINK
if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  AC_LIBOBJ([link])
fi
gl_UNISTD_MODULE_INDICATOR([link])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Martin Lambers, Eric Blake