From fdfc1fcada2d062b008aeaa4ae2e2facb69efe19 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 17:14:51 +0200 Subject: [PATCH] unlink: Respect rules for use of AC_LIBOBJ. * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here... * modules/unlink (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/unlink.m4 | 3 +-- modules/unlink | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e395bb53f..b3264eecb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-22 Bruno Haible + unlink: Respect rules for use of AC_LIBOBJ. + * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here... + * modules/unlink (configure.ac): ... to here. + +2011-05-22 Bruno Haible + uname: Move AC_LIBOBJ invocations to module description. * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from diff --git a/m4/unlink.m4 b/m4/unlink.m4 index a49a69287..49cd3bb80 100644 --- a/m4/unlink.m4 +++ b/m4/unlink.m4 @@ -1,4 +1,4 @@ -# unlink.m4 serial 7 +# unlink.m4 serial 8 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -108,6 +108,5 @@ AC_DEFUN([gl_FUNC_UNLINK], esac }; then REPLACE_UNLINK=1 - AC_LIBOBJ([unlink]) fi ]) diff --git a/modules/unlink b/modules/unlink index 26af43ddc..63720aaf1 100644 --- a/modules/unlink +++ b/modules/unlink @@ -12,6 +12,9 @@ lstat [test $REPLACE_UNLINK = 1] configure.ac: gl_FUNC_UNLINK +if test $REPLACE_UNLINK = 1; then + AC_LIBOBJ([unlink]) +fi gl_UNISTD_MODULE_INDICATOR([unlink]) Makefile.am: -- 2.11.0