strtoll: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 12:11:24 +0000 (14:11 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:57 +0000 (00:06 +0200)
* m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
here...
* modules/strtoll (configure.ac): ... to here.

ChangeLog
m4/strtoll.m4
modules/strtoll

index 5ab0c71..7e94d63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       strtoll: Move AC_LIBOBJ invocations to module description.
+       * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
+       here...
+       * modules/strtoll (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        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...
index fd0a13d..ed6a854 100644 (file)
@@ -1,4 +1,4 @@
-# strtoll.m4 serial 6
+# strtoll.m4 serial 7
 dnl Copyright (C) 2002, 2004, 2006, 2008-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,
@@ -11,10 +11,9 @@ AC_DEFUN([gl_FUNC_STRTOLL],
   dnl unless the type 'long long int' exists.
   AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
   if test "$ac_cv_type_long_long_int" = yes; then
-    AC_REPLACE_FUNCS([strtoll])
+    AC_CHECK_FUNCS([strtoll])
     if test $ac_cv_func_strtoll = no; then
       HAVE_STRTOLL=0
-      gl_PREREQ_STRTOLL
     fi
   fi
 ])
index 8295e83..5501fda 100644 (file)
@@ -12,6 +12,10 @@ stdlib
 
 configure.ac:
 gl_FUNC_STRTOLL
+if test $HAVE_STRTOLL = 0; then
+  AC_LIBOBJ([strtoll])
+  gl_PREREQ_STRTOLL
+fi
 gl_STDLIB_MODULE_INDICATOR([strtoll])
 
 Makefile.am: