memcpy: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 13:09:15 +0000 (15:09 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:29 +0000 (00:06 +0200)
* m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
here...
* modules/memcpy (configure.ac): ... to here.

ChangeLog
m4/memcpy.m4
modules/memcpy

index d02f9a6f65a75fa03ca4bfb35ed7b736968f3f02..74fa150fcf6f971eff452a7800d7f62c75f823ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       memcpy: Move AC_LIBOBJ invocations to module description.
+       * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
+       here...
+       * modules/memcpy (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        memcmp: Simplify autoconf macro.
index 62921d45be93baed3c0892c4b0f1b58e7a5b4dec..9085f445292d841ed07fb1b49c86b9189fcbf392 100644 (file)
@@ -1,4 +1,4 @@
-# memcpy.m4 serial 3
+# memcpy.m4 serial 4
 dnl Copyright (C) 2002, 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,
@@ -6,10 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_MEMCPY],
 [
-  AC_REPLACE_FUNCS([memcpy])
-  if test $ac_cv_func_memcpy = no; then
-    gl_PREREQ_MEMCPY
-  fi
+  AC_CHECK_FUNCS([memcpy])
 ])
 
 # Prerequisites of lib/memcpy.c.
index 1758bdf8ae36abae14abc9b2de7b6e7f9bc0958f..92f528f897fc0ea701f5032ac0b2a698f98ae960 100644 (file)
@@ -15,6 +15,10 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_MEMCPY
+if test $ac_cv_func_memcpy = no; then
+  AC_LIBOBJ([memcpy])
+  gl_PREREQ_MEMCPY
+fi
 
 Makefile.am: