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 3f7f0975dc357d50e68ab3a751261027277b93b9..0b67636e34255f56ef51bc6e98d118d605f61f05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 10f0284bec5db7eb1db1c9befe3c21311b8bc8c4..bd47d3e5cfb744ead8dad05475abc704264719e4 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 654b2f77f37d008504d6bca680e052ef631465c2..65b6946390c091e6880bbca76f814924f31f7920 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: