From b21e15bcd8b7b3d196a8ab0aca15422cce0f94ac Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 18:26:24 +0200 Subject: [PATCH] wcsncpy: Move AC_LIBOBJ invocations to module description. * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from here... * modules/wcsncpy (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/wcsncpy.m4 | 3 +-- modules/wcsncpy | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa2c4d291..bb730623a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + wcsncpy: Move AC_LIBOBJ invocations to module description. + * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from + here... + * modules/wcsncpy (configure.ac): ... to here. + +2011-05-22 Bruno Haible + wcsncmp: Move AC_LIBOBJ invocations to module description. * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from here... diff --git a/m4/wcsncpy.m4 b/m4/wcsncpy.m4 index a284b4733..1ed528931 100644 --- a/m4/wcsncpy.m4 +++ b/m4/wcsncpy.m4 @@ -1,4 +1,4 @@ -# wcsncpy.m4 serial 1 +# wcsncpy.m4 serial 2 dnl Copyright (C) 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, @@ -10,6 +10,5 @@ AC_DEFUN([gl_FUNC_WCSNCPY], AC_CHECK_FUNCS_ONCE([wcsncpy]) if test $ac_cv_func_wcsncpy = no; then HAVE_WCSNCPY=0 - AC_LIBOBJ([wcsncpy]) fi ]) diff --git a/modules/wcsncpy b/modules/wcsncpy index e1c499633..0ac9609f5 100644 --- a/modules/wcsncpy +++ b/modules/wcsncpy @@ -17,6 +17,9 @@ wchar configure.ac: gl_FUNC_WCSNCPY +if test $HAVE_WCSNCPY = 0; then + AC_LIBOBJ([wcsncpy]) +fi gl_WCHAR_MODULE_INDICATOR([wcsncpy]) Makefile.am: -- 2.11.0