+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ linkat: Move AC_LIBOBJ invocations to module description.
+ * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
+ here...
+ * modules/linkat (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
link: Respect rules for use of AC_LIBOBJ.
-# serial 5
+# serial 6
# See if we need to provide linkat replacement.
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
AC_CHECK_HEADERS_ONCE([sys/param.h])
if test $ac_cv_func_linkat = no; then
HAVE_LINKAT=0
- AC_LIBOBJ([linkat])
- AC_LIBOBJ([at-func2])
else
AC_CACHE_CHECK([whether linkat(,AT_SYMLINK_FOLLOW) works],
[gl_cv_func_linkat_follow],
if test "$gl_cv_func_linkat_follow" != yes \
|| test $gl_linkat_slash_bug = 1; then
REPLACE_LINKAT=1
- AC_LIBOBJ([linkat])
AC_DEFINE_UNQUOTED([LINKAT_TRAILING_SLASH_BUG], [$gl_linkat_slash_bug],
[Define to 1 if linkat fails to recognize a trailing slash.])
fi
configure.ac:
gl_FUNC_LINKAT
+if test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1; then
+ AC_LIBOBJ([linkat])
+fi
+if test $HAVE_LINKAT = 0; then
+ AC_LIBOBJ([at-func2])
+fi
gl_UNISTD_MODULE_INDICATOR([linkat])
Makefile.am: