From: Bruno Haible Date: Sun, 22 May 2011 12:05:58 +0000 (+0200) Subject: strtol: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2412 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=d883d21093429a7826bf42556d4db32dd2d3975c;p=gnulib.git strtol: Move AC_LIBOBJ invocations to module description. * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... * modules/strtol (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 3f7f0975d..0b67636e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + strtol: Move AC_LIBOBJ invocations to module description. + * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... + * modules/strtol (configure.ac): ... to here. + +2011-05-22 Bruno Haible + strtod: Move AC_LIBOBJ invocations to module description. * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD invocations from here... diff --git a/m4/strtol.m4 b/m4/strtol.m4 index 10f0284be..bd47d3e5c 100644 --- a/m4/strtol.m4 +++ b/m4/strtol.m4 @@ -1,4 +1,4 @@ -# strtol.m4 serial 5 +# strtol.m4 serial 6 dnl Copyright (C) 2002-2003, 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 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOL], [ - AC_REPLACE_FUNCS([strtol]) + AC_CHECK_FUNCS([strtol]) ]) diff --git a/modules/strtol b/modules/strtol index 654b2f77f..65b694639 100644 --- a/modules/strtol +++ b/modules/strtol @@ -15,6 +15,9 @@ Depends-on: configure.ac: gl_FUNC_STRTOL +if test $ac_cv_func_strtol = no; then + AC_LIBOBJ([strtol]) +fi Makefile.am: