From e735901945fd11e7180d9357e501b159b94404de Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 21:00:00 +0200 Subject: [PATCH] rpmatch: Move AC_LIBOBJ invocations to module description. * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from here... * modules/rpmatch (configure.ac): ... to here. --- ChangeLog | 8 ++++++++ m4/rpmatch.m4 | 5 ++--- modules/rpmatch | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b21cf3c3..50275a216 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-05-21 Bruno Haible + rpmatch: Move AC_LIBOBJ invocations to module description. + * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from + here... + * modules/rpmatch (configure.ac): ... to here. + +2011-05-21 Bruno Haible + rmdir: Respect rules for use of AC_LIBOBJ. * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here... * modules/rmdir (configure.ac): ... to here. diff --git a/m4/rpmatch.m4 b/m4/rpmatch.m4 index a8d0f10f2..2953f51f4 100644 --- a/m4/rpmatch.m4 +++ b/m4/rpmatch.m4 @@ -1,4 +1,4 @@ -# rpmatch.m4 serial 9 +# rpmatch.m4 serial 10 dnl Copyright (C) 2002-2003, 2007-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,10 +10,9 @@ AC_DEFUN([gl_FUNC_RPMATCH], AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - AC_REPLACE_FUNCS([rpmatch]) + AC_CHECK_FUNCS([rpmatch]) if test $ac_cv_func_rpmatch = no; then HAVE_RPMATCH=0 - gl_PREREQ_RPMATCH fi ]) diff --git a/modules/rpmatch b/modules/rpmatch index bfa5380da..f64286b41 100644 --- a/modules/rpmatch +++ b/modules/rpmatch @@ -15,6 +15,10 @@ strdup [test $HAVE_RPMATCH = 0] configure.ac: gl_FUNC_RPMATCH +if test $HAVE_RPMATCH = 0; then + AC_LIBOBJ([rpmatch]) + gl_PREREQ_RPMATCH +fi gl_STDLIB_MODULE_INDICATOR([rpmatch]) Makefile.am: -- 2.11.0