# HG changeset patch # User Bruno Haible # Date 1306066092 -7200 # Node ID 51c87706ae95a77483ad308b9293b0d9025e66f3 # Parent b34e684f6884abe688d3d39a41024d5a0ab39ed6 strtoul: Move AC_LIBOBJ invocations to module description. * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... * modules/strtoul (configure.ac): ... to here. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + strtoul: Move AC_LIBOBJ invocations to module description. + * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... + * modules/strtoul (configure.ac): ... to here. + 2011-05-22 Bruno Haible strtol: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strtoul.m4 b/m4/strtoul.m4 --- a/m4/strtoul.m4 +++ b/m4/strtoul.m4 @@ -1,4 +1,4 @@ -# strtoul.m4 serial 4 +# strtoul.m4 serial 5 dnl Copyright (C) 2002, 2006, 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, @@ -6,5 +6,5 @@ AC_DEFUN([gl_FUNC_STRTOUL], [ - AC_REPLACE_FUNCS([strtoul]) + AC_CHECK_FUNCS([strtoul]) ]) diff --git a/modules/strtoul b/modules/strtoul --- a/modules/strtoul +++ b/modules/strtoul @@ -16,6 +16,9 @@ configure.ac: gl_FUNC_STRTOUL +if test $ac_cv_func_strtoul = no; then + AC_LIBOBJ([strtoul]) +fi Makefile.am: