strcspn: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:10:05 +0000 (13:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:50 +0000 (00:06 +0200)
* m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
here...
* modules/strcspn (configure.ac): ... to here.

ChangeLog
m4/strcspn.m4
modules/strcspn

index 8d781339ae60bbb6d59f958ac36f5ee9236420e8..ac5b09a76207b2a6ff8b20f3232f88882dd2c79e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strcspn: Move AC_LIBOBJ invocations to module description.
+       * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
+       here...
+       * modules/strcspn (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strchrnul: Move AC_LIBOBJ invocations to module description.
index df7a9554f3462aabef03fa21a4300d0bd239617b..5c1c4d45830630182c116c70e7065f3a5f1dba9e 100644 (file)
@@ -1,4 +1,4 @@
-# strcspn.m4 serial 3
+# strcspn.m4 serial 4
 dnl Copyright (C) 2002-2003, 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_STRCSPN],
 [
-  AC_REPLACE_FUNCS([strcspn])
-  if test $ac_cv_func_strcspn = no; then
-    gl_PREREQ_STRCSPN
-  fi
+  AC_CHECK_FUNCS([strcspn])
 ])
 
 # Prerequisites of lib/strcspn.c.
index 5d2be9241456448a1695ba98309b15427edaaa33..f2788bbabe30117c476f9b9fbdb652cf72c4d972 100644 (file)
@@ -15,6 +15,10 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_STRCSPN
+if test $ac_cv_func_strcspn = no; then
+  AC_LIBOBJ([strcspn])
+  gl_PREREQ_STRCSPN
+fi
 
 Makefile.am: