changeset 15116:c172d08b442a

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 14:11:24 +0200
parents 51c87706ae95
children 939a6be3d610
files ChangeLog m4/strtoll.m4 modules/strtoll
diffstat 3 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
--- a/m4/strtoll.m4
+++ b/m4/strtoll.m4
@@ -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 @@
   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
 ])
--- a/modules/strtoll
+++ b/modules/strtoll
@@ -12,6 +12,10 @@
 
 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: