strtol: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 12:05:58 +0000 (14:05 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:55 +0000 (00:06 +0200)
* 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.

ChangeLog
m4/strtol.m4
modules/strtol

index 3f7f097..0b67636 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       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  <bruno@clisp.org>
+
        strtod: Move AC_LIBOBJ invocations to module description.
        * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
        invocations from here...
index 10f0284..bd47d3e 100644 (file)
@@ -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])
 ])
index 654b2f7..65b6946 100644 (file)
@@ -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: