# HG changeset patch # User Bruno Haible # Date 1306064397 -7200 # Node ID ca5461c4906c46854e1182e6974a35ad108c8559 # Parent b8f7f613454d8802de784354516be8cbbf8ebea0 strpbrk: Move AC_LIBOBJ invocations to module description. * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from here... * modules/strpbrk (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible + + strpbrk: Move AC_LIBOBJ invocations to module description. + * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from + here... + * modules/strpbrk (configure.ac): ... to here. + 2011-05-22 Bruno Haible strnlen: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strpbrk.m4 b/m4/strpbrk.m4 --- a/m4/strpbrk.m4 +++ b/m4/strpbrk.m4 @@ -1,4 +1,4 @@ -# strpbrk.m4 serial 5 +# strpbrk.m4 serial 6 dnl Copyright (C) 2002-2003, 2007, 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, @@ -7,10 +7,9 @@ AC_DEFUN([gl_FUNC_STRPBRK], [ AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS([strpbrk]) + AC_CHECK_FUNCS([strpbrk]) if test $ac_cv_func_strpbrk = no; then HAVE_STRPBRK=0 - gl_PREREQ_STRPBRK fi ]) diff --git a/modules/strpbrk b/modules/strpbrk --- a/modules/strpbrk +++ b/modules/strpbrk @@ -16,6 +16,10 @@ configure.ac: gl_FUNC_STRPBRK +if test $HAVE_STRPBRK = 0; then + AC_LIBOBJ([strpbrk]) + gl_PREREQ_STRPBRK +fi gl_STRING_MODULE_INDICATOR([strpbrk]) Makefile.am: