getline: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 09:38:44 +0000 (11:38 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:04 +0000 (00:06 +0200)
* m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
invocations from here...
* modules/getline (configure.ac): ... to here.

ChangeLog
m4/getline.m4
modules/getline

index 0b89b39021428f210a2e05f95dac9520dd8e0e37..53ecdedd46caff01ce96112d62a39f4726f46e58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       getline: Move AC_LIBOBJ invocations to module description.
+       * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
+       invocations from here...
+       * modules/getline (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
        getline: Simplify.
index 4a99c315e2bee480fcf38f383465329f7550999a..4c5779725914b01c52d402a1e3e18c6864319660 100644 (file)
@@ -1,4 +1,4 @@
-# getline.m4 serial 24
+# getline.m4 serial 25
 
 dnl Copyright (C) 1998-2003, 2005-2007, 2009-2011 Free Software Foundation,
 dnl Inc.
@@ -84,9 +84,6 @@ AC_DEFUN([gl_FUNC_GETLINE],
     dnl getline function among $LIBS, it may exist in libinet and the
     dnl executable may be linked with -linet.
     REPLACE_GETLINE=1
-    AC_LIBOBJ([getline])
-
-    gl_PREREQ_GETLINE
   fi
 ])
 
index b565f6620ba2f712314c627881b197f87520320f..72e77abdcfeac9ddc9c8c5a4ad73e300ae136a7f 100644 (file)
@@ -12,6 +12,10 @@ getdelim        [test $REPLACE_GETLINE = 1]
 
 configure.ac:
 gl_FUNC_GETLINE
+if test $REPLACE_GETLINE = 1; then
+  AC_LIBOBJ([getline])
+  gl_PREREQ_GETLINE
+fi
 gl_STDIO_MODULE_INDICATOR([getline])
 
 Makefile.am: