Avoid redundant symbol replacement.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:32:22 +0000 (17:32 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Jan 2010 16:32:22 +0000 (17:32 +0100)
ChangeLog
m4/getline.m4

index d4d8776258870870a63fbc2c5093bbed6fd0f3fd..355a601d5432b84071d5a7a47b53ca8220a98d35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-31  Bruno Haible  <bruno@clisp.org>
+
+       Avoid redundant symbol replacement.
+       * m4/getline.m4 (gl_FUNC_GETLINE): Set REPLACE_GETLINE only when the
+       function was found.
+
 2010-01-31  Bruno Haible  <bruno@clisp.org>
 
        Work around getline() bug on FreeBSD 8.0.
index 7fca58ecf279b7ab238e3b230a5dcc1310d668cf..996ca216559d61a7a42e407a8d633c0da8a10581 100644 (file)
@@ -80,7 +80,9 @@ AC_DEFUN([gl_FUNC_GETLINE],
   fi
 
   if test $am_cv_func_working_getline = no; then
-    REPLACE_GETLINE=1
+    if test $gl_getline_needs_run_time_check = yes; then
+      REPLACE_GETLINE=1
+    fi
     AC_LIBOBJ([getline])
 
     gl_PREREQ_GETLINE