changeset 14914:ef09e997c426

ftell: Move AC_LIBOBJ invocations to module description. * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here... * modules/ftell (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:40:26 +0200
parents 7c541f65646d
children 64c288a5020b
files ChangeLog m4/ftell.m4 modules/ftell
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	ftell: Move AC_LIBOBJ invocations to module description.
+	* m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
+	* modules/ftell (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	ftello: Respect rules for use of AC_LIBOBJ.
--- a/m4/ftell.m4
+++ b/m4/ftell.m4
@@ -1,4 +1,4 @@
-# ftell.m4 serial 1
+# ftell.m4 serial 2
 dnl Copyright (C) 2007, 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,
@@ -10,7 +10,6 @@
   AC_REQUIRE([gl_FUNC_FTELLO])
   dnl When ftello needs fixes, ftell needs them too.
   if test $REPLACE_FTELLO != 0; then
-    AC_LIBOBJ([ftell])
     REPLACE_FTELL=1
   fi
 ])
--- a/modules/ftell
+++ b/modules/ftell
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_FTELL
+if test $REPLACE_FTELL = 1; then
+  AC_LIBOBJ([ftell])
+fi
 gl_STDIO_MODULE_INDICATOR([ftell])
 
 Makefile.am: