From 64ee293cdac319d0f38cd0d31e758a823b7163ad Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sun, 22 May 2011 18:39:15 +0200
Subject: [PATCH] wcsstr: Move AC_LIBOBJ invocations to module description.

* m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
* modules/wcsstr (configure.ac): ... to here.
---
 ChangeLog      | 6 ++++++
 m4/wcsstr.m4   | 3 +--
 modules/wcsstr | 3 +++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index af803cc71b..d1335646f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wcsstr: Move AC_LIBOBJ invocations to module description.
+	* m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
+	* modules/wcsstr (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcsspn: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/wcsstr.m4 b/m4/wcsstr.m4
index 3ac2caf448..8f762a1ecf 100644
--- a/m4/wcsstr.m4
+++ b/m4/wcsstr.m4
@@ -1,4 +1,4 @@
-# wcsstr.m4 serial 1
+# wcsstr.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@ AC_DEFUN([gl_FUNC_WCSSTR],
   AC_CHECK_FUNCS_ONCE([wcsstr])
   if test $ac_cv_func_wcsstr = no; then
     HAVE_WCSSTR=0
-    AC_LIBOBJ([wcsstr])
   fi
 ])
diff --git a/modules/wcsstr b/modules/wcsstr
index d4f22f8509..e918127cbe 100644
--- a/modules/wcsstr
+++ b/modules/wcsstr
@@ -12,6 +12,9 @@ wcschr          [test $HAVE_WCSSTR = 0]
 
 configure.ac:
 gl_FUNC_WCSSTR
+if test $HAVE_WCSSTR = 0; then
+  AC_LIBOBJ([wcsstr])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcsstr])
 
 Makefile.am:
-- 
2.30.2