From: Bruno Haible <bruno@clisp.org>
Date: Sun, 22 May 2011 17:07:52 +0000 (+0200)
Subject: wmemset: Move AC_LIBOBJ invocations to module description.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485d6733ec4255ae5679fcc495c52de81234cc69;p=pspp

wmemset: Move AC_LIBOBJ invocations to module description.

* m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
here...
* modules/wmemset (configure.ac): ... to here.
---

diff --git a/ChangeLog b/ChangeLog
index 3623380f8f..4446b8b11d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wmemset: Move AC_LIBOBJ invocations to module description.
+	* m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
+	here...
+	* modules/wmemset (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wmemmove: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/wmemset.m4 b/m4/wmemset.m4
index 1e960e394a..9674c1242b 100644
--- a/m4/wmemset.m4
+++ b/m4/wmemset.m4
@@ -1,4 +1,4 @@
-# wmemset.m4 serial 1
+# wmemset.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_WMEMSET],
   AC_CHECK_FUNCS_ONCE([wmemset])
   if test $ac_cv_func_wmemset = no; then
     HAVE_WMEMSET=0
-    AC_LIBOBJ([wmemset])
   fi
 ])
diff --git a/modules/wmemset b/modules/wmemset
index 4a551da287..68038dd7cb 100644
--- a/modules/wmemset
+++ b/modules/wmemset
@@ -11,6 +11,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WMEMSET
+if test $HAVE_WMEMSET = 0; then
+  AC_LIBOBJ([wmemset])
+fi
 gl_WCHAR_MODULE_INDICATOR([wmemset])
 
 Makefile.am: