strncat: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:26:26 +0000 (13:26 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:50 +0000 (00:06 +0200)
* m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
invocations from here...
* modules/strncat (configure.ac): ... to here.

ChangeLog
m4/strncat.m4
modules/strncat

index a40b96e..6e338a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       strncat: Move AC_LIBOBJ invocations to module description.
+       * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
+       invocations from here...
+       * modules/strncat (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
        * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
        invocations from here...
index 621ab0d..ff34b48 100644 (file)
@@ -1,4 +1,4 @@
-# strncat.m4 serial 1
+# strncat.m4 serial 2
 dnl Copyright (C) 2002-2004, 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,
@@ -92,11 +92,7 @@ AC_DEFUN_ONCE([gl_FUNC_STRNCAT],
     ])
   case "$gl_cv_func_strncat_works" in
     *yes) ;;
-    *)
-      REPLACE_STRNCAT=1
-      AC_LIBOBJ([strncat])
-      gl_PREREQ_STRNCAT
-      ;;
+    *) REPLACE_STRNCAT=1 ;;
   esac
 ])
 
index 81b8850..516a222 100644 (file)
@@ -11,6 +11,10 @@ string
 
 configure.ac:
 gl_FUNC_STRNCAT
+if test $REPLACE_STRNCAT = 1; then
+  AC_LIBOBJ([strncat])
+  gl_PREREQ_STRNCAT
+fi
 gl_STRING_MODULE_INDICATOR([strncat])
 
 Makefile.am: