changeset 15102:941b55762d4d

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 13:07:33 +0200
parents f583623a374b
children c169efecd827
files ChangeLog m4/strchrnul.m4 modules/strchrnul
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/strchrnul.m4
+++ b/m4/strchrnul.m4
@@ -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 @@
       *) 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.
--- a/modules/strchrnul
+++ b/modules/strchrnul
@@ -14,6 +14,10 @@
 
 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: