From 5ab74d5a4f48de4630298aa1d00262599a4f8611 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 14:18:06 +0200 Subject: [PATCH] strtoumax: Move AC_LIBOBJ invocations to module description. * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations from here... * modules/strtoumax (configure.ac): ... to here. --- ChangeLog | 8 ++++++++ m4/strtoumax.m4 | 7 ++----- modules/strtoumax | 4 ++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56bf22a3c..b8b4ee39c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-05-22 Bruno Haible + strtoumax: Move AC_LIBOBJ invocations to module description. + * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations + from here... + * modules/strtoumax (configure.ac): ... to here. + +2011-05-22 Bruno Haible + strtoimax: Move AC_LIBOBJ invocations to module description. * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 index 7fa563642..58b310de8 100644 --- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 @@ -1,4 +1,4 @@ -# strtoumax.m4 serial 9 +# strtoumax.m4 serial 10 dnl Copyright (C) 2002-2004, 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, @@ -12,10 +12,7 @@ AC_DEFUN([gl_FUNC_STRTOUMAX], if test "$ac_cv_have_decl_strtoumax" != yes; then HAVE_DECL_STRTOUMAX=0 - AC_REPLACE_FUNCS([strtoumax]) - if test $ac_cv_func_strtoumax = no; then - gl_PREREQ_STRTOUMAX - fi + AC_CHECK_FUNCS([strtoumax]) fi ]) diff --git a/modules/strtoumax b/modules/strtoumax index 7ad684691..5520f0d43 100644 --- a/modules/strtoumax +++ b/modules/strtoumax @@ -15,6 +15,10 @@ strtoull [test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_st configure.ac: gl_FUNC_STRTOUMAX +if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then + AC_LIBOBJ([strtoumax]) + gl_PREREQ_STRTOUMAX +fi gl_INTTYPES_MODULE_INDICATOR([strtoumax]) Makefile.am: -- 2.11.0