strchrnul: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:07:33 +0000 (13:07 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:49 +0000 (00:06 +0200)
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
gl_PREREQ_STRCHRNUL invocations from here...
* modules/strchrnul (configure.ac): ... to here.

ChangeLog
m4/strchrnul.m4
modules/strchrnul

index 0a89001a454b80645144aaf5619434b9dd3ba7b8..8d781339ae60bbb6d59f958ac36f5ee9236420e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strchrnul: Move AC_LIBOBJ invocations to module description.
+       * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
+       gl_PREREQ_STRCHRNUL invocations from here...
+       * modules/strchrnul (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strcasestr*: Move AC_LIBOBJ invocations to module description.
index fbfd5aebd510b6894ab1a347bd60dd01d11312cc..d89a0624616147547367abda44f1860ef8f3442f 100644 (file)
@@ -1,4 +1,4 @@
-# strchrnul.m4 serial 8
+# strchrnul.m4 serial 9
 dnl Copyright (C) 2003, 2007, 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,
@@ -44,10 +44,6 @@ AC_DEFUN([gl_FUNC_STRCHRNUL],
       *) REPLACE_STRCHRNUL=1 ;;
     esac
   fi
-  if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
-    AC_LIBOBJ([strchrnul])
-    gl_PREREQ_STRCHRNUL
-  fi
 ])
 
 # Prerequisites of lib/strchrnul.c.
index 59c4cc68abb05d1bf9aae77e1f4521eafbde86f1..98a3d8c58a1e73a39a2be9fa723964ffffb5cde9 100644 (file)
@@ -14,6 +14,10 @@ rawmemchr       [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1]
 
 configure.ac:
 gl_FUNC_STRCHRNUL
+if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
+  AC_LIBOBJ([strchrnul])
+  gl_PREREQ_STRCHRNUL
+fi
 gl_STRING_MODULE_INDICATOR([strchrnul])
 
 Makefile.am: